[Paraview] netcdf time series

Moreland, Kenneth kmorel at sandia.gov
Thu Nov 15 13:02:13 EST 2012


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.

-Ken

Sent from my iPad so blame autocorrect.

On Nov 15, 2012, at 10:29 AM, "jade mackay" <jademackay at gmail.com<mailto:jademackay at gmail.com>> wrote:

Hi Ken,

Thanks for your reply. Yes, I am the "netCDF files generic and CF conventions" reader.
The file possesses the the variable 'Times':

variables:
        char Times(Time, DateStrLen) ;
                Times:units = "seconds since 2010-11-9 00:00:00+0:00" ;


and the Times variable is a list of datetimes (with slightly different format to the example on the CF page):
['2012-09-06_00:00:00',
 '2012-09-06_01:00:00',
 '2012-09-06_02:00:00',
 '2012-09-06_03:00:00',
 '2012-09-06_04:00:00',
 '2012-09-06_05:00:00',
 '2012-09-06_06:00:00',
 '2012-09-06_07:00:00',
 '2012-09-06_08:00:00',
 '2012-09-06_09:00:00',
 '2012-09-06_10:00:00',
 '2012-09-06_11:00:00',
 '2012-09-06_12:00:00',
 '2012-09-06_13:00:00',
 '2012-09-06_14:00:00',
 '2012-09-06_15:00:00',
 '2012-09-06_16:00:00',
 '2012-09-06_17:00:00',
 '2012-09-06_18:00:00',
 '2012-09-06_19:00:00',
 '2012-09-06_20:00:00',
 '2012-09-06_21:00:00',
 '2012-09-06_22:00:00',
 '2012-09-06_23:00:00',
 '2012-09-07_00:00:00']

Could the problem be that the dimension is named 'Time', and the variable is named 'Times'?

thanks, jade
[https://mail.google.com/mail/u/0/images/cleardot.gif]


On 15 November 2012 18:31, Moreland, Kenneth <kmorel at sandia.gov<mailto:kmorel at sandia.gov>> wrote:
Jade,

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".

Second, we need to know the information about the variables defined.  What variables are defined, what are their dimensions, and what are their attributes.

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 "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 (http://cf-pcmdi.llnl.gov/documents/cf-conventions/1.6/cf-conventions.html#time-coordinate) for more details.

-Ken

________________________________
From: paraview-bounces at paraview.org<mailto:paraview-bounces at paraview.org> [paraview-bounces at paraview.org<mailto:paraview-bounces at paraview.org>] on behalf of jade mackay [jademackay at gmail.com<mailto:jademackay at gmail.com>]
Sent: Wednesday, November 14, 2012 7:39 PM
To: paraview at paraview.org<mailto:paraview at paraview.org>
Subject: [EXTERNAL] [Paraview] netcdf time series

Hi,

I am seeking advice regarding visualization of weather model output using paraview.
I am only able to view the first frame of my netcdf file. The dimensions are:

netcdf mynetcdffile {
dimensions:
        Time = UNLIMITED ; // (25 currently)
        DateStrLen = 19 ;
        west_east = 329 ;
        south_north = 329 ;
        bottom_top = 50 ;
        bottom_top_stag = 51 ;
        soil_layers_stag = 5 ;
        west_east_stag = 330 ;
        force_layers = 8 ;
        south_north_stag = 330 ;


Thanks in advance,

Jade




--
Jade Mackay
e: jademackay at gmail.com<mailto:jademackay at gmail.com>
m: +64-(0)22-319-0847


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20121115/f403968d/attachment-0001.htm>


More information about the ParaView mailing list