eo_forge.utils.downloader.gcSatImg
- class eo_forge.utils.downloader.gcSatImg(spacecraft='L8', boto_config=None, logger=None)
Google cloud definitions and path generators.
- __init__(spacecraft='L8', boto_config=None, logger=None)
Initialize the google cloud image checker
- Parameters
- sat: str
sat acronym: L8,L5, S2
- boto_config: Path or None
path to BOTO_CONFIG file. If None will try to use $HOME/.boto as location
- 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.
Methods
__init__([spacecraft, boto_config, logger])Initialize the google cloud image checker
build_metadata_path(base_path, prod_id)Build metadata path based on platform.
clean_dataframe_values(pd_)Remove NaN values from dataframe.
clean_scene_name(scene_path_dir)Clean scene name.
filt_dates(pd_[, dates, date_col])Filter dates on dataframe.
gcImagesCheck(url_filler)gsutil command assembler for image checking.
gcImagesFilt([filters, dates, clouds])Process images metadata obtained from gc bucket.
get_clouds_from_meta(pd_filt[, remove_meta])Get cloud file from metadata.
get_clouds_from_metadata(file)Get clouds coverage based on platform/
make_dates_from_name(pd_[, date_col])Generate dates from files name.
Attributes
BASE_LANDSAT5BASE_LANDSAT8BASE_SENTINEL2DATE_LANDSAT5DATE_LANDSAT8DATE_SENTINEL2LANDSAT_FILTERSLANDSAT_METASENTINEL2_METASENTINEL_FILTERS