metobs_toolkit.station.Station.get_static_gee_buffer_fraction_data#

Station.get_static_gee_buffer_fraction_data(gee_manager: GEEStaticDatasetManager, buffers: list = [100], aggregate: bool = False, update_metadata: bool = True, initialize_gee: bool = True) dict[source]#

Extract circular buffer fractions of a GEE dataset at Station locations.

Parameters:
  • gee_manager (GEEStaticDatasetManager) – An instance of GEEStaticDatasetManager used to retrieve static GEE data.

  • buffers (list, optional) – A list of buffer radii (in meters) for which to compute the buffer fractions. Default is [100].

  • aggregate (bool, optional) – If True, aggregate the buffer fraction data. Default is False.

  • update_metadata (bool, optional) – If True, update the existing buffer fraction data in the station’s Site attribute. Default is True.

  • initialize_gee (bool, optional) – If True, initialize the GEE environment before retrieving data. Default is True.

Returns:

A nested dictionary where the keys are buffer radii and the values are the corresponding buffer fraction data.

Return type:

dict

Warning

This method makes use of the GEE API. Make sure that you have access and user rights to use the GEE API.

Warning

It can happen that for stations located on small islands, or close to the coast, the sea-mask is not used as a landcover fraction.