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.