[gradsusr] regrid problem

zjuyanlibin zjuyanlibin at 163.com
Thu Jun 21 03:23:39 EDT 2012


you should use an exist grid file to output interpolated matrix.
following is an simple guide...
file.1 file.2 are your files
file.3 is an exist grid file with resolution of 0.333*0.333, which you can create yourself.
____________________________
open file.1
set x 1 428
set y 1 322
set t 1 1198
define newvar=re2(oldvar,...)
open file.3
set x 1 360
set y 1 180
set t 1 1198
set gxout fwrite
set fwrite ...*.bin
d newvar
disable fwrite

then 
again for file.2

finally,
you will have two gridded files with the same resolution and coordinates.




zjuyanlibin

From: Roberto Mera
Date: 2012-06-21 15:13
To: GrADS Users Forum
Subject: [gradsusr] regrid problem
Hi. I'm trying to regrid two files to a common grid. The two files have 
different resolutions and projections. Here is the detail for the files:

file 1 (model)
   Type = Gridded
   Xsize = 428  Ysize = 322  Zsize = 1  Tsize = 1198  Esize = 1
   Number of Variables = 1
      px1  1  t,z,y,x  px1
X is varying   Lon = -140.885 to -94.7226   X = 1 to 428
Y is varying   Lat = 22.4263 to 57.129   Y = 1 to 322
Z is fixed     Lev = 1  Z = 1
T is fixed     Time = 00Z01JAN1961  T = 1
E is fixed     Ens = 1  E = 1

file 2 (NARR)

   Type = Gridded
   Xsize = 107  Ysize = 80  Zsize = 1  Tsize = 384  Esize = 1
   Number of Variables = 1
      pmax1  1  t,z,y,x  pmax1
X is varying   Lon = -140.885 to -94.7226   X = -1081.74 to -943.241
Y is varying   Lat = 22.4263 to 57.129   Y = -15.7149 to 88.4036
Z is fixed     Lev = 1  Z = 2
T is fixed     Time = 00Z01JAN1961  T = -215
E is fixed     Ens = 1  E = 1


I would like to regrid to 25 km or 1/3 degree so I can calculate 
anomalies between the two.

thanks

Robert
_______________________________________________
gradsusr mailing list
gradsusr at gradsusr.org
http://gradsusr.org/mailman/listinfo/gradsusr
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20120621/cb8bb26f/attachment-0003.html 


More information about the gradsusr mailing list