[vtkusers] NetCDF (vtkNetCDFReader)

Artem Babayan artem.paraview at googlemail.com
Fri Oct 29 08:29:38 EDT 2010


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));
}



More information about the vtkusers mailing list