<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Jeff<br>
You variable array needs to be dimensioned by the coordinate
variables. That is<br>
<br>
float sm(lat, lon) ;<br>
<br>
Cathy Smith<br>
<br>
<div class="moz-cite-prefix">On 2/1/17 10: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>
<pre class="moz-signature" cols="72">--
----------------------------------------------
NOAA/ESRL PSD and CU CIRES
303-497-6263
<a class="moz-txt-link-freetext" href="http://www.esrl.noaa.gov/psd/people/cathy.smith/">http://www.esrl.noaa.gov/psd/people/cathy.smith/</a>
Emails about data/webpages may get quicker responses from emailing
<a class="moz-txt-link-abbreviated" href="mailto:esrl.psd.data@noaa.gov">esrl.psd.data@noaa.gov</a></pre>
</body>
</html>