From fe421e35de512efbf5db393ab558596819959558 Mon Sep 17 00:00:00 2001 From: tomrink <rink@ssec.wisc.edu> Date: Tue, 16 Feb 2021 10:16:48 -0600 Subject: [PATCH] snapshot... --- modules/deeplearning/amv_raob.py | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/modules/deeplearning/amv_raob.py b/modules/deeplearning/amv_raob.py index 71d717e2..0e0febb0 100644 --- a/modules/deeplearning/amv_raob.py +++ b/modules/deeplearning/amv_raob.py @@ -34,8 +34,6 @@ CACHE_GFS = True goes_cache_dir = data_dir + '/goes16' CACHE_GOES = True COPY_GOES = True -if not COPY_GOES: - CACHE_GOES = False fmt = '%Y%j%H' @@ -879,11 +877,12 @@ def get_images(lons, lats, timestamp, channel_list, half_width, step, do_norm=Fa data_r.append(images_r) # remove file from local cache - if not CACHE_GOES: - subprocess.call(['rm', local_path]) - if TRIPLET or CONV3D: - subprocess.call(['rm', local_path_l]) - subprocess.call(['rm', local_path_r]) + if COPY_GOES: + if not CACHE_GOES: + subprocess.call(['rm', local_path]) + if TRIPLET or CONV3D: + subprocess.call(['rm', local_path_l]) + subprocess.call(['rm', local_path_r]) return np.array(data), np.array(data_l), np.array(data_r), np.array(idxs) -- GitLab