[vtkusers] NetCDF file reading

Cory Quammen cory.quammen at kitware.com
Fri Aug 14 10:10:30 EDT 2015


Have you tried any other of the NetCDF readers? I'll admit I'm not that
familiar with them.

You might also try to load your data in ParaView (www.paraview.org).

Thanks,
Cory

On Fri, Aug 14, 2015 at 10:04 AM, Sayali Sonawane <sayasonawane11 at gmail.com>
wrote:

> Hi Cory,
>
> I have tried vtknetcdfreader class.
>
> Warning: In /home/sayali/src/IO/NetCDF/vtkNetCDFReader.cxx, line 782
> vtkNetCDFReader (0x8906a0): Variable depth dimensions (depth) are
> different than the other variable dimensions (latitude longitude).  Skipping
>
> Warning: In /home/sayali/src/IO/NetCDF/vtkNetCDFReader.cxx, line 782
> vtkNetCDFReader (0x8906a0): Variable latitude dimensions (latitude) are
> different than the other variable dimensions (latitude longitude).  Skipping
>
> Warning: In /home/sayali/src/IO/NetCDF/vtkNetCDFReader.cxx, line 782
> vtkNetCDFReader (0x8906a0): Variable longitude dimensions (longitude) are
> different than the other variable dimensions (latitude longitude).  Skipping
>
> Warning: In /home/sayali/src/IO/NetCDF/vtkNetCDFReader.cxx, line 782
> vtkNetCDFReader (0x8906a0): Variable salinity dimensions (depth latitude
> longitude) are different than the other variable dimensions (latitude
> longitude).  Skipping
>
> Warning: In /home/sayali/src/IO/NetCDF/vtkNetCDFReader.cxx, line 782
> vtkNetCDFReader (0x8906a0): Variable temperature dimensions (depth
> latitude longitude) are different than the other variable dimensions
> (latitude longitude).  Skipping
>
> Warning: In /home/sayali/src/IO/NetCDF/vtkNetCDFReader.cxx, line 782
> vtkNetCDFReader (0x8906a0): Variable u dimensions (depth latitude
> longitude) are different than the other variable dimensions (latitude
> longitude).  Skipping
>
> Warning: In /home/sayali/src/IO/NetCDF/vtkNetCDFReader.cxx, line 782
> vtkNetCDFReader (0x8906a0): Variable v dimensions (depth latitude
> longitude) are different than the other variable dimensions (latitude
> longitude).  Skipping
>
> I am getting this warning message. But I don't understand how to use these
> variables. I want to plot salinity and temperature scatterplot.
>
> Best Regards,
> Sayali
>
>
> On Fri, Aug 14, 2015 at 2:59 PM, Cory Quammen <cory.quammen at kitware.com>
> wrote:
>
>> Hi Sayali,
>>
>> You'll have a better chance getting a useful answer if you email the
>> whole VTK users list :-)
>>
>> Have you tried the vtkNetCDF*Reader classes?
>>
>> http://www.vtk.org/doc/nightly/html/classvtkNetCDFReader.html
>> http://www.vtk.org/doc/nightly/html/classvtkNetCDFCFReader.html
>> http://www.vtk.org/doc/nightly/html/classvtkNetCDFPOPReader.html
>> http://www.vtk.org/doc/nightly/html/classvtkNetCDFCAMReader.html
>>
>> Cheers,
>> Cory
>>
>> On Fri, Aug 14, 2015 at 8:05 AM, Sayali Sonawane <
>> sayasonawane11 at gmail.com> wrote:
>>
>>>
>>> Hi Cory,
>>>
>>> I am trying to read netcdf .nc file. It has 15 variables, each of
>>> different dimension. Can you please suggest me way of reading and mapping
>>> it in VTK.
>>>
>>> Best Regards,
>>> Sayali
>>>
>>
>> --
>> Cory Quammen
>> R&D Engineer
>> Kitware, Inc.
>>
>
>


-- 
Cory Quammen
R&D Engineer
Kitware, Inc.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20150814/05c5b4a6/attachment.html>


More information about the vtkusers mailing list