Base Classes¶
These provide base classes to simplify making new classes.
netCDF Points Reader Base¶
-
class
pvgeohdf.base.netCDFPointsReaderBase(nOutputPorts=1, outputType='vtkPolyData', **kwargs)[source]¶ Bases:
pvgeohdf.base.netCDFReaderBasenetCDFPointsReaderBase: for netCDF files that will produce a point+attribute dataset.
net CDF Reader Base¶
-
class
pvgeohdf.base.netCDFReaderBase(nOutputPorts=1, outputType='vtkPolyData', **kwargs)[source]¶ Bases:
PVGeo.base.ReaderBaseBase-
RequestData(request, inInfo, outInfo)[source]¶ Used by pipeline to get data for current timestep and populate the output data object.
-
RequestInformation(request, inInfo, outInfo)[source]¶ This will handle setting the timesteps appropriately based on the number of file names when the pipeline needs to know the time information.
-
_get_file_contents(idx=None)[source]¶ This opens a netCDF4 DataSet. This happens up front so the data read happens only once and ParaView will be able to make calls on the
RequestDatamethod to get the data for a specific timestep
-
_get_raw_data(idx=0)[source]¶ Get the data as the called for data object. Return type depends on higher level API.
Parameters: idx (int) – the timestep index
-
extensions= 'nc netCDF netcdf'¶
-