metobs_toolkit.dataset.Dataset.get_static_gee_point_data#
- Dataset.get_static_gee_point_data(gee_static_manager: GEEStaticDatasetManager, update_metadata: bool = True, initialize_gee: bool = True) DataFrame[source]#
Extract static data from GEE dataset at Stations locations.
Retrieve Google Earth Engine (GEE) point data of a static dataset, for the stations. The retrieved data is stored if overwrite is True.
- Parameters:
gee_static_manager (GEEStaticDatasetManager) – An instance of GEEStaticDatasetManager representing the static GEE dataset to query.
update_metadata (bool, optional) – If True, the retrieved data will update existing data in the ´Station´’s metadata. Default is True.
initialize_gee (bool, optional) – If True, initializes the GEE API before fetching the data. Default is True.
- Returns:
A DataFrame with the name of the station as index and de extracted value as a column.
- Return type:
pandas.DataFrame
Notes
This method interacts with the GEE API to fetch metadata for the station’s location. Ensure that the GEE API is properly authenticated and initialized before using this method.