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

RequestData(request, inInfo, outInfo)[source]

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

RequestInformation(request, inInfo, outInfo)[source]

Used by pipeline to set grid extents.

_get_raw_data(idx=0)[source]

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

_read_up_front()[source]

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

get_extent(dim=False)[source]
set_origin(ox, oy, oz)[source]

Set the origin corner of the grid

set_spacing(dx, dy, dz)[source]

Set the spacing for each axial direction

SVC Parcel Reader

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

Bases: pvgeohdf.base.netCDFPointsReaderBase

SVCParcelReader for Kelton

_get_raw_data(idx=0)[source]

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

_read_up_front()[source]

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

set_data_name(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.