Script for download and stitching of ERA5 atmospheric data
This commit is contained in:
parent
ba27cd15fd
commit
dcdb566c17
|
@ -36,16 +36,16 @@ south_lim = -90
|
||||||
"""
|
"""
|
||||||
Start and end time for atmospheric data:
|
Start and end time for atmospheric data:
|
||||||
"""
|
"""
|
||||||
startdate = '2012-12-08' # also acts as start date of atmospheric ERA5 data for ascent
|
startdate = '2019-12-15' # also acts as launch data of ERA5 data for ascent
|
||||||
enddate = '2013-02-01'
|
enddate = '2020-01-17'
|
||||||
|
|
||||||
ascent_window = 10 # time length of ERA5 data for ascent phase in (full!) days from start date
|
ascent_window = 10 # time length of ERA5 data for ascent phase in (full) days from start date
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Operations you want to be performed:
|
Operations you want to be performed:
|
||||||
"""
|
"""
|
||||||
ascent_only = False # True # get only ERA5 data for ascent (e. g. for new location or time within same region)
|
ascent_only = False # True # get only ERA5 data for ascent (e. g. for new location or time within same region)
|
||||||
download = True # True # download raw ERA5 files
|
download = False # True # download raw ERA5 files
|
||||||
stitch = True # False # create stitched files
|
stitch = True # False # create stitched files
|
||||||
delete = False # False # delete original files
|
delete = False # False # delete original files
|
||||||
|
|
||||||
|
@ -298,7 +298,7 @@ floatfiles = []
|
||||||
singlefiles = []
|
singlefiles = []
|
||||||
ascentfiles = []
|
ascentfiles = []
|
||||||
|
|
||||||
for (root, dirs, files) in os.walk("ERA5"):
|
for (root, dirs, files) in os.walk(folder):
|
||||||
for name in files:
|
for name in files:
|
||||||
if name.startswith("float"):
|
if name.startswith("float"):
|
||||||
floatfiles.append(os.path.join(folder, str(name)))
|
floatfiles.append(os.path.join(folder, str(name)))
|
||||||
|
@ -387,4 +387,4 @@ if delete == True:
|
||||||
if os.path.join(folder, name) in floatfiles + singlefiles + ascentfiles:
|
if os.path.join(folder, name) in floatfiles + singlefiles + ascentfiles:
|
||||||
os.remove(os.path.join(folder, name))
|
os.remove(os.path.join(folder, name))
|
||||||
else:
|
else:
|
||||||
pass
|
pass
|
Loading…
Reference in New Issue