eurocropsml.acquisition.region.add_nuts_regionsΒΆ

add_nuts_regions(config: CollectorConfig, raw_data_dir: Path, output_dir: Path, shape_dir: Path, nuts_dir: Path, final_output_dir: Path, rebuild: bool = False) NoneΒΆ

Get NUTS regions for parcels.

Parameters:
  • config – Country-specific configuration for acquiring EuroCrops reflectance data.

  • raw_data_dir – Directory where raw data that is independent of the satellite is stored. This concerns the labels and geometries.

  • output_dir – Directory path where intermediate results will be stored.

  • shape_dir – File path of EuroCrops shapefile.

  • nuts_dir – Directory where NUTS-region shapefiles are stored.

  • final_output_dir – Directory where the final DataFrame will be stored. This depends on the satellite.

  • rebuild – Whether to re-build the final clipped parquet file for each month. This will overwrite the existing ones.

Raises: