diff --git a/modules/amv/intercompare.py b/modules/amv/intercompare.py index 076c967c6af76722376b550ea99ecdf2ba76fca9..8e9c04ae6b8afe24ba310346615177a48fa512cc 100644 --- a/modules/amv/intercompare.py +++ b/modules/amv/intercompare.py @@ -108,8 +108,9 @@ def filter_amvs(amvs, qitype=amv_cqi_idx, qival=50, lat_range=None): return amvs[keep, :] -def get_raob_dict_cdf(filename): +def get_raob_dict_cdf(filename, dt_str): rtgrp = Dataset(filename, 'r', format='NETCDF3') + dto = datetime.datetime.strptime(dt_str, '%Y-%m-%d_%H:%M').replace(tzinfo=timezone.utc) sta_lats_var = rtgrp['staLat'] sta_lats_var.set_always_mask(False) @@ -218,7 +219,7 @@ def get_raob_dict_cdf(filename): raob_dct[(lat, lon)] = raob - return raob_dct + return raob_dct, dto.timestamp() def get_raob_dict(filename):