<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
That’s correct; the sdfopen command will not work. You’ll need to interpolate your data to a rectilinear lat/lon grid before writing it out to a file. —Jennifer
<div><br>
<div><br>
<div>
<div>On Feb 1, 2017, at 1:38 PM, Jeff Duda <<a href="mailto:jeffduda319@gmail.com">jeffduda319@gmail.com</a>> wrote:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite">
<div dir="ltr">
<div>Cathy,<br>
My grid is irregular (rotated lat/lon projection), so my coordinate variables are 2-dimensional themselves. Thus I can't really set lat and lon as dimensions, and thus can't dimension the array by those coordinate variables. Does this mean I cannot conform
this file to the standards necessary for sdfopen to be used?<br>
<br>
</div>
Jeff<br>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Wed, Feb 1, 2017 at 12:19 PM, Cathy Smith (NOAA Affiliate)
<span dir="ltr"><<a href="mailto:cathy.smith@noaa.gov" target="_blank">cathy.smith@noaa.gov</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div 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
<div>
<div class="h5"><br>
<br>
<div class="m_-459180694408706609moz-cite-prefix">On 2/1/17 10:58 AM, Jeff Duda wrote:<br>
</div>
</div>
</div>
<blockquote type="cite">
<div>
<div class="h5">
<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="m_-459180694408706609gmail_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="m_-459180694408706609mimeAttachmentHeader"></fieldset> <br>
</div>
</div>
<span class="">
<pre>______________________________<wbr>_________________
gradsusr mailing list
<a class="m_-459180694408706609moz-txt-link-abbreviated" href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a>
<a class="m_-459180694408706609moz-txt-link-freetext" href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/<wbr>listinfo/gradsusr</a>
</pre>
</span></blockquote>
<span class="HOEnZb"><font color="#888888"><br>
<pre class="m_-459180694408706609moz-signature" cols="72">--
------------------------------<wbr>----------------
NOAA/ESRL PSD and CU CIRES
303-497-6263
<a class="m_-459180694408706609moz-txt-link-freetext" href="http://www.esrl.noaa.gov/psd/people/cathy.smith/" target="_blank">http://www.esrl.noaa.gov/psd/<wbr>people/cathy.smith/</a>
Emails about data/webpages may get quicker responses from emailing
<a class="m_-459180694408706609moz-txt-link-abbreviated" href="mailto:esrl.psd.data@noaa.gov" target="_blank">esrl.psd.data@noaa.gov</a></pre>
</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 dir="ltr">Jeff Duda<br>
Post-doctoral research fellow<br>
University of Oklahoma School of Meteorology<br>
</div>
</div>
</div>
</div>
_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
http://gradsusr.org/mailman/listinfo/gradsusr<br>
</blockquote>
</div>
<br>
<div apple-content-edited="true">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<div style="font-size: 12px; orphans: 2; widows: 2;">--</div>
<div style="font-size: 12px; orphans: 2; widows: 2;">Jennifer Miletta Adams<br>
Center for Ocean-Land-Atmosphere Studies (COLA)<br>
George Mason University<br>
<br>
<br>
</div>
</div>
</div>
</div>
<br>
</div>
</div>
</body>
</html>