mpas_tools.ocean.viz.plot_ocean_transects

mpas_tools.ocean.viz.plot_ocean_transects(fc, ds, ds_mesh=None, variable_list=None, cmap=None, flip=False)[source]

Plot images of the given variables on the given transects. One image named <transect_name>_<variable_name>.png will be produced in the current directory for each transect and variable

Parameters:
  • fc (geometric_features.FeatureCollection) – The transects to plot

  • ds (xarray.Dataset) – The MPAS-Ocean dataset to plot

  • ds_mesh (xarray.Dataset, optional) – The MPAS-Ocean mesh to use for plotting, the same as ds by default

  • variable_list (list of str, optional) – The variables to plot

  • cmap (str, optional) – The name of a colormap to use

  • flip (book, optional) – Whether to flip the x axes of all transect plot