diff --git a/roms_tools/setup/utils.py b/roms_tools/setup/utils.py index bb4f5b0b..e5195422 100644 --- a/roms_tools/setup/utils.py +++ b/roms_tools/setup/utils.py @@ -613,8 +613,12 @@ def group_dataset(ds, filepath): if len(ds["abs_time"]) > 2: # Determine the frequency of the data abs_time_freq = pd.infer_freq(ds["abs_time"].to_index()) - - if abs_time_freq in ["D", "H", "T", "S"]: # Daily or higher frequency + if abs_time_freq.lower() in [ + "d", + "h", + "t", + "s", + ]: # Daily or higher frequency dataset_list, output_filenames = group_by_month(ds, filepath) else: dataset_list, output_filenames = group_by_year(ds, filepath)