mapchete_eo.cli package

Submodules

mapchete_eo.cli.bounds module

mapchete_eo.cli.options_arguments module

class mapchete_eo.cli.options_arguments.TqdmUpTo(*_, **__)[source]

Bases: tqdm

Provides update_to(n) which uses tqdm.update(delta_n).

update_to(n: int = 1, nsize: int = 1, total: int | None = None)[source]
nint, optional

Number of blocks transferred so far [default: 1].

nsizeint, optional

Size of each block (in tqdm units) [default: 1].

totalint, optional

Total size (in tqdm units). If [default: None] remains unchanged.

mapchete_eo.cli.s2_brdf module

mapchete_eo.cli.s2_cat_results module

mapchete_eo.cli.s2_cat_results.get_schema(by_slices: bool, add_index: bool, geometry_type: str = 'MultiPolygon') dict[source]
mapchete_eo.cli.s2_cat_results.get_value(_slice: Slice, key: str, index: int, slice_property_key: str) Any[source]

mapchete_eo.cli.s2_find_broken_products module

mapchete_eo.cli.s2_jp2_static_catalog module

class mapchete_eo.cli.s2_jp2_static_catalog.VectorDataSource(path: 'MPath', schema: 'Optional[dict]' = None, driver: 'Optional[str]' = 'FlatGeobuf', crs: 'Optional[CRS]' = CRS.from_epsg(4326), features: 'dict' = <factory>)[source]

Bases: object

crs: CRS | None = CRS.from_epsg(4326)
driver: str | None = 'FlatGeobuf'
features: dict
path: MPath
schema: dict | None = None
write(feature_id: str, feature: dict)[source]

mapchete_eo.cli.s2_mask module

mapchete_eo.cli.s2_mgrs module

mapchete_eo.cli.s2_rgb module

mapchete_eo.cli.s2_verify module

class mapchete_eo.cli.s2_verify.Report(item: pystac.item.Item, missing_asset_entries: List[str], missing_assets: List[mapchete.path.MPath], color_artefacts: bool = False)[source]

Bases: object

color_artefacts: bool = False
item: Item
missing_asset_entries: List[str]
missing_assets: List[MPath]
product_broken() bool[source]
mapchete_eo.cli.s2_verify.outlier_pixels_detected(arr: ndarray, axis: int = 0, range_threshold: int = 100, allowed_error_percentage: float = 1) bool[source]

Checks whether number of outlier pixels is larger than allowed.

An outlier pixel is a pixel, where the value range between bands exceeds the range_threshold.

mapchete_eo.cli.s2_verify.verify_item(item: Item, assets: List[str], asset_exists_check: bool = False, check_thumbnail: bool = True, thumbnail_dir: MPath | None = None)[source]

mapchete_eo.cli.static_catalog module

Module contents