<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hi Jason,</p>
<p>I'm not sure how you are going about writing to the file, but
make sure you've set the dimensions appropriately. This from
<a class="moz-txt-link-freetext" href="http://cola.gmu.edu/grads/gadoc/gradcomdsetsdfwrite.html">http://cola.gmu.edu/grads/gadoc/gradcomdsetsdfwrite.html</a>:<br>
</p>
<h3>Syntax
</h3>
<p><code>set sdfwrite <-3dz or -3dt or -4d or -5d> <-rt or
-re> <-flt or -dbl> <-nc3 or -nc4> <-chunk>
<-zip> <i>fname</i></code>
</p>
<p>where</p>
<ul>
<p><code><i>fname</i> </code>output filename (required) </p>
</ul>
<p>The following six optional arguments are not enabled by default;
each new call to <code><a
href="http://cola.gmu.edu/grads/gadoc/gradcomdsetsdfwrite.html">set
sdfwrite</a></code> will turn them off if they are not
included. The default behavior is to write out a variable with the
same number of varying dimensions as the defined variable and with
no record (unlimited) dimension. </p>
<ul>
<code>-3dt </code>forces the output data file to have at least
3 coordinate dimensions (lon, lat, and time)<br>
<code>-3dz </code>forces the output data file to have at least
3 coordinate dimensions (lon, lat, and lev)<br>
<code>-4d </code>forces the output data file to have at least
4 coordinate dimensions (lon, lat, lev, and time)<br>
<code>-4e </code>forces the output data file to have at least
4 coordinate dimensions (lon, lat, time, and ens)<br>
<code>-5d </code>forces the output data file to have 5
coordinate dimensions (lon, lat, lev, time, and ens)<br>
<code>-rt </code>sets the T axis as the record (unlimited)
dimension<br>
<code>-re </code>sets the E axis as the record (unlimited)
dimension
</ul>
<p>Jim<br>
</p>
<div class="moz-cite-prefix">On 11/5/21 9:52 AM,
<a class="moz-txt-link-abbreviated" href="mailto:jason@solargrafix.com">jason@solargrafix.com</a> wrote:<br>
</div>
<blockquote type="cite"
cite="mid:d1d2bdc3684653d1e2d5666b65148fac@solargrafix.com">Hello,
<br>
<br>
I am trying to save data in GrADS as a .nc file using sdfwrite. I
am trying to save a single parameter, like 2 meter temperature,
but for and entire time series. For example, for the HRRR model,
it would be 18 different time steps.
<br>
<br>
I keep getting the same result. I end up with a .nc file that
contains 1 time step (the first one) and the timestamp on the
image is missing. What is the correct method of saving a all of
the time steps for a single parameter with the valid time steps
included?
<br>
<br>
Thanks.
<br>
_______________________________________________
<br>
gradsusr mailing list
<br>
<a class="moz-txt-link-abbreviated" href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a>
<br>
<a class="moz-txt-link-freetext" href="http://gradsusr.org/mailman/listinfo/gradsusr">http://gradsusr.org/mailman/listinfo/gradsusr</a>
<br>
</blockquote>
</body>
</html>