Skip to content

netcdf_reader

Classes:

Name Description
NetCDFReader

Classes#

NetCDFReader #

Bases: DataReader


Thin wrapper around xarray's open_dataset() function, with optional parameters used as keyword arguments in the function call.


Methods:

Name Description
read

Attributes:

Name Type Description
parameters Dict[str, Any]

Attributes#

parameters class-attribute instance-attribute #
parameters: Dict[str, Any] = {}

Functions#

read #
read(input_key: str) -> xr.Dataset
Source code in tsdat/io/readers/netcdf_reader.py
def read(self, input_key: str) -> xr.Dataset:
    return xr.open_dataset(input_key, **self.parameters)  # type: ignore