[gradsusr] plotting over 0E from netCDF
Jennifer M Adams
jadams21 at gmu.edu
Wed Jun 29 14:47:18 EDT 2016
Hi, Cathy —
The global wraping test will fail if XDEF has LEVELS instead of LINEAR. Also, defined variables never wrap.
If neither of those things is true in your situation, check the response when you initially open the file. If the file has passed the wrap test, GrADS will invoke the command ‘set lon 0 360’ no matter what the staring longitude is in your XDEF statement. So, if you open a file and lon is set o to 360 that is a clue that wrapping is ‘on’. If not, in this case it might say something like:
LON set to 0 359.297
—Jennifer
On Jun 29, 2016, at 1:49 PM, James T. Potemra <jimp at hawaii.edu<mailto:jimp at hawaii.edu>> wrote:
Kathy,
I think the problem is you don't have a continuous grid across 0/360.
If your data were, for example, evenly spaced and you had a single value
at 360 then you could do 340 to 415. In this case you don't have any
longitudes greater than 360 defined. You might need to either regrid
or use an external tool (e.g., nco) to redefine longitude. Of course you
could also use "parea" to plot the western side and eastern sides
individually.
Jim
On 6/29/16 4:57 AM, Cathy Smith (NOAA Affiliate) wrote:
Hi all
This should be an easy question but I'm stumped. I'm trying to plot
Africa (20W to 55E). the file I'm plotting from is netCDF and the
longitudes are 0 to 359.27
e.g.
lon = 0, 0.7031252, 1.40625, 2.109376, 2.812501, 3.515626, 4.218751,
4.921877, 5.625002, 6.328127, 7.031252, 7.734378, 8.437503, 9.140628,
9.843754, 10.54688, 11.25, 11.95313, 12.65625, 13.35938, 14.0625,
......
354.3751, 355.0782, 355.7814, 356.4845, 357.1876, 357.8907, 358.5939,
359.297 ;
my grads code has
if( proj = 'africa' )
'set mproj latlon'
'set mpdset mres'
'set lat -40 45'
'set lon -20 55'
'set grid on'
'set frame on'
'set ylint 5'
istate=0
endif
which plots the data from 0 to 55 only and not the data between 340 and 360.
I also tried 340 to 415 instead of -20 to 55 and that plotted the data
from 340 to 0 and not 0 to 55.
What am I doing wrong? I know this can be done in GrADS.
Thanks
Cathy
_______________________________________________
gradsusr mailing list
gradsusr at gradsusr.org<mailto:gradsusr at gradsusr.org>
http://gradsusr.org/mailman/listinfo/gradsusr
--
Jennifer Miletta Adams
Center for Ocean-Land-Atmosphere Studies (COLA)
George Mason University
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20160629/f63b8e2f/attachment.html
More information about the gradsusr
mailing list