Regridding 3 dimensional data
Lee Byerle
labyerle at MET.UTAH.EDU
Mon Oct 9 11:49:34 EDT 2006
John,
One way for you to retain your 3-dimensional dataset is to regrid each
2-dimensional array (use regrid), then use fwrite to create a new binary
with all 20 (re-gridded) levels.
Lee.
Here is an example:
set z 1
define newu1=regrid2(u,2.,2.,ba)
set z 2
define newu2=regrid2(u,2.,2.,ba)
set z 3
define newu3=regrid2(u,2.,2.,ba)
set lon 0 358
set lat -90 90
(assuming global dataset)
set gxout fwrite
set fwrite new.out
set z 1
d newu1
set z 2
d newu2
set z 3
d newu3
.
.etc.
disable fwrite.
good luck,
Lee
> Hi,
> I have a data file varying in time with lat, lon and levels (1x1,
> with
> 20 levels).
> Is it possible to regrid the data in 2x2 at all the 20 levels using grads?
> It seems that the regrid program works for two dimensional data.
>
> thanks in advance.
> John
>
More information about the gradsusr
mailing list