roms_tools.CDRForcing.plot_tracer_concentration

roms_tools.CDRForcing.plot_tracer_concentration#

CDRForcing.plot_tracer_concentration(tracer_name: str, start: datetime | None = None, end: datetime | None = None, release_names: list[str] | str = 'all')#

Plot the concentration of a given tracer for each specified release within the given time range.

Parameters:
  • tracer_name (str) – Name of the tracer to plot, e.g., “ALK”, “DIC”, etc.

  • start (datetime or None) – Start datetime for the plot. If None, defaults to self.start_time.

  • end (datetime or None) – End datetime for the plot. If None, defaults to self.end_time.

  • release_names (list[str], or str, optional) – A list of release names to plot. If a string equal to “all”, all releases will be plotted. Defaults to “all”.

Raises:

ValueError – If self.releases are not of type VolumeRelease. If release_names is not a list of strings or “all”. If any of the specified release names do not exist in self.releases. If tracer_name does not exist in self.ds[“tracer_name”])