metobs_toolkit.dataset.Dataset.get_landcover_fractions#
- Dataset.get_landcover_fractions(buffers: list = [100], aggregate: bool = False, update_metadata: bool = True, initialize_gee: bool = True) DataFrame[source]#
Get landcover fractions for a circular buffer at the stations using GEE.
- Parameters:
buffers (list of int, optional) – List of buffer sizes (in meters) to calculate land cover fractions for. Default is [100].
aggregate (bool, optional) – If True, aggregates the data over the buffers. Default is False.
update_metadata (bool, optional) – If True, updates existing landcover fraction data stored in the ´Site´ attribute of the ´Station´s. Default is True.
initialize_gee (bool, optional) – If True, initialize the Google Earth Engine API before fetching data. Default is True.
- Returns:
A nested dictionary where the keys are buffer radii and the values are the corresponding (aggregated) landcoverclasses.
- Return type:
dict
Warning
This method makes use of GEE API. Make sure that you have access and user rights to use the GEE API.