metobs_toolkit.geedatasetmanagers.GEEStaticDatasetManager.extract_static_buffer_frac_data#

GEEStaticDatasetManager.extract_static_buffer_frac_data(metadf: DataFrame, bufferradius: int, agg_bool: bool = False) DataFrame[source]#

Extract cover frequencies in circular buffers at stations.

This methods will create (circular) buffers, specified by the radius, on each station. All the gridpoint in the radius are sampled and occurence frequency is computed for each landcover category in the buffer.

If an aggregation scheme is known (see the .agg_scheme attribute), then the frequencies can be computed for the aggregated classes instead of the dataset classes.

Parameters:
  • metadf (pandas.DataFrame) – Metadata dataframe with station locations.

  • bufferradius (int) – The radius (in meters) of the buffer.

  • agg_bool (bool, optional) – If True, frequencies are computed on aggregated classes. Default is False.

Returns:

Dataframe with station names as index and class frequencies as columns.

Return type:

pandas.DataFrame