eo_forge.io.SentinelLoaders.Sentinel2Loader
- class eo_forge.io.SentinelLoaders.Sentinel2Loader(folder, bands=None, resolution=10, level='l1c', bbox=None, logger=None, **kwargs)
Class for Loading Sentinel SAFE data 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, bands=None, resolution=10, level='l1c', bbox=None, logger=None, **kwargs)
Contructor.
- Parameters
- folder: str
Path to the folder with the SAFE data.
- resolution: int
Desired resolution.
- bands: iterable
List of bands to process
- level: str
“l1c” or “l2a” processing levels
Methods
__init__
(folder[, bands, resolution, level, ...])Contructor.
execute
([product_id, process_clouds, ...])Base execute function for the loaders.
post_process_band
(raster, band)Returns the calibrated Sentinel 2 Images to TOA-REF.