dctools.debug.debug_utils.visualize_netcdf_with_geometry

dctools.debug.debug_utils.visualize_netcdf_with_geometry(ds, geometry, coordinates, variable_name='zos')

Visualize a NetCDF dataset variable along with a geometry on a map.

Parameters:
  • ds (xr.Dataset) – The dataset containing the variable to plot.

  • geometry (gpd.GeoSeries) – The geometry (polygon, point, etc.) to overlay.

  • coordinates (Dict[str, str]) – Mapping of coordinate names, e.g., {‘lon’: ‘longitude’, ‘lat’: ‘latitude’}.

  • variable_name (str, optional) – The name of the variable to visualize. Defaults to “zos”.