metobs_toolkit.station.Station.get_altitude#
- Station.get_altitude(update_metadata: bool = True, initialize_gee: bool = True) float[source]#
Retrieve altitude for the station using Google Earth Engine (GEE).
- Parameters:
update_metadata (bool, optional) – If True, update existing altitude data if stored in the Site attribute. Default is True.
initialize_gee (bool, optional) – If True, initialize the Google Earth Engine API before fetching data. Default is True.
apply_seamask_fix (bool, optional) – The LCZ map is only defined over land, and thus locations in sea will have a LCZ of Nan. If this argument is set to True, Nan values returned by the GEE call are converted to the LCZ-G (water) category.
- Returns:
The altitude of the station.
- Return type:
float
Notes
This method relies on the get_static_gee_point_data function and the default_gee_datasets dictionary to fetch the altitude data.