eoio.readers.generic_netcdf.metadata module#

eoio.readers.generic_netcdf.metadata#

Metadata extraction for netCDF datasets, shared by the generic netCDF reader and the ECMWF reader.

Classes#

GenericNetCDFMetadataExtractor(reader, ds)

Metadata extractor that takes its values from the attributes already in the file.

class eoio.readers.generic_netcdf.metadata.GenericNetCDFMetadataExtractor(reader, ds: Dataset)[source]#

Bases: BaseMetadataExtractor

Metadata extractor that takes its values from the attributes already in the file.

get_basic_metadata() → dict[source]#

Extract basic metadata from the dataset, to be used in other tools in MetEOR.

Returns:

Basic metadata dictionary.

get_product_metadata() → dict[source]#

Extract product metadata from the dataset.

Returns:

Product metadata dictionary.

get_variable_basic_metadata(var: str) → dict[source]#

Extract variable metadata from the dataset.

Parameters:

var – Variable name.

Returns:

Variable metadata dictionary.

get_variable_product_metadata(var: str) → dict[source]#

Extract variable metadata from the dataset.

Parameters:

var – Variable name.

Returns:

Variable metadata dictionary.