metobs_toolkit.geedatasetmanagers.GEEDynamicDatasetManager.make_gee_plot#

GEEDynamicDatasetManager.make_gee_plot(metadf: DataFrame, timeinstance: Timestamp, modelobstype: str = 'temp', 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.

Parameters:
  • metadf (pandas.DataFrame) – Metadata dataframe with station locations.

  • timeinstance (datetime.datetime or pandas.Timestamp) – The time instance to plot the GEE dataset.

  • modelobstype (str, optional) – The name of the ModelObstype to plot. Default is “temp”.

  • 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 GeeDynamicDataset.

Return type:

geemap.foliumap.Map