diff --git a/CHANGELOG.md b/CHANGELOG.md index e69505b3e33e129983eac76a36da4d6500db446b..d92519d7a24b48c9b6d750d26936b77eb699b5dd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,11 @@ # Changelog All notable changes to this project will be documented in this file. +## v0.6.6 - 2025-02-10 - fixed osdma8 statistic + +### general: +* changed osdma8 statistic to use monthly dma8epa values + ## v0.6.5 - 2025-01-17 - added osdma8 statistic ## v0.6.4 - 2024-09-16 - bugfix reference-series diff --git a/dist/toarstats-0.6.6-py3-none-any.whl b/dist/toarstats-0.6.6-py3-none-any.whl new file mode 100644 index 0000000000000000000000000000000000000000..fbb488499a9f12cf817e75e7191d63b84d969a4e Binary files /dev/null and b/dist/toarstats-0.6.6-py3-none-any.whl differ diff --git a/setup.cfg b/setup.cfg index 006fc53eb5893c264c3ac94d1c7fed55ed4f9635..8fe948b755332de3c9da3338b9eabf1b0ff2ac4e 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = toarstats -version = 0.6.5 +version = 0.6.6 author = Niklas Selke, Martin Schultz, Max Lensing author_email = n.selke@fz-juelich.de, m.schultz@fz-juelich.de, m.lensing@fz-juelich.de description = Collection of statistics for the TOAR community diff --git a/toarstats/metrics/ozone_metrics.py b/toarstats/metrics/ozone_metrics.py index 08a7e1d04bb3ffad029186b8a6f334f1626d8e8d..69389ebcb31eafe983eb37d3ebb783d5f9c9de68 100644 --- a/toarstats/metrics/ozone_metrics.py +++ b/toarstats/metrics/ozone_metrics.py @@ -34,6 +34,7 @@ nvgt090 - calculate the NVGT090 metric nvgt100 - calculate the NVGT100 metric nvgt120 - calculate the NVGT120 metric nvgtall - calculate all nvgt metrics together +osdma8 - calculate the annual maximum 6-month running mean of dma8epa """ import numpy as np @@ -779,7 +780,7 @@ def nvgtall(ser, ref, mtype, metadata, seasons, min_data_capture): @register("osdma8") def osdma8(ser, ref, mtype, metadata, seasons, min_data_capture): - """ Calculate osdma8 statistic + """ calculate the annual maximum 6-month running mean of dma8epa :param ser: a series containing the values :param ref: reference series @@ -790,9 +791,9 @@ def osdma8(ser, ref, mtype, metadata, seasons, min_data_capture): :return: A list of dictionaries containing the processed data """ - monthly_means = stat_processor_1("mean", ser, ref, "monthly", seasons, mincount=10) + monthly_dma8 = dma8epa(ser, ref, "monthly", metadata, seasons, min_data_capture) - tmp = monthly_means[0]["ser"] + tmp = monthly_dma8[0]["ser"] reference_index = pd.date_range( start=ref.index.min().strftime("%Y-%m-%d"), end=ref.index.max().strftime("%Y-%m-%d"),