satpy.readers.grib module

Generic Reader for GRIB2 files.

Currently this reader depends on the pygrib python package. The eccodes package from ECMWF is preferred, but does not support python 3 at the time of writing.

class satpy.readers.grib.GRIBFileHandler(filename, filename_info, filetype_info)[source]

Bases: BaseFileHandler

Generic GRIB file handler.

Open grib file and do initial message parsing.

available_datasets(configured_datasets=None)[source]

Automatically determine datasets provided by this file.

property end_time

Get end time of this entire file.

Assumes the last message is the latest message.

get_area_def(dsid)[source]

Get area definition for message.

If latlong grid then convert to valid eqc grid.

get_dataset(dataset_id, ds_info)[source]

Read a GRIB message into an xarray DataArray.

get_metadata(msg, ds_info)[source]

Get metadata.

property start_time

Get start time of this entire file.

Assumes the first message is the earliest message.