<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>Hi Carlos,</p>
<p>I believe the (x,y,z,t) dimension in OSCAR are
(longitude,latitude,depth,time). So, you need to change
dimension1 to longitude, dimension2 to latitude, dimension3 to
depth and dimension4 to time. I also suggest you just remove the
lines from vars 4 to the end; as they are they won't work, but you
don't need then unless for some reason you want to change the
names. If you then use "xdfopen" you should be able to access the
data.</p>
<p>Note Jeff's earlier comment about "OPTIONS template". You
modified descriptor file will work (don't think you'll get an
error), but you only have a single time and no template strings.
Also, having xdef > 360 should not be a problem.</p>
<p>This should work, again use xdfopen to open the file. Ultimately
you'll want to change the tdef line to include more times and the
DSET line to include file name template options.<br>
</p>
<p>DSET ^oscar_vel8859.nc<br>
undef 200000000000000000000.000000<br>
OPTIONS template<br>
xdef longitude 1201 linear 20.000000 0.333333<br>
ydef latitude 481 linear -80.000000 0.333333<br>
zdef depth 1 linear 1 1<br>
tdef time 1 linear 00:00Z06jan2017 1dy<br>
</p>
Jim<br>
<br>
<div class="moz-cite-prefix">On 2/14/17 6:39 AM, Carlos Enciso Ojeda
wrote:<br>
</div>
<blockquote
cite="mid:CAE39umgyhpqsGTQAaG2a5d0CXdh3_aWHAZJbhgOE_XUa5QOVQA@mail.gmail.com"
type="cite">
<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 moz-do-not-send="true"
href="http://oscar_vel8859.nc">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<br>
</div>
Carlos Enciso<br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
gradsusr mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a>
<a class="moz-txt-link-freetext" href="http://gradsusr.org/mailman/listinfo/gradsusr">http://gradsusr.org/mailman/listinfo/gradsusr</a>
</pre>
</blockquote>
<br>
</body>
</html>