Yes, you are right. I succeeded using a new file with a Time variable that takes only the Time dimension, includes an appropriate units attribute, and was assigned with an array of doubles:<br>netcdf new_netcdf_file {<br>dimensions:<br>
DateStrLen = 19 ;<br> Time = 25 ;<br> south_north = 519 ;<br> force_layers = 8 ;<br> west_east_stag = 424 ;<br> bottom_top_stag = 51 ;<br> soil_layers_stag = 5 ;<br> bottom_top = 50 ;<br>
west_east = 423 ;<br> south_north_stag = 520 ;<br>variables:<br> float T(Time, bottom_top, south_north, west_east) ;<br> T:units = "K" ;<br> double Time(Time) ;<br> Time:units = "seconds since my last coffee" ;<br>
}<br><br>Thanks, jade<br>
<div class="gmail_extra"><br><br><div class="gmail_quote">On 15 November 2012 18:02, Moreland, Kenneth <span dir="ltr"><<a href="mailto:kmorel@sandia.gov" target="_blank">kmorel@sandia.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="auto">
<div><span></span></div>
<div>
<div>Yes, having the variable with a different name as the dimension is a problem. If the name is not the same, then the reader will not pick up the variable as a description of the dimension. Another problem is that the Time variable should only have one dimension
that is Time. Your variable has a second dimension DateStrLen. This is apparently to store strings describing the time, but based on your units the contents should be a number counting seconds.</div>
<div><br>
<div>-Ken</div>
<div><br>
</div>
Sent from my iPad so blame autocorrect.</div><div><div class="h5">
<div><br>
On Nov 15, 2012, at 10:29 AM, "jade mackay" <<a href="mailto:jademackay@gmail.com" target="_blank">jademackay@gmail.com</a>> wrote:<br>
<br>
</div>
<blockquote type="cite">
<div>Hi Ken,<br>
<br>
Thanks for your reply. Yes, I am the "netCDF files generic and CF conventions" reader.<br>
The file possesses the the variable 'Times':<br>
<br>
variables:<br>
char Times(Time, DateStrLen) ;<br>
Times:units = "seconds since 2010-11-9 00:00:00+0:00" ;<br>
<br>
<br>
and the Times variable is a list of datetimes (with slightly different format to the example on the CF page):<br>
['2012-09-06_00:00:00',<br>
'2012-09-06_01:00:00',<br>
'2012-09-06_02:00:00',<br>
'2012-09-06_03:00:00',<br>
'2012-09-06_04:00:00',<br>
'2012-09-06_05:00:00',<br>
'2012-09-06_06:00:00',<br>
'2012-09-06_07:00:00',<br>
'2012-09-06_08:00:00',<br>
'2012-09-06_09:00:00',<br>
'2012-09-06_10:00:00',<br>
'2012-09-06_11:00:00',<br>
'2012-09-06_12:00:00',<br>
'2012-09-06_13:00:00',<br>
'2012-09-06_14:00:00',<br>
'2012-09-06_15:00:00',<br>
'2012-09-06_16:00:00',<br>
'2012-09-06_17:00:00',<br>
'2012-09-06_18:00:00',<br>
'2012-09-06_19:00:00',<br>
'2012-09-06_20:00:00',<br>
'2012-09-06_21:00:00',<br>
'2012-09-06_22:00:00',<br>
'2012-09-06_23:00:00',<br>
'2012-09-07_00:00:00']<br>
<br>
Could the problem be that the dimension is named 'Time', and the variable is named 'Times'?<br>
<br>
thanks, jade
<div>
<div><img></div>
</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On 15 November 2012 18:31, Moreland, Kenneth <span dir="ltr">
<<a href="mailto:kmorel@sandia.gov" target="_blank">kmorel@sandia.gov</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<div style="direction:ltr;font-size:10pt;font-family:Courier New">Jade,<br>
<br>
We need more information before we can properly answer this question. First, which netCDF reader are you using (there is more than one in ParaView)? Unless your data is of a particular format, you should be using the "netCDF files generic and CF conventions".<br>
<br>
Second, we need to know the information about the variables defined. What variables are defined, what are their dimensions, and what are their attributes.<br>
<br>
I am guessing that you have not properly identified the variable "Time" as a time dimension in your netCDF file (simply naming it "Time" is not sufficient in the CF convention). To identify it as time, you also need to define a variable named "Time" of dimension
"Time" and containing the property "units" that contains a string value defining some time unit (such as "<font face="Courier New">seconds since 1992-10-8 15:15:42.5 -6:00". The contents of this variable should contain the time stamp for each time slice.
See the documentation for the CF convention (</font><a href="http://cf-pcmdi.llnl.gov/documents/cf-conventions/1.6/cf-conventions.html#time-coordinate" target="_blank">http://cf-pcmdi.llnl.gov/documents/cf-conventions/1.6/cf-conventions.html#time-coordinate</a><font face="Courier New">)
for more details.<br>
<br>
-Ken<br>
<br>
</font>
<div style="font-size:16px;font-family:Times New Roman">
<hr>
<div style="direction:ltr"><font color="#000000" face="Tahoma"><b>From:</b> <a href="mailto:paraview-bounces@paraview.org" target="_blank">
paraview-bounces@paraview.org</a> [<a href="mailto:paraview-bounces@paraview.org" target="_blank">paraview-bounces@paraview.org</a>] on behalf of jade mackay [<a href="mailto:jademackay@gmail.com" target="_blank">jademackay@gmail.com</a>]<br>
<b>Sent:</b> Wednesday, November 14, 2012 7:39 PM<br>
<b>To:</b> <a href="mailto:paraview@paraview.org" target="_blank">paraview@paraview.org</a><br>
<b>Subject:</b> [EXTERNAL] [Paraview] netcdf time series<br>
</font><br>
</div>
<div>
<div>
<div></div>
<div>Hi,<br>
<br>
I am seeking advice regarding visualization of weather model output using paraview.<br>
I am only able to view the first frame of my netcdf file. The dimensions are:<br>
<br>
netcdf mynetcdffile {<br>
dimensions:<br>
Time = UNLIMITED ; // (25 currently)<br>
DateStrLen = 19 ;<br>
west_east = 329 ;<br>
south_north = 329 ;<br>
bottom_top = 50 ;<br>
bottom_top_stag = 51 ;<br>
soil_layers_stag = 5 ;<br>
west_east_stag = 330 ;<br>
force_layers = 8 ;<br>
south_north_stag = 330 ;<br>
<br>
<br>
Thanks in advance,<br>
<br>
Jade<br>
<br clear="all">
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<br>
<br clear="all">
<br>
-- <br>
Jade Mackay<br>
e: <a href="mailto:jademackay@gmail.com" target="_blank">jademackay@gmail.com</a><br>
m: <a href="tel:%2B64-%280%2922-319-0847" value="+64223190847" target="_blank">+64-(0)22-319-0847</a><br>
<br>
<br>
</div>
</div>
</blockquote>
</div></div></div>
</div>
</blockquote></div><br><br clear="all"><br>-- <br>Jade Mackay<br>e: <a href="mailto:jademackay@gmail.com" target="_blank">jademackay@gmail.com</a><br>m: +64-(0)22-319-0847<br><br><br>
</div>