From 5366dbd1888d0ca5f37b9bd1709e5f1962101757 Mon Sep 17 00:00:00 2001 From: rink <rink@ssec.wisc.edu> Date: Mon, 5 Oct 2020 16:43:35 -0500 Subject: [PATCH] snapshot... --- modules/aeolus/aeolus_amv.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/modules/aeolus/aeolus_amv.py b/modules/aeolus/aeolus_amv.py index b7d34707..3dd8986e 100644 --- a/modules/aeolus/aeolus_amv.py +++ b/modules/aeolus/aeolus_amv.py @@ -441,7 +441,7 @@ def create_amv_to_aeolus_match_file(aeolus_files_dir, amv_files_dir, outfile=Non # match_file: pathname for the product file # dt_str_0: start time (YYYY-MM-DD_HH:MM) # dt_str_1: end time (YYYY-MM-DD_HH:MM) -def get_subset(match_file, dt_str_0, dt_str_1): +def subset_by_time(match_file, dt_str_0, dt_str_1): rootgrp = Dataset(match_file, 'r', format='NETCDF4') all_dims = rootgrp.dimensions t_var = rootgrp['time'] @@ -467,8 +467,6 @@ def get_subset(match_file, dt_str_0, dt_str_1): dto.replace(tzinfo=timezone.utc) t_1 = dto.timestamp() - print(t_0, t_1) - if t_1 < t_0: t = t_0 t_1 = t_0 -- GitLab