Skip to content
Snippets Groups Projects
Commit fe421e35 authored by tomrink's avatar tomrink
Browse files

snapshot...

parent 3263cffe
Branches
No related tags found
No related merge requests found
...@@ -34,8 +34,6 @@ CACHE_GFS = True ...@@ -34,8 +34,6 @@ CACHE_GFS = True
goes_cache_dir = data_dir + '/goes16' goes_cache_dir = data_dir + '/goes16'
CACHE_GOES = True CACHE_GOES = True
COPY_GOES = True COPY_GOES = True
if not COPY_GOES:
CACHE_GOES = False
fmt = '%Y%j%H' fmt = '%Y%j%H'
...@@ -879,11 +877,12 @@ def get_images(lons, lats, timestamp, channel_list, half_width, step, do_norm=Fa ...@@ -879,11 +877,12 @@ def get_images(lons, lats, timestamp, channel_list, half_width, step, do_norm=Fa
data_r.append(images_r) data_r.append(images_r)
# remove file from local cache # remove file from local cache
if not CACHE_GOES: if COPY_GOES:
subprocess.call(['rm', local_path]) if not CACHE_GOES:
if TRIPLET or CONV3D: subprocess.call(['rm', local_path])
subprocess.call(['rm', local_path_l]) if TRIPLET or CONV3D:
subprocess.call(['rm', local_path_r]) 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) return np.array(data), np.array(data_l), np.array(data_r), np.array(idxs)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment