[gradsusr] shift longitude range in grib2 file from 0->360 to -180->180
Wesley Ebisuzaki
Wesley.Ebisuzaki at noaa.gov
Tue Jun 1 09:26:56 EDT 2010
P.R.
> can this be achieved by simply using wgrib2, or would I need to
> convert the data in grads, and then export&convert back to grib2?
With the May 2010 version of wgrib2,
wgrib2 in.grb -lola 180:720:0.5 -90:361:0.5 out.grb grib
I don't like -lola because it does nearest neighbor interpolation but it
is not a problem for you.
Wesley
P. R.M. wrote:
> I have a grib2 dataset (gfs winds) that spans 0-360 degrees longitude,
> in 0.5 degree increments.
> I need to convert this dataset into the range from -180 to 180, so I
> need the grid to start at 180 degrees longitude instead of at 0
> degrees longitude. (fyi, the 0-360 range simply doesnt work for a
> custom application that Im running).
>
> how can I perform this conversion, and store back into grib2 format?
> can this be achieved by simply using wgrib2, or would I need to
> convert the data in grads, and then export&convert back to grib2?
>
> please help,
> thanks,
> p.r.
>
> The New Busy is not the too busy. Combine all your e-mail accounts
> with Hotmail. Get busy.
> <http://www.windowslive.com/campaign/thenewbusy?tile=multiaccount&ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_4>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>
More information about the gradsusr
mailing list