Skip to content

Commit

Permalink
add qc check for monthly time axis
Browse files Browse the repository at this point in the history
  • Loading branch information
lee1043 committed Sep 17, 2024
1 parent 12eab42 commit 74504b1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pcmdi_metrics/variability_mode/lib/lib_variability_mode.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down Expand Up @@ -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]
Expand Down

0 comments on commit 74504b1

Please sign in to comment.