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

.

parent 1ce11e11
No related branches found
No related tags found
No related merge requests found
......@@ -206,7 +206,7 @@ id = None
id = prepare_wrfinput() # create initial conditions
begin = dt.datetime(2008, 7, 30, 6, 0)
end = dt.datetime(2008, 7, 30, 20, 0)
end = dt.datetime(2008, 7, 30, 21, 0)
# whole forecast timespan
hist_interval = 5
......
......@@ -18,7 +18,8 @@ for iens in range(1, exp.n_ens+1):
# time not important, but general settings
prepare_namelist.run(iens, begin=dt.datetime(2008, 7, 30, 6, 0),
end=dt.datetime(2008, 7, 30, 6, 30))
end=dt.datetime(2008, 7, 30, 6, 30),
archive=False)
symlink(input_prof, rundir+'/input_sounding')
print('finished.')
......@@ -36,11 +36,16 @@ def clean_wrfdir(dir):
os.remove(f)
def symlink(src, dst):
# Create a symbolic link pointing to src named dst.
try:
os.symlink(src, dst)
except FileExistsError:
os.remove(dst)
os.symlink(src, dst)
# print('file exists')
if os.path.realpath(dst) == src:
pass # print('link is correct')
else:
os.remove(dst)
os.symlink(src, dst)
except Exception as e:
raise e
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment