<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 class="gmail_signature"><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>