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:
FileNotFoundError β If NUTS-files are not available.
FileNotFoundError β If the merged clipped file from clipping module does not exist.