polaris.analysis.product_step.ProductStep.add_product

ProductStep.add_product(plot, group, gallery, title, data=None, **facets)[source]

Describe one product this step has just made, and update the fragment

Parameters:
  • plot (str) – The name of the plot file, relative to the step’s work directory

  • group (str) – The product group this belongs to, which becomes a gallery group

  • gallery (str) – The gallery within that group

  • title (str) – A one-line description, used as the caption

  • data (str, optional) – The name of the netCDF file holding what was plotted

  • facets – Any other keys that identify the product

Returns:

product (polaris.analysis.manifest.Product) – The product that was added