eo_forge.io.LandsatLoaders.LandsatLoader

class eo_forge.io.LandsatLoaders.LandsatLoader(folder, resolution=30, spacecraft=5, bands=None, reflectance=True, logger=None, **kwargs)

Class for Loading Landsat5 and Landsat8 images into a single raster file (and cloud file)

This class can only load data from a local storage (your laptop storage, a NFS storage,etc). The functionality to read directly from Cloud Buckets is not yet implemented.

The particular raw data files are looked inside the archive folder based on their product ID.

__init__(folder, resolution=30, spacecraft=5, bands=None, reflectance=True, logger=None, **kwargs)

Contructor.

Parameters
folderstr

Path to the folder with the Landsat raw data.

resolution: int

Desired resolution.

spacecraft: int

Landsat spacecraft (5 or 8).

bands: iterable

List of bands to process

reflectance: bool

If True load data as “reflectance”, otherwise as “radiance”.

Methods

__init__(folder[, resolution, spacecraft, ...])

Contructor.

execute([product_id, process_clouds, ...])

Base execute function for the loaders.

post_process_band(raster, band)

Postprocess the band data (calibration).