Script for download and stitching of ERA5 atmospheric data

This commit is contained in:
Marcel Christian Frommelt 2021-06-30 21:25:25 +09:00
parent ba27cd15fd
commit dcdb566c17
1 changed files with 6 additions and 6 deletions

View File

@ -36,16 +36,16 @@ south_lim = -90
"""
Start and end time for atmospheric data:
"""
startdate = '2012-12-08' # also acts as start date of atmospheric ERA5 data for ascent
enddate = '2013-02-01'
startdate = '2019-12-15' # also acts as launch data of ERA5 data for ascent
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:
"""
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
delete = False # False # delete original files
@ -298,7 +298,7 @@ floatfiles = []
singlefiles = []
ascentfiles = []
for (root, dirs, files) in os.walk("ERA5"):
for (root, dirs, files) in os.walk(folder):
for name in files:
if name.startswith("float"):
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:
os.remove(os.path.join(folder, name))
else:
pass
pass