[gradsusr] changing grid from 0-360 to -180-180 lon

P. R.M. romero619 at hotmail.com
Wed Jun 30 16:34:20 EDT 2010


I have a problem with longitude ranges not matching when opening multiple grib2 files.
- the first grib2 file (gfs) has a longitude range defined by g2ctl.pl as:
xdef 720 linear 0 0.5

- the second grib2 file has a longitude range defined by g2ctl.pl as:
xdef 586 linear 261 0.066667

when opening both files, setting an arbitrary longitude range, and displaying a variable from the 2nd file, I get the following error:
ga-> set lon -100 -50
LON set to -100 -50
ga-> d myvar.2
Data Request Warning:  Request is completely outside file limits
  Entire grid contents are set to missing data
  Grid limits of file:     X = 1 586  Y = 1 481  Z = 1 1  T = 1 61  E = 1 1
  Grid limits of request:  X = -3914 1486  Y = -1724 -1123  Z = 1 1  T = 1 1  E = 1 1

the problem occurs because the first (gfs) grib2 longitude range gets set from -180 to 180, while the second file's longitude range is in the 0-360 range. grads doesnt seem to understand that the ranges overlap and are, in fact, valid.

I need set the 2nd file's longitude range to the -180-180 range, without manually editing the .ctl file created by g2ctl.pl.
is this possible to do through either grads or through wgrib2/g2ctl.pl?

please help,
thanks,
P.R.

 		 	   		  
_________________________________________________________________
The New Busy is not the too busy. Combine all your e-mail accounts with Hotmail.
http://www.windowslive.com/campaign/thenewbusy?tile=multiaccount&ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_4
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100630/47ec6d41/attachment-0003.html 


More information about the gradsusr mailing list