mpas_tools.ocean.viz.transect.plot_feature_transects
- mpas_tools.ocean.viz.transect.plot_feature_transects(fc, ds, ds_mesh=None, variable_list=None, cmap=None, flip=False, write_netcdf=False, method='flat', add_z=False)[source]
 Plot images of the given variables on the given transects. One image named
<transect_name>_<variable_name>.pngwill 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
dsby defaultvariable_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
write_netcdf (bool, optional) – Whether to write a NetCDF file for the transect in addition to the image
method ({'flat', 'bilinear'}, optional) – The type of interpolation to use in plots.
flatmeans constant values over each MPAS cell.bilinearmeans smooth interpolation between horizontally between cell centers and vertical between the middle of layers.add_z (bool, optional) – Whether to add zMid and zInterface to the mesh dataset