<div dir="ltr"><div><div><div><div>Carlos,<br></div>First of all, if you use the options keyword you need to include template strings in your DSET entry, and I don't see any such strings. That shoudl also be throwing an error.<br><br></div>Secondly, given the structure of your control file, it appears you wish to use xdfopen to read the file. In that case, can you confirm that "dimension1", "dimension2", ... etc. corresponds to the named dimensions in the netcdf file? An ncdump -h <a href="http://oscar_vel8859.nc">oscar_vel8859.nc</a> will confirm this. <br><br></div>Finally, the math on your xdef entry doesn't add up. 20 + 1201*0.333 =~ 420, which is well above the maximum longitude value. I'm not sure if Grads allows wrap-around like that, but I would eliminate the exceedance to be sure.<br><br></div>Jeff Duda<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Feb 14, 2017 at 10:39 AM, Carlos Enciso Ojeda <span dir="ltr"><<a href="mailto:20071058@lamolina.edu.pe" target="_blank">20071058@lamolina.edu.pe</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"><div><div><div>HI everyone<br><br></div>I'm having some troubles with OSCAR data, which are in netcdf format, I made a ctl, but when I tried to open it, it mentioned an error with xdef value. The ctl is as follow:<br><br>DSET ^<a href="http://oscar_vel8859.nc" target="_blank">oscar_vel8859.nc</a><br>DTYPE netcdf<br>undef 200000000000000000000.000000<br>OPTIONS template<br>xdef dimension1 1201 linear 20.000000 0.333333<br>ydef dimension2 481 linear -80.000000 0.333333<br>zdef dimension3 1 linear 1 1<br>tdef dimension4 1 linear 00:00Z06jan2017 1dy<br><br>vars 4<br>u 0 99 Ocean Surface Zonal Currents [meter/sec]<br>v 0 99 Ocean Surface Meridional Currents [meter/sec]<br>um 0 99 Ocean Surface Zonal Currents Maximum Mask [meter/sec]<br>vm 0 99 Ocean Surface Meridional Currents Maximum Mask [meter/sec]<br>endvars<br></div><div><br></div><div>I'd really appreciate, If anyone can help me with this one.<br></div><div><br></div>Thanks in advance<br><br></div><div>Cheers<span class="HOEnZb"><font color="#888888"><br></font></span></div><span class="HOEnZb"><font color="#888888">Carlos Enciso<br></font></span></div>
<br>______________________________<wbr>_________________<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/<wbr>listinfo/gradsusr</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>Jeff Duda<br>Post-doctoral research fellow<br>University of Oklahoma School of Meteorology<br></div></div></div></div></div>
</div>