|
Hi Josh, The commands you use in your examples here look ok as far as I
can see without knowing what's in the datasets. My guess is that
you're using a grid-name. The commands are most commonly given
using variable
names, not grid names. Or, if you are using a grid name in
specifying the regridding operation, leave off the [d=2]. There's
a demo script yes? show go regridding_demo Which uses both styles; it starts out defining grids and using
them in regridding commands and also shows regridding operations
set up using variable names. I'd suggest the latter style; it
just makes the scripts easier to read. In general if the grids have "world-coordinate" units, you'll
want to let Ferret do the work of translating units of location
and time and do a regridding operation with a regridding transform
like linear interpolation or averaging. @ASN is most useful when
one of the grids doesn't have units, but you know that they should
just take on the coordinates of the grid you're regridding to.
You can regrid in different directions with different gridding
operations - something like this, for instance if the XYZ are
defined in world coordinates but the T axis of the T_AN grid are
just index values: yes? use "./200517obs_temp.nc" !observation data yes? use "./ocn_tempyearmean.nc" !model output data yes? let regridxyz = T_AN[d=1,gxyz = ocn_temp[d=2]] yes? let regrid=regridxyz[gt=ocn_temp[d=2@asn]] And finally don't forget to set units and title for the final
variable with LET/units="units_string"/TITLE="title_string", or
have a look at "define
variable/LIKE=" in the documentation for setting the
attributes of a variable using the attributes of an existing one. Ansley On 4/15/2019 2:23 AM,
JoshAB1995@xxxxxxxxxxx wrote:
|