eo_forge.io.GenLoader.BaseGenericLoader
- class eo_forge.io.GenLoader.BaseGenericLoader(folder, resolution=30, bands=None, bbox=None, logger=None, **kwargs)
Base class for Landsat and Sentinel loaders.
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, bands=None, bbox=None, logger=None, **kwargs)
Constructor.
- Parameters
- folderstr
Path to the folder with the raw data.
- resolution: int
Desired resolution.
- bands: iterable
List of bands to process
- bbox: None or geodataframe
geodataframe with specified bounding box to crop around
- logger: None or logging module instance
logger to populate (if provided). If None, a default logger is used that print all the messages to the stdout.
- Attributes
- archive_folder
- bands
- resolution
Methods
__init__
(folder[, resolution, bands, bbox, ...])Constructor.
execute
([product_id, process_clouds, ...])Base execute function for the loaders.
post_process_band
(raster, band)Postprocess the band data (ndarray input).