diff --git a/modules/deeplearning/amv_raob.py b/modules/deeplearning/amv_raob.py index 71d717e21b6773cadc03ac5d649af804805eb6b1..0e0febb002db9696d667ecc6d8168c73e014bd81 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)