From 74504b13b5997400f3fcfde70c22d76a7062634a Mon Sep 17 00:00:00 2001 From: Jiwoo Lee Date: Mon, 16 Sep 2024 17:00:53 -0700 Subject: [PATCH] add qc check for monthly time axis --- pcmdi_metrics/variability_mode/lib/lib_variability_mode.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pcmdi_metrics/variability_mode/lib/lib_variability_mode.py b/pcmdi_metrics/variability_mode/lib/lib_variability_mode.py index 29f224408..e3c203414 100644 --- a/pcmdi_metrics/variability_mode/lib/lib_variability_mode.py +++ b/pcmdi_metrics/variability_mode/lib/lib_variability_mode.py @@ -13,7 +13,7 @@ import pcmdi_metrics from pcmdi_metrics.io import get_time, select_subset, xcdat_open -from pcmdi_metrics.utils import apply_landmask +from pcmdi_metrics.utils import apply_landmask, check_monthly_time_axis def tree(): @@ -67,6 +67,9 @@ def read_data_in( # Open data file ds = xcdat_open(path) + # Data QC check -- time axis check + check_monthly_time_axis(ds) + # Time subset ds_time_subsetted = subset_time(ds, syear, eyear, debug=debug) data_timeseries = ds_time_subsetted[var_in_data]