satpy.readers.oli_tirs_l1_tif module

Landsat OLI/TIRS Level 1 reader.

Details of the data format can be found here:

https://d9-wret.s3.us-west-2.amazonaws.com/assets/palladium/production/s3fs-public/atoms/files/LSDS-1822_Landsat8-9-OLI-TIRS-C2-L1-DFCB-v6.pdf https://www.usgs.gov/landsat-missions/using-usgs-landsat-level-1-data-product

NOTE: The scene geometry data (SZA, VZA, SAA, VAA) is retrieved from the L1 TIFF files, which are derived from Band 04. The geometry differs between bands, so if you need precise geometry you should calculate this from the metadata instead.

class satpy.readers.oli_tirs_l1_tif.OLITIRSCHReader(filename, filename_info, filetype_info, mda, **kwargs)[source]

Bases: BaseFileHandler

File handler for Landsat L1 files (tif).

Initialize the reader.

calibrate(data, calibration)[source]

Calibrate the data from counts into the desired units.

property end_time

Return end time.

get_area_def(dsid)[source]

Get area definition of the image from the metadata.

static get_btype(file_type)[source]

Return the band type from the file type.

get_dataset(key, info)[source]

Load a dataset.

property start_time

Return start time.

class satpy.readers.oli_tirs_l1_tif.OLITIRSMDReader(filename, filename_info, filetype_info)[source]

Bases: BaseFileHandler

File handler for Landsat L1 files (tif).

Init the reader.

_get_band_radcal(band)[source]

Get the radiance scale and offset values.

_get_band_tircal(band)[source]

Return thermal channel calibration info.

_get_band_viscal(band)[source]

Return visible channel calibration info.

_get_satflag(band)[source]

Return saturation flag for a band.

property band_calibration

Return per-band saturation flag.

property band_saturation

Return per-band saturation flag.

build_area_def(bname)[source]

Build area definition from metadata.

property center_time

Return center time.

property cloud_cover

Return estimated granule cloud cover percentage.

earth_sun_distance()[source]

Return Earth-Sun distance.

property end_time

Return end time.

This is actually the scene center time, as we don’t have the end time. It is constructed from the observation date (from the filename) and the center time (from the metadata).

property start_time

Return start time.

This is actually the scene center time, as we don’t have the start time. It is constructed from the observation date (from the filename) and the center time (from the metadata).