<div dir="ltr"><br clear="all"><br><table><tbody><tr><td class=""><div class="">
<span itemprop="upvoteCount" class=""><br></span>
</div>
</td>
<td class="">
<div>
<div class="" itemprop="text">
<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">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">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">www.gdal.org</a>) or cdo (<a href="https://code.zmaw.de/projects/cdo" rel="nofollow">https://code.zmaw.de/projects/cdo</a>,
<a href="https://www.unidata.ucar.edu/software/netcdf/workshops/2012/third_party/CDO.html" rel="nofollow">https://www.unidata.ucar.edu/software/netcdf/workshops/2012/third_party/CDO.html</a>)</p>
<p>Thank you for your help.</p>
<p>Jason</p>
</div></div></td></tr></tbody></table><br><div class="gmail_signature"><br></div>
</div>