Readers#

Interface to the readers#

All readers must implement the following interface.

class ccres_weather_station.readers.base.BaseReader(config: ccres_weather_station.config.config.Config)[source]#

Bases: abc.ABC

Base reader to implement for registering readers.

abstract read_file(file: Union[str, pathlib.Path]) xarray.core.dataset.Dataset[source]#
abstract read_files(files: List[Union[str, pathlib.Path]]) xarray.core.dataset.Dataset[source]#

And registering them by using ccres_weather_station.readers.register.register_reader function :

ccres_weather_station.readers.register.register_reader(reader: Type[ccres_weather_station.readers.base.BaseReader], name: str) None[source]#