[vtkusers] NetCDF (vtkNetCDFReader)

Joey Mukherjee joeymu at gmail.com
Fri Oct 29 09:37:45 EDT 2010


I use the NetCDF reader (more specifically the NetCDFCFReader), and I
use it like an ImageData without the SafeDownCast.  It seems to work
fine...

Joey

On Fri, Oct 29, 2010 at 7:29 AM, Artem Babayan
<artem.paraview at googlemail.com> wrote:
> Hi,
>
> Does anybody have an example how to use vtkNetCDFReader class ?
>
> Should this work?
>
> vtkSmartPointer<vtkDataSet> netcdf_reader()
> {
>    vtkSmartPointer<vtkNetCDFReader> reader =
>            vtkSmartPointer<vtkNetCDFReader>::New();
>    reader->SetFileName("example.nc");
>    reader->UpdateMetaData();
>    return vtkImageData::SafeDownCast(reader->GetOutput(0));
> }
> _______________________________________________
> 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 VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>



More information about the vtkusers mailing list