mesmer.core.anomaly.calc_anomaly

Contents

mesmer.core.anomaly.calc_anomaly#

mesmer.core.anomaly.calc_anomaly(dt, reference_period, *, time_dim='time', ref_scenario='historical')#

subtract mean over the reference period

Parameters:
  • dt (DataTree) – Data to to calculate anomalies from. Must be a DataTree object which contains the historical scenario as node and may contain several projections. Individual ensmble members must be on the scenario nodes and

  • reference_period (slice(str, str)) – Reference period, e.g. slice("1850", "1900").

  • time_dim (str, default: “time”) – Name of the time dimension.

  • ref_scenario (str, default: “historical”) – Name of the node containing the reference scenario.

Returns:

anomalies (DataTree) – dt with the reference period subtracted.

Notes

  • subtracts the reference of each individual ensmble member””