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:
BaseFileHandler
HRIT standard format reader.
Initialize the reader.
- property end_time
Get end time.
- get_xy_from_linecol(line, col, offsets, factors)[source]
Get the intermediate coordinates from line & col.
Intermediate coordinates are actually the instruments scanning angles.
- property start_time
Get start time.
- class satpy.readers.hrit_base.HRITSegment(filename, mda)[source]
Bases:
object
An HRIT segment with data.
Set up the segment.
- 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_header_content(fp, header_dtype, count=1)[source]
Return the content of the HRIT header.