<div dir="ltr">Hello, <div><br></div><div>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. </div><div><br></div><div>- Aashish</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jul 24, 2015 at 6:15 AM, Manjunath K E <span dir="ltr"><<a href="mailto:ke.manjunath@gmail.com" target="_blank">ke.manjunath@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>Hi all<br><br></div>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 <b>TAXIS = 0</b> is read. <br><br></div>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.<div><br></div><div>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)= 129600.<br><br></div><div>So, please help me how read time varrying data. i.e How to read data for all values of Time axes using vtkNetCDFCFReader.<br><br></div><div>My current code is as below :<br>====================================================================<br>def readNetCdfFile(netCdfFilename, arrayName) :<br>        netCdfReader = vtkNetCDFCFReader()<br>        netCdfReader.SetFileName(netCdfFilename)<br>        netCdfReader.SphericalCoordinatesOff()<br>        netCdfReader.SetReplaceFillValueWithNan(1)<br>        netCdfReader.Update()<br>        #Copy input Array to scalar value field of point data ..this makes point data to point to SAL array         netCdfReader.GetOutput().GetPointData().SetScalars(netCdfReader.GetOutput().GetPointData().GetArray(arrayName))<br>        netCdfReader.UpdateMetaData()<br>        netCdfReader.Update()<br>        netCdfReader.GetOutput().UpdateInformation()<br>        return netCdfReader<br>====================================================================<br><br></div><div><br clear="all"><div><div><div><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><font color="#ff0000"> </font><font color="#ff6600">Thanks and Regards,</font></div><div><font color="#3366ff"><br></font></div><div><span style="color:rgb(51,102,255)"> Manjunath K E</span><font color="#3366ff"></font></div><div><font color="#3366ff"> <span style="color:rgb(241,194,50)">Help Ever Hurt Never</span><br></font></div><div><font color="#3366ff">  </font></div></div></div></div></div></div></div></div></div></div>
</div></div></div></div>
<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="noreferrer" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><font face="trebuchet ms, sans-serif"><i>| Aashish Chaudhary <br>| Technical Leader         <br>| Kitware Inc.            <br></i></font><div><i><font face="trebuchet ms, sans-serif">| </font><a href="http://www.kitware.com/company/team/chaudhary.html" target="_blank">http://www.kitware.com/company/team/chaudhary.html</a></i></div></div></div>
</div>