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:
BaseModelCountry-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
Configuration for the model, should be a dictionary conforming to
ConfigDict.