lats4d?

tatiane felinto tatiane.felinto at GMAIL.COM
Thu Sep 24 15:13:12 EDT 2009


Hello users

I have a file with resolution of 1.125X1.125 with 23 levels and
spacing in x between 140W to 30E and 90S and between the 30N. I want
to do a regridding to a grid  0.25X0.25 and reduce the number of
levels. I tried using lats4d and gave the following command:


gradsnc -blc 'run lats4d.gs -i /media/TATIANE/era40/temp/t_1980.ctl -o
 t25_1980 -format grads_grib -mxtimes 1464 -levs 1000 850 -time
00z01jan1980 18z31jan1980 -de era025.ctl -func re(@,0.25,0.25,bl) -v
-q'


This command runs without errors, creating the .grb,. ctl and
.gmp.....  However, when viewing the picture,  note that the
information is not correct. Does anyone have any idea how can I solve
this problem? Below the two ctl used on the command line and the
message of the grads. Attached is a picture generated with the result
of regrid.

Ah ... I am using the grads1.9.0-rc1

Thanks

Tatiane Felinto

 t_1980.ctl

 dset ^t_1980.grb
 title temperature
 undef 1e+20
 dtype grib
 index ^t_1980.gmp
 xdef 188 linear -180.000000 1.125000
 ydef 108 linear -90.000000 1.125000
 zdef 23 levels
 1000 925 850 775 700 600 500 400 300 250
 200 150 100 70 50 30 20 10 7 5
 3 2 1
 tdef 1464 linear 0Z1jan1980  6hr
 vars 1
 t        23    1,100 ** (profile) Temperature K []
 endvars

 *************************************************************************************

 era025.ctl

 DSET nofile
 title Template GrADS for regridding
 options template
 undef 1e+20
 xdef 301 linear -95 0.25
 ydef 301 linear -60  0.25
 zdef   1 levels  1000
 tdef 124 linear 00z1jan1980 6hr
 vars 1
 var      0 0        generic sfc variable
 endvars

 ***************************************************************************************************
 Grid Analysis and Display System (GrADS) Version 1.9.0-rc1
 Copyright (c) 1988-2007 by Brian Doty and IGES
 Center for Ocean-Land-Atmosphere Studies (COLA)
 Institute for Global Environment and Society (IGES)
 GrADS comes with ABSOLUTELY NO WARRANTY
 See file COPYRIGHT for more information

 Config: v1.9.0-rc1 32-bit little-endian readline sdf/xdf netcdf lats
 athena printim

 Issue 'q config' command for more information.

 Format error in user defined function table:
  Processing function name:
  File name is: /usr/local/grads/udf/udft
 GX Package Initialization: Size = 11 8.5
 Running in Batch mode
 lats4d: Version 2.0.1 of 12 Jan 2009
 No hardcopy metafile open
 All files closed; all defined objects released
 All GrADS attributes have been reinitialized
 lats4d: Data file is
 File 1 : file created by grads using lats4d available from
 http://dao.gsfc.nasa.gov/software/grads/lats4d/
  Descriptor: /media/TATIANE/era40/temp/t_1980.ctl
  Binary: /media/TATIANE/era40/temp/t_1980.grb
  Type = Gridded
  Xsize = 188  Ysize = 108  Zsize = 23  Tsize = 1464
  Number of Variables = 1
    t 23 1 ** (profile) Temperature K []

 lats4d: Dimension environment file is
 File 2 : Template GrADS for regridding
  Descriptor: era025.ctl
  Binary: nofile
  Type = Gridded
  Xsize = 301  Ysize = 301  Zsize = 1  Tsize = 124
  Number of Variables = 1
    var 0 0 generic sfc variable

 lats4d: creating LATS PARAMETER TABLE file .grads.lats.table
 lats4d: time range: 00Z01JAN1980 18Z31JAN1980 by 1, delta t: 6 hourly
 lats4d: vertical levels:  1000 850
 lats4d: using PRESSURE for vertical coordinate
 lats4d: latitudinal  range: -60 15
 lats4d: longitudinal range: -95 -20
 lats4d: Function expression: re(@,0.25,0.25,bl)
 lats4d: upper air variables:  t
 lats4d: writing to grads_grib file t25_1980.grb on 00Z01JAN1980
 lats4d: writing to grads_grib file t25_1980.grb on 06Z01JAN1980
 lats4d: writing to grads_grib file t25_1980.grb on 12Z01JAN1980
 lats4d: writing to grads_grib file t25_1980.grb on 18Z01JAN1980
 lats4d: writing to grads_grib file t25_1980.grb on 00Z02JAN1980
 lats4d: writing to grads_grib file t25_1980.grb on 06Z02JAN1980
 lats4d: writing to grads_grib file t25_1980.grb on 12Z02JAN1980
 lats4d: writing to grads_grib file t25_1980.grb on 18Z02JAN1980
 lats4d: writing to grads_grib file t25_1980.grb on 00Z03JAN1980
 lats4d: writing to grads_grib file t25_1980.grb on 06Z03JAN1980
 lats4d: writing to grads_grib file t25_1980.grb on 12Z03JAN1980
 lats4d: writing to grads_grib file t25_1980.grb on 18Z03JAN1980
 lats4d: writing to grads_grib file t25_1980.grb on 00Z04JAN1980
 lats4d: writing to grads_grib file t25_1980.grb on 06Z04JAN1980
 lats4d: writing to grads_grib file t25_1980.grb on 12Z04JAN1980
 lats4d: writing to grads_grib file t25_1980.grb on 18Z04JAN1980
 lats4d: writing to grads_grib file t25_1980.grb on 00Z05JAN1980
 lats4d: writing to grads_grib file t25_1980.grb on 06Z05JAN1980
 lats4d: writing to grads_grib file t25_1980.grb on 12Z05JAN1980
 lats4d: writing to grads_grib file t25_1980.grb on 18Z05JAN1980
 lats4d: writing to grads_grib file t25_1980.grb on 00Z06JAN1980
 lats4d: writing to grads_grib file t25_1980.grb on 06Z06JAN1980
 lats4d: writing to grads_grib file t25_1980.grb on 12Z06JAN1980
 lats4d: writing to grads_grib file t25_1980.grb on 18Z06JAN1980
 lats4d: writing to grads_grib file t25_1980.grb on 00Z07JAN1980
 lats4d: writing to grads_grib file t25_1980.grb on 06Z07JAN1980
 lats4d: writing to grads_grib file t25_1980.grb on 12Z07JAN1980
 lats4d: writing to grads_grib file t25_1980.grb on 18Z07JAN1980
 lats4d: writing to grads_grib file t25_1980.grb on 00Z08JAN1980
 lats4d: writing to grads_grib file t25_1980.grb on 06Z08JAN1980
 lats4d: writing to grads_grib file t25_1980.grb on 12Z08JAN1980
 lats4d: writing to grads_grib file t25_1980.grb on 18Z08JAN1980
 lats4d: writing to grads_grib file t25_1980.grb on 00Z09JAN1980
 lats4d: writing to grads_grib file t25_1980.grb on 06Z09JAN1980
 lats4d: writing to grads_grib file t25_1980.grb on 12Z09JAN1980
 lats4d: writing to grads_grib file t25_1980.grb on 18Z09JAN1980
 lats4d: writing to grads_grib file t25_1980.grb on 00Z10JAN1980
 lats4d: writing to grads_grib file t25_1980.grb on 06Z10JAN1980
 lats4d: writing to grads_grib file t25_1980.grb on 12Z10JAN1980
 lats4d: writing to grads_grib file t25_1980.grb on 18Z10JAN1980
 lats4d: writing to grads_grib file t25_1980.grb on 00Z11JAN1980
 lats4d: writing to grads_grib file t25_1980.grb on 06Z11JAN1980
 lats4d: writing to grads_grib file t25_1980.grb on 12Z11JAN1980
 lats4d: writing to grads_grib file t25_1980.grb on 18Z11JAN1980
 lats4d: writing to grads_grib file t25_1980.grb on 00Z12JAN1980
 lats4d: writing to grads_grib file t25_1980.grb on 06Z12JAN1980
 lats4d: writing to grads_grib file t25_1980.grb on 12Z12JAN1980
 lats4d: writing to grads_grib file t25_1980.grb on 18Z12JAN1980
 lats4d: writing to grads_grib file t25_1980.grb on 00Z13JAN1980
 lats4d: writing to grads_grib file t25_1980.grb on 06Z13JAN1980
 lats4d: writing to grads_grib file t25_1980.grb on 12Z13JAN1980
 lats4d: writing to grads_grib file t25_1980.grb on 18Z13JAN1980
 lats4d: writing to grads_grib file t25_1980.grb on 00Z14JAN1980
 lats4d: writing to grads_grib file t25_1980.grb on 06Z14JAN1980
 lats4d: writing to grads_grib file t25_1980.grb on 12Z14JAN1980
 lats4d: writing to grads_grib file t25_1980.grb on 18Z14JAN1980
 lats4d: writing to grads_grib file t25_1980.grb on 00Z15JAN1980
 lats4d: writing to grads_grib file t25_1980.grb on 06Z15JAN1980
 lats4d: writing to grads_grib file t25_1980.grb on 12Z15JAN1980
 lats4d: writing to grads_grib file t25_1980.grb on 18Z15JAN1980
 lats4d: writing to grads_grib file t25_1980.grb on 00Z16JAN1980
 lats4d: writing to grads_grib file t25_1980.grb on 06Z16JAN1980
 lats4d: writing to grads_grib file t25_1980.grb on 12Z16JAN1980
 lats4d: writing to grads_grib file t25_1980.grb on 18Z16JAN1980
 lats4d: writing to grads_grib file t25_1980.grb on 00Z17JAN1980
 lats4d: writing to grads_grib file t25_1980.grb on 06Z17JAN1980
 lats4d: writing to grads_grib file t25_1980.grb on 12Z17JAN1980
 lats4d: writing to grads_grib file t25_1980.grb on 18Z17JAN1980
 lats4d: writing to grads_grib file t25_1980.grb on 00Z18JAN1980
 lats4d: writing to grads_grib file t25_1980.grb on 06Z18JAN1980
 lats4d: writing to grads_grib file t25_1980.grb on 12Z18JAN1980
 lats4d: writing to grads_grib file t25_1980.grb on 18Z18JAN1980
 lats4d: writing to grads_grib file t25_1980.grb on 00Z19JAN1980
 lats4d: writing to grads_grib file t25_1980.grb on 06Z19JAN1980
 lats4d: writing to grads_grib file t25_1980.grb on 12Z19JAN1980
 lats4d: writing to grads_grib file t25_1980.grb on 18Z19JAN1980
 lats4d: writing to grads_grib file t25_1980.grb on 00Z20JAN1980
 lats4d: writing to grads_grib file t25_1980.grb on 06Z20JAN1980
 lats4d: writing to grads_grib file t25_1980.grb on 12Z20JAN1980
 lats4d: writing to grads_grib file t25_1980.grb on 18Z20JAN1980
 lats4d: writing to grads_grib file t25_1980.grb on 00Z21JAN1980
 lats4d: writing to grads_grib file t25_1980.grb on 06Z21JAN1980
 lats4d: writing to grads_grib file t25_1980.grb on 12Z21JAN1980
 lats4d: writing to grads_grib file t25_1980.grb on 18Z21JAN1980
 lats4d: writing to grads_grib file t25_1980.grb on 00Z22JAN1980
 lats4d: writing to grads_grib file t25_1980.grb on 06Z22JAN1980
 lats4d: writing to grads_grib file t25_1980.grb on 12Z22JAN1980
 lats4d: writing to grads_grib file t25_1980.grb on 18Z22JAN1980
 lats4d: writing to grads_grib file t25_1980.grb on 00Z23JAN1980
 lats4d: writing to grads_grib file t25_1980.grb on 06Z23JAN1980
 lats4d: writing to grads_grib file t25_1980.grb on 12Z23JAN1980
 lats4d: writing to grads_grib file t25_1980.grb on 18Z23JAN1980
 lats4d: writing to grads_grib file t25_1980.grb on 00Z24JAN1980
 lats4d: writing to grads_grib file t25_1980.grb on 06Z24JAN1980
 lats4d: writing to grads_grib file t25_1980.grb on 12Z24JAN1980
 lats4d: writing to grads_grib file t25_1980.grb on 18Z24JAN1980
 lats4d: writing to grads_grib file t25_1980.grb on 00Z25JAN1980
 lats4d: writing to grads_grib file t25_1980.grb on 06Z25JAN1980
 lats4d: writing to grads_grib file t25_1980.grb on 12Z25JAN1980
 lats4d: writing to grads_grib file t25_1980.grb on 18Z25JAN1980
 lats4d: writing to grads_grib file t25_1980.grb on 00Z26JAN1980
 lats4d: writing to grads_grib file t25_1980.grb on 06Z26JAN1980
 lats4d: writing to grads_grib file t25_1980.grb on 12Z26JAN1980
 lats4d: writing to grads_grib file t25_1980.grb on 18Z26JAN1980
 lats4d: writing to grads_grib file t25_1980.grb on 00Z27JAN1980
 lats4d: writing to grads_grib file t25_1980.grb on 06Z27JAN1980
 lats4d: writing to grads_grib file t25_1980.grb on 12Z27JAN1980
 lats4d: writing to grads_grib file t25_1980.grb on 18Z27JAN1980
 lats4d: writing to grads_grib file t25_1980.grb on 00Z28JAN1980
 lats4d: writing to grads_grib file t25_1980.grb on 06Z28JAN1980
 lats4d: writing to grads_grib file t25_1980.grb on 12Z28JAN1980
 lats4d: writing to grads_grib file t25_1980.grb on 18Z28JAN1980
 lats4d: writing to grads_grib file t25_1980.grb on 00Z29JAN1980
 lats4d: writing to grads_grib file t25_1980.grb on 06Z29JAN1980
 lats4d: writing to grads_grib file t25_1980.grb on 12Z29JAN1980
 lats4d: writing to grads_grib file t25_1980.grb on 18Z29JAN1980
 lats4d: writing to grads_grib file t25_1980.grb on 00Z30JAN1980
 lats4d: writing to grads_grib file t25_1980.grb on 06Z30JAN1980
 lats4d: writing to grads_grib file t25_1980.grb on 12Z30JAN1980
 lats4d: writing to grads_grib file t25_1980.grb on 18Z30JAN1980
 lats4d: writing to grads_grib file t25_1980.grb on 00Z31JAN1980
 lats4d: writing to grads_grib file t25_1980.grb on 06Z31JAN1980
 lats4d: writing to grads_grib file t25_1980.grb on 12Z31JAN1980
 lats4d: writing to grads_grib file t25_1980.grb on 18Z31JAN1980
 t=0, month is <jan

 gribmap:  Scanning binary GRIB file(s):
 gribmap:  Opening GRIB file t25_1980.grb
 gribmap:  Reached EOF
 gribmap:  Writing the map...

 LATS_GRIB: SUCCESS -- gribmap for GrADS/VCS seems to have worked...

 lats4d: created grads_grib file t25_1980.grb
 lats4d: exiting from GrADS...
 No hardcopy metafile open
 GX package terminated
-------------- next part --------------
A non-text attachment was scrubbed...
Name: t_test.gif
Type: image/gif
Size: 12246 bytes
Desc: not available
Url : http://gradsusr.org/pipermail/gradsusr/attachments/20090924/9008425f/attachment.gif 


More information about the gradsusr mailing list