netCDF I/O

This module contains general readers and writers for netCDF formats.

CMAQ Reader

class pvgeohdf.netcdf.CMAQReader(**kwargs)[source]

Bases: pvgeohdf.base.netCDFReaderBase

CMAQ read for Ziwei Wu

GetExtent(dim=False)[source]
RequestData(request, inInfo, outInfo)[source]

Used by pipeline to get data for current timestep and populate the output data object. This assumes that self._GetRawData() will return a dataset ready for PVGeo’s interface.pointsToPolyData().

RequestInformation(request, inInfo, outInfo)[source]

Used by pipeline to set grid extents.

SetOrigin(ox, oy, oz)[source]

Set the origin corner of the grid

SetSpacing(dx, dy, dz)[source]

Set the spacing for each axial direction

_GetRawData(idx=0)[source]

Get the Points as numpy ndarrays or pandas dataframe where first three columns are the XYZ coordinates

_ReadUpFront()[source]

This parses the loaded dataset to a NumPy ndarray. The first axis represents a time step in the model space.

SVC Parcel Reader

class pvgeohdf.netcdf.SVCParcelReader(**kwargs)[source]

Bases: pvgeohdf.base.netCDFPointsReaderBase

SVCParcelReader for Kelton

SetDataName(name)[source]

This is an example of how to set a property for this reader to use. Note that we do not use this property.

_GetRawData(idx=0)[source]

Get the Points as numpy ndarrays or pandas dataframe where first three columns are the XYZ coordinates

_ReadUpFront()[source]

This parses the loaded dataset to a NumPy ndarray. The first axis represents a time step in the model space.