Skip to content

Commit 74504b1

Browse files
committed
add qc check for monthly time axis
1 parent 12eab42 commit 74504b1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pcmdi_metrics/variability_mode/lib/lib_variability_mode.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
import pcmdi_metrics
1515
from pcmdi_metrics.io import get_time, select_subset, xcdat_open
16-
from pcmdi_metrics.utils import apply_landmask
16+
from pcmdi_metrics.utils import apply_landmask, check_monthly_time_axis
1717

1818

1919
def tree():
@@ -67,6 +67,9 @@ def read_data_in(
6767
# Open data file
6868
ds = xcdat_open(path)
6969

70+
# Data QC check -- time axis check
71+
check_monthly_time_axis(ds)
72+
7073
# Time subset
7174
ds_time_subsetted = subset_time(ds, syear, eyear, debug=debug)
7275
data_timeseries = ds_time_subsetted[var_in_data]

0 commit comments

Comments
 (0)