metobs_toolkit.geedatasetmanagers.GEEStaticDatasetManager#
- class GEEStaticDatasetManager(name: str, location: str, band_of_use: str, value_type: str, scale: int, is_image: bool, is_mosaic: bool = False, credentials: str = '', class_map: dict = {}, agg_scheme: dict = {}, col_scheme: dict = {})[source]#
Class for working with static GEE modeldatasets.
- __init__(name: str, location: str, band_of_use: str, value_type: str, scale: int, is_image: bool, is_mosaic: bool = False, credentials: str = '', class_map: dict = {}, agg_scheme: dict = {}, col_scheme: dict = {})[source]#
Create a GeeStaticDataset instance representing a GEE dataset without a time dimension.
- Parameters:
name (str) – The user-defined name for referring to this GEE dataset.
location (str) – The location of the dataset on GEE.
band_of_use (str) – The name of the band to use.
value_type (str) – Specify how to interpret the values of the GEE dataset.
scale (int) – The scale of the dataset to extract values of.
is_image (bool) – If True, the GEE dataset is opened as ee.Image(), else ee.ImageCollection().
is_mosaic (bool, optional) – If True, ee.mosaic() is applied on the GEE dataset. Default is False.
credentials (str, optional) – Credentials of the GEE dataset. Default is “”.
class_map (dict, optional) – Mapping of numeric values to human-labels for categorical datasets. Default is {}.
agg_scheme (dict, optional) – Aggregation scheme for custom classes. Default is {}.
col_scheme (dict, optional) – Color scheme for classes. Default is {}.
- Return type:
None
Methods
__init__(name, location, band_of_use, ...[, ...])Create a GeeStaticDataset instance representing a GEE dataset without a time dimension.
extract_static_buffer_frac_data(metadf, ...)Extract cover frequencies in circular buffers at stations.
extract_static_point_data(metadf)Extract point values at the locations in the metadata.
get_info([printout])Print out detailed information of the GeeStaticDataset.
make_gee_plot(metadf[, save, filepath, ...])Make an interactive spatial plot of the GEE dataset and the stations.