satpy.readers.mcd12q1 module

MCD12Q1 hdf-eos format reader.

Introduction

The mcd12q1 reader reads MCD12Q1 products in HDF-EOS format.

The 500m product is provided on a sinusoidal grid.

Reference documents and links:
The reader has been tested with:
  • MCD12Q1: Land cover data.

To get a list of the available datasets for a given file refer to the “Load data” section in Reading.

class satpy.readers.mcd12q1.MCD12Q1HDFFileHandler(filename, filename_info, filetype_info, **kwargs)[source]

Bases: HDFEOSBaseFileReader

File handler for MCD12Q1 HDF-EOS 500m granules.

Initialize the base reader.

_dynamic_variables_from_file(handled_var_names: set) Iterable[tuple[bool, dict]][source]
_get_area_extent()[source]

Get the grid properties.

_get_res()[source]

Compute the resolution from the file metadata.

available_datasets(configured_datasets=None)[source]

Automatically determine datasets provided by this file.

get_area_def(dsid)[source]

Get the area definition.

This is fixed, but not defined in the file. So we must generate it ourselves with some assumptions.

The proj_param string comes from https://lpdaac.usgs.gov/documents/101/MCD12_User_Guide_V6.pdf

get_dataset(dataset_id, dataset_info)[source]

Get DataArray for specified dataset.