<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>Hi Jeff,</p>
<p>I think you need to have dimz = 1, then add that as a dimension
to your variables. More importantly you may need a time
dimension.</p>
<p>Jim<br>
</p>
<br>
<div class="moz-cite-prefix">On 2/1/17 7:58 AM, Jeff Duda wrote:<br>
</div>
<blockquote
cite="mid:CAAig09AYkfsR3_VCDsJdTvA8TZUHmPviLoj5+6Qha8fs6TxZcg@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>
<div>I'm trying to write a netCDF file that I can then open in
Grads using sdfopen. I'm missing some stuff, though, but I'm
not sure what. Here is the ncdump of the file I have
created:<br>
<br>
netcdf sm_raw_dump {<br>
dimensions:<br>
dimx = 1568 ;<br>
dimy = 1120 ;<br>
dimz = 50 ;<br>
variables:<br>
float sm(dimy, dimx) ;<br>
float lat(dimy, dimx) ;<br>
lat:units = "degrees_north" ;<br>
lat:axis = "y" ;<br>
float lon(dimy, dimx) ;<br>
lon:units = "degrees_east" ;<br>
lon:axis = "y" ;<br>
}<br>
<br>
</div>
Is there a problem with the names of the dimensions? Should I
not have 'dimz' in there since none of the arrays use that
dimension? Can I not use sdfopen if I have 2-D coordinate
variables (lat and lon in this case)? The field I want to
display using Grads is sm<br>
<br>
</div>
Jeff Duda<br clear="all">
<div>
<div>
<div><br>
-- <br>
<div class="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>
</div>
</div>
</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>