tobac.plotting.plot_tracks_mask_field_loop#

tobac.plotting.plot_tracks_mask_field_loop(track, field, mask, features, axes=None, name=None, plot_dir='./', figsize=(3.937007874015748, 3.937007874015748), dpi=300, margin_left=0.05, margin_right=0.05, margin_bottom=0.05, margin_top=0.05, **kwargs)#

Plot field, feature positions and segments onto individual maps for all timeframes and save them as pngs.

Parameters:
  • track (pandas.DataFrame) – Output of linking_trackpy.

  • field (iris.cube.Cube) – Original input data.

  • mask (iris.cube.Cube) – Cube containing mask (int id for tacked volumes, 0 everywhere else). Output of the segmentation step.

  • features (pandas.DataFrame) – Output of the feature detection.

  • axes (cartopy.mpl.geoaxes.GeoAxesSubplot, optional) – Not used. Default is None.

  • name (str, optional) – Filename without file extension. Same for all pngs. If None, the name of the field is used. Default is None.

  • plot_dir (str, optional) – Path where the plots will be saved. Default is ‘./’.

  • figsize (tuple of floats, optional) – Width, height of the plot in inches. Default is (10/2.54, 10/2.54).

  • dpi (int, optional) – Plot resolution. Default is 300.

  • margin_left (float, optional) – The position of the left edge of the axes, as a fraction of the figure width. Default is 0.05.

  • margin_right (float, optional) – The position of the right edge of the axes, as a fraction of the figure width. Default is 0.05.

  • margin_bottom (float, optional) – The position of the bottom edge of the axes, as a fraction of the figure width. Default is 0.05.

  • margin_top (float, optional) – The position of the top edge of the axes, as a fraction of the figure width. Default is 0.05.

  • **kwargs

Return type:

None