eurocropsml.acquisition.config.CollectorConfigΒΆ

class CollectorConfig(*, country: str, year: int, months: tuple[int, int] = (1, 12), satellite: Literal['S1', 'S2'] = 'S2', product_type: Literal['L1C', 'L2A', 'GRD'] = 'L1C', processing_level: Literal[None, 'LEVEL1', 'LEVEL2'] = None, operational_mode: Literal[None, 'IW', 'EW', 'SM', 'WF'] = None, max_cloud_cover: int = 100, bands: list[str] = ['01', '02', '03', '04', '05', '06', '07', '08', '8A', '09', '10', '11', '12'], max_requested_products: int = 1000, country_code: str | None = None, ec_filename: str | None = None, shapefile_folder: Path | None = None, shapefile: Path | None = None, polygon: str | None = None, parcel_id_name: str | None = None)ΒΆ

Bases: BaseModel

Country-specific configuration for acquiring EuroCrops reflectance data.

Parameters:
  • country – Name of the country to collect the data for.

  • year – Year of observation to collect the data from.

  • months – Months of the year.

  • satellite – Satellite mission (Sentinel 1 (S1) or Sentinel 2(S2)). Only S2 is currently implemented.

  • product_type – Satellite product type.

  • processing_level – Sentinel-1 processing level.

  • operational_mode – Sentinel-1 operational mode.

  • max_cloud_cover – Maximum cloud cover (only used for Sentinel-2).

  • bands – Radar (Sentinel-1) or spectral (Sentinel-2) bands to consider.

  • max_requested_products – Maximum requested products during API call. It is only possible to process up to 2000 products at once. If there are more than max_requested_products available, the products will be processed on a monthly basis.

  • country_code – EuroCrops country code to identify shapefile.

  • ec_filename – EuroCrops zip-file name (without extension).

  • shapefile_folder – Path of the EuroCrops shapefile directory.

  • shapefile – Path of the final EuroCrops shapefile.

  • polygon – Country polygon encircling the entire country.

  • parcel_id_name – Identifier of parcel ID column (different for each country). If no unique identifier is available in EuroCropsCountryConfig.parcel_ids, one will be created in collector.py.

Methods

post_init(vector_data_dir)

Make dynamic config based on initialized params.

Attributes