Hi,
I think you need to define a new grid with dx=dy=4, regrid the
satellite data using the @ASN transformation and then finally
regrid to the model grid
def axis/x=4:5120:4 newx
def axis/y=4:2880:4 newy
def grid/x=newx/y=newy newg
let ic_tmp=ic_sat[gxy=newg@asn] ! put satellite values
on new grid directly
let ic_sat_model=ic_tmp[gxy=ic_model] ! interpolate to model
grid
Cheers,
Russ
On 11/11/15 11:35, Osinski, Robert FORNATL, PL wrote:
Ansley, Paulo,
thank you very much for yours prompt answers but it wasn't
exactly what I need. I've studied ferret documentation before I
asked my question to the mailing-list but have not found answer.
My problem, in other words, is that I have satellite ice
concentration on grid 1280x720 (x=1:1280:1/y=1:720:1) and
modeled ice concentration on grid 5120x2880
(x=1:5120:1/y=1:2880:1) (see attached figures).
I want to draw satellite ice concentration on modeled ice. What
I know is that every fourth fine resolution grid point is in the
same place as coarse grid point. So for instance coarse
resolution value of concentration of x=10/y=10 should be at fine
resolution grid x=40/y=40, but there is no value for x=39/y=39
(interpolation is needed) and so on,
Thanks in advance,
Robert
Hi Robert,
This is a one-line command in Ferret. You have several
options for the regridding transformation; by default it's a
linear interpolation.
Perhaps the best thing to point you to is the regridding
demo. From the Ferret command line,
yes? go regridding_demo
The command window has description and comments along with
the Ferret commands; and you'll get plots showing what is
going on.
If you're a new user, welcome! I'd suggest exploring this
page,
http://ferret.pmel.noaa.gov/Ferret/documentation/ferret-tutorials
Ansley
On 11/10/2015 2:56 AM, Osinski,
Robert FORNATL, PL wrote:
Dear ferreters,
I need your help in interpolating and drawing two
datasets. The first data set is on coarse grid
x=1:1280:1/y=1:720:1 and the second on fine one
x=1:5120:1/y=1:2880:1. Each 4th grid point in the fine
grid is the same as in coarse resolution grid in space
so
coarse res. grid point fine res. grid point
(1,1) (4,4)
(1,2) (4,8)
(2,2) (8,8)
.....
I need to draw variable which is defined on coarse grid,
on fine grid. Obviously there will be "empty" grid
points on fine grid so it should be interpolate,
Thanks in advance,
Robert Osinski
NPS,
Monterey, CA
|