[vtkusers] NetCDFFile : How to read data for all values of Time axes using vtkNetCDFCFReader.
aashish.chaudhary at kitware.com
Fri Jul 24 11:58:51 EDT 2015
The other thing is that I don't think it read all the timestamps in the
first call. I have to look at the API to give you more information on it.
On Fri, Jul 24, 2015 at 11:56 AM, Aashish Chaudhary <
aashish.chaudhary at kitware.com> wrote:
> Is your NetCDF CF compliant? the vtkNetCDF reader makes certain assumption
> so it is possible that it hit some condition that made it think that there
> is no time information in it.
> - Aashish
> On Fri, Jul 24, 2015 at 6:15 AM, Manjunath K E <ke.manjunath at gmail.com>
>> Hi all
>> I am reading a netcdf file using vtkNetCDFCFReader. The input 4
>> dimensions (TAXIS, ZAX, YAXIS, XAXIS). But, after reading it, the time
>> varying data is not read, i.e only *TAXIS = 0* is read.
>> If XAXIS = 90 ; YAXIS = 60 ; ZAX = 24 ; TAXIS =3 ; then I should have
>> the size of the array being read = XAXIS * YAXIS * ZAX * TAXIS = 90 *
>> 60 * 24 * 3 = 388800.
>> But since, only one time value is considered then the TAXIS =1, the size
>> of the array I have read is equall to = 90 * 60 * 24 * 1 (time axis)=
>> So, please help me how read time varrying data. i.e How to read data for
>> all values of Time axes using vtkNetCDFCFReader.
>> My current code is as below :
>> def readNetCdfFile(netCdfFilename, arrayName) :
>> netCdfReader = vtkNetCDFCFReader()
>> #Copy input Array to scalar value field of point data ..this
>> makes point data to point to SAL array
>> return netCdfReader
>> Thanks and Regards,
>> Manjunath K E
>> Help Ever Hurt Never
>> Powered by www.kitware.com
>> Visit other Kitware open-source projects at
>> Please keep messages on-topic and check the VTK FAQ at:
>> Search the list archives at: http://markmail.org/search/?q=vtkusers
>> Follow this link to subscribe/unsubscribe:
> *| Aashish Chaudhary | Technical Leader | Kitware Inc. *
> *| http://www.kitware.com/company/team/chaudhary.html
*| Aashish Chaudhary | Technical Leader | Kitware Inc. *
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the vtkusers