<div dir="ltr"><div><div>Hi Jason,<br><br></div><div>I believe that you should be able to do this within GrADS without having to modify your file externally.<br></div><div><br></div><div>Try writing a control file specifying your file dimensions, and opening it using xdfopen:<br></div><div><a href="http://www.iges.org/grads/gadoc/SDFdescriptorfile.html">http://www.iges.org/grads/gadoc/SDFdescriptorfile.html</a><br><br></div>Does this work?<br></div><div><br></div>Here's a recent thread discussing a related issue:<br><div><a href="http://gradsusr.org/pipermail/gradsusr/2015-September/038869.html">http://gradsusr.org/pipermail/gradsusr/2015-September/038869.html</a><br><br></div>-Andrew<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Oct 5, 2015 at 1:04 AM, Jason Snyder <span dir="ltr"><<a href="mailto:jmssnyder@ucdavis.edu" target="_blank">jmssnyder@ucdavis.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br clear="all"><br><table><tbody><tr><td><div>
<span><br></span>
</div>
</td>
<td>
<div>
<div>
<p>I am trying to plot u velocity values from a netcdf file in GrADS
from longitude 20W (-20) to longitude 30E (30). The netcdf file is
formated so it only displays data from 0 to 360 where 0 is on the prime
meridion. When I tried to plot anything to the east of the dateline it
says the data is out of range. I also tried to add 360 to the negative
longitude values and it does not have data for this. How can I set up
grads to plot both the area east and west of the prime meridion (0
degrees) using GrADS?</p>
<p>I have the below gs script options:</p>
<pre><code>'sdfopen <a href="http://file.nc" target="_blank">file.nc</a>'
'set lon 340 to 390'
'd u'
</code></pre>
<p>The above plots the map from 340 degrees to 390 but nothing east of 360 degrees.</p>
<p>or </p>
<pre><code>'sdfopen <a href="http://file.nc" target="_blank">file.nc</a>'
'set lon -20 to 30'
'd u'
</code></pre>
<p>The above script gives an error message saying -20 is out of range.</p>
<p>Also how can I modify the netcdf file to that it can plot u values to
the east of 360 degrees. Should I use gdal (<a href="http://www.gdal.org" target="_blank">www.gdal.org</a>) or cdo (<a href="https://code.zmaw.de/projects/cdo" rel="nofollow" target="_blank">https://code.zmaw.de/projects/cdo</a>,
<a href="https://www.unidata.ucar.edu/software/netcdf/workshops/2012/third_party/CDO.html" rel="nofollow" target="_blank">https://www.unidata.ucar.edu/software/netcdf/workshops/2012/third_party/CDO.html</a>)</p>
<p>Thank you for your help.</p><span class="HOEnZb"><font color="#888888">
<p>Jason</p>
</font></span></div></div></td></tr></tbody></table><br><div><br></div>
</div>
<br>_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" rel="noreferrer" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br></blockquote></div><br></div>