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

update

parent f7d5626f
No related branches found
No related tags found
No related merge requests found
...@@ -134,8 +134,8 @@ def run_ENS(begin, end, depends_on=None, first_minute=True, ...@@ -134,8 +134,8 @@ def run_ENS(begin, end, depends_on=None, first_minute=True,
str(hist_interval), str(hist_interval),
'--radt='+str(radt), '--radt='+str(radt),
'--restart='+restart_flag,] '--restart='+restart_flag,]
if restart_path: # if restart_path:
args.append('--rst_inname='+restart_path) # args.append('--rst_inname='+restart_path)
if output_restart_interval: if output_restart_interval:
args.append('--restart_interval='+str(int(float(output_restart_interval)))) args.append('--restart_interval='+str(int(float(output_restart_interval))))
...@@ -212,7 +212,7 @@ def gen_obsseq(depends_on=None): ...@@ -212,7 +212,7 @@ def gen_obsseq(depends_on=None):
def verify(depends_on=None): def verify(depends_on=None):
s = my_Slurm("verify", cfg_update={"time": "240", "mail-type": "FAIL,END", s = my_Slurm("verify-"+exp.expname, cfg_update={"time": "240", "mail-type": "FAIL,END",
"ntasks": "96", "ntasks-per-node": "96", "ntasks-per-core": "2"}) "ntasks": "96", "ntasks-per-node": "96", "ntasks-per-core": "2"})
s.run(cluster.python_enstools+' /home/fs71386/lkugler/osse_analysis/analyze_fc.py '+exp.expname+' has_node', s.run(cluster.python_enstools+' /home/fs71386/lkugler/osse_analysis/analyze_fc.py '+exp.expname+' has_node',
depends_on=[depends_on]) depends_on=[depends_on])
...@@ -266,7 +266,7 @@ if __name__ == "__main__": ...@@ -266,7 +266,7 @@ if __name__ == "__main__":
# How long shall we integrate? # How long shall we integrate?
timedelta_integrate = timedelta_btw_assim timedelta_integrate = timedelta_btw_assim
if time == dt.datetime(2008, 7, 30, 14): #this_forecast_init.minute in [0,]: # longer forecast every full hour if time == dt.datetime(2008, 7, 30, 14): #this_forecast_init.minute in [0,]: # longer forecast every full hour
timedelta_integrate = dt.timedelta(hours=3) timedelta_integrate = dt.timedelta(hours=1)
# 3) Run WRF ensemble # 3) Run WRF ensemble
id = run_ENS(begin=time, # start integration from here id = run_ENS(begin=time, # start integration from here
......
...@@ -7,7 +7,7 @@ import netCDF4 as nc ...@@ -7,7 +7,7 @@ import netCDF4 as nc
dx_km = 2 dx_km = 2
cr = 15 # km horizontal relaxation distance cr = 15 # km horizontal relaxation distance
cz = 3000 # meters vertical relaxation distance cz = 2000 # meters vertical relaxation distance
perturbations = False perturbations = False
if len(sys.argv) > 1: if len(sys.argv) > 1:
...@@ -44,7 +44,7 @@ for iens in range(1, exp.n_ens+1): ...@@ -44,7 +44,7 @@ for iens in range(1, exp.n_ens+1):
xx, yy = np.meshgrid(dx, dy) xx, yy = np.meshgrid(dx, dy)
dr = np.sqrt(xx**2 + yy**2)[np.newaxis, :, :] dr = np.sqrt(xx**2 + yy**2)[np.newaxis, :, :]
pert = 3*np.exp(-(dr/cr)**2)*np.exp(-(z/cz)**2) pert = 4*np.exp(-(dr/cr)**2)*np.exp(-(z/cz)**2)
ds.variables['T'][0,...] += pert ds.variables['T'][0,...] += pert
ds.variables['THM'][0,...] += pert ds.variables['THM'][0,...] += pert
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment