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: netcdf new_netcdf_file { dimensions: DateStrLen = 19 ; Time = 25 ; south_north = 519 ; force_layers = 8 ; west_east_stag = 424 ; bottom_top_stag = 51 ; soil_layers_stag = 5 ; bottom_top = 50 ; west_east = 423 ; south_north_stag = 520 ; variables: float T(Time, bottom_top, south_north, west_east) ; T:units = "K" ; double Time(Time) ; Time:units = "seconds since my last coffee" ; }
Thanks, jade On 15 November 2012 18:02, Moreland, Kenneth <kmo...@sandia.gov> wrote: > 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" <jademac...@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 > > > On 15 November 2012 18:31, Moreland, Kenneth <kmo...@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-boun...@paraview.org [paraview-boun...@paraview.org] on >> behalf of jade mackay [jademac...@gmail.com] >> *Sent:* Wednesday, November 14, 2012 7:39 PM >> *To:* paraview@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: jademac...@gmail.com > m: +64-(0)22-319-0847 > > > -- Jade Mackay e: jademac...@gmail.com m: +64-(0)22-319-0847
_______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview