metobs_toolkit.geedatasetmanagers.GEEStaticDatasetManager.make_gee_plot#
- GEEStaticDatasetManager.make_gee_plot(metadf: DataFrame, save: bool = False, filepath: str | PathLike | None = None, vmin: float | int | None = None, vmax: float | int | None = None, overwrite: bool = False, initialize_gee: bool = True)[source]#
Make an interactive spatial plot of the GEE dataset and the stations.
This method will create an interactive plot of the GEE dataset. If metadata is present, it will be displayed as markers on the map.
The interactive map can be saved as an HTML file, by specifying the target path.
- Parameters:
metadf (pandas.DataFrame) – Metadata dataframe with station locations.
save (bool, optional) – If True, saves the map as an HTML file. Default is False.
filepath (str or path-like or None, optional) – Path to the file to save the HTML output, if save is True. If the path does not end with ‘.html’, it will be appended. If None, defaults to ‘gee_plot.html’ in the current working directory. Default is None.
vmin (numeric or None, optional) – Minimum value for colormap. Default is None.
vmax (numeric or None, optional) – Maximum value for colormap. Default is None.
overwrite (bool, optional) – If True, overwrites existing file. Default is False.
initialize_gee (bool, optional) – If True, initializes the GEE API before creating the plot. Default is True.
- Returns:
The interactive map of the GeeStaticDataset.
- Return type:
geemap.foliumap.Map