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

snapshot...

parent 3263cffe
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment