eurocropsml.acquisition.clipping.clipper.clippingΒΆ
- clipping(config: CollectorConfig, output_dir: Path, shape_dir: Path, workers: int, chunk_size: int, multiplier: int, local_dir: Path | None = None, rebuild: bool = False) NoneΒΆ
Main function to conduct polygon clipping.
- Parameters:
config β Country-specific configuration for acquiring EuroCrops reflectance data.
output_dir β Directory path where intermediate results will be stored.
shape_dir β Directory path where EuroCrops shapefile is stored.
workers β Maximum number of workers used for multiprocessing.
chunk_size β Chunk size used for multiprocessed raster clipping.
multiplier β Intermediate results will be saved every multiplier steps.
local_dir β Local directory where the .SAFE files were copied to.
rebuild β Whether to re-build the clipped parquet files for each month. This will overwrite the existing ones.