metobs_toolkit.site.Site#
- class Site(stationname: str, latitude: float, longitude: float, extradata: dict | None = None)[source]#
Holds all metadata and location-based data of a site (station location).
- Parameters:
stationname (str) – Name of the station.
latitude (float) – Latitude of the station.
longitude (float) – Longitude of the station.
extradata (dict, optional) – Additional metadata for the site, by default {}.
- __init__(stationname: str, latitude: float, longitude: float, extradata: dict | None = None)[source]#
Methods
__init__(stationname, latitude, longitude[, ...])add_metadata(metadata)Add metadata to the site.
Check if the site has LCZ information.
Check if the site has altitude information.
flag_has_coordinates()Check if the site has valid coordinates.
flag_has_landcoverfractions()Check if the site has land cover fractions.
get_gee_point_buffer_fractions(...[, ...])Extract buffer fractions from a GEEStaticDatasetManager.
get_gee_point_metadata(gee_static_manager[, ...])Extract static point metadata from a GEEStaticDatasetManager.
get_info([printout])Retrieve and optionally print basic information about the site.
set_LCZ(LCZ)Set the LCZ attribute.
set_altitude(altitude)Set the altitude attribute.
set_gee_buffered_frac_data(buffer, data)Set buffered fraction data for a given buffer radius.
set_geedata(dataname, value)Set a value in the geedata dictionary.
setup()Attributes
Return the LCZ.
Return the altitude.
Return the buffered fractions dictionary.
Return the extra metadata dictionary.
Return the latitude.
Return the longitude.
Return a DataFrame with all metadata and geometry.
Return the station name.