satpy.readers.hrit_base module

HRIT/LRIT format reader.

This module is the base module for all HRIT-based formats. Here, you will find the common building blocks for hrit reading.

One of the features here is the on-the-fly decompression of hrit files. It needs a path to the xRITDecompress binary to be provided through the environment variable called XRIT_DECOMPRESS_PATH. When compressed hrit files are then encountered (files finishing with .C_), they are decompressed to the system’s temporary directory for reading.

class satpy.readers.hrit_base.HRITFileHandler(filename, filename_info, filetype_info, hdr_info)[source]

Bases: satpy.readers.file_handlers.BaseFileHandler

HRIT standard format reader.

Initialize the reader.

property end_time

Get end time.

get_area_def(dsid)[source]

Get the area definition of the band.

get_area_extent(size, offsets, factors, platform_height)[source]

Get the area extent of the file.

get_dataset(key, info)[source]

Load a dataset.

get_shape(dsid, ds_info)[source]

Get shape.

get_xy_from_linecol(line, col, offsets, factors)[source]

Get the intermediate coordinates from line & col.

Intermediate coordinates are actually the instruments scanning angles.

read_band(key, info)[source]

Read the data.

property start_time

Get start time.

satpy.readers.hrit_base.decompress(infile, outdir='.')[source]

Decompress an XRIT data file and return the path to the decompressed file.

It expect to find Eumetsat’s xRITDecompress through the environment variable XRIT_DECOMPRESS_PATH.

satpy.readers.hrit_base.get_xritdecompress_cmd()[source]

Find a valid binary for the xRITDecompress command.

satpy.readers.hrit_base.get_xritdecompress_outfile(stdout)[source]

Analyse the output of the xRITDecompress command call and return the file.