Skip to content
Snippets Groups Projects
Commit da3e0ae3 authored by lkugler's avatar lkugler
Browse files

input_profiles optional

parent 1ea086e3
No related branches found
No related tags found
No related merge requests found
...@@ -20,7 +20,6 @@ if __name__ == '__main__': ...@@ -20,7 +20,6 @@ if __name__ == '__main__':
for iens in range(1, exp.n_ens+1): for iens in range(1, exp.n_ens+1):
print('preparing ens', iens) print('preparing ens', iens)
input_prof = (exp.input_profile).replace('<iens>', str(iens).zfill(3))
rundir = cluster.wrf_rundir(iens) rundir = cluster.wrf_rundir(iens)
os.makedirs(rundir, exist_ok=True) os.makedirs(rundir, exist_ok=True)
...@@ -33,5 +32,9 @@ if __name__ == '__main__': ...@@ -33,5 +32,9 @@ if __name__ == '__main__':
prepare_namelist.run(iens, begin=init_time, end=dt.datetime(2008, 7, 30, 23), prepare_namelist.run(iens, begin=init_time, end=dt.datetime(2008, 7, 30, 23),
archive=False) archive=False)
symlink(input_prof, rundir+'/input_sounding') # prepare input profiles
if hasattr(exp, 'input_profile'):
input_prof = (exp.input_profile).replace('<iens>', str(iens).zfill(3))
symlink(input_prof, rundir+'/input_sounding')
print('finished.') print('finished.')
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment