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

only copy nature if it exists

parent d1abf4de
No related branches found
No related tags found
No related merge requests found
...@@ -32,14 +32,18 @@ def link_nature_to_dart_truth(time): ...@@ -32,14 +32,18 @@ def link_nature_to_dart_truth(time):
cluster.dart_rundir + "/wrfinput_d01") cluster.dart_rundir + "/wrfinput_d01")
print("linked", f_nat, "to", cluster.dart_rundir + "/wrfout_d01") print("linked", f_nat, "to", cluster.dart_rundir + "/wrfout_d01")
f_wrfout_nature = time.strftime(exp.nature+'/'+wrfout_format)
def prepare_nature_dart(time): if os.path.exists(f_wrfout_nature):
print("linking nature to DART & georeferencing") print("linking nature to DART & georeferencing")
link_nature_to_dart_truth(time) shutil.copy(f_wrfout_nature, cluster.dartrundir + "/wrfout_d01")
print("linked", f_wrfout_nature, "to", cluster.dartrundir + "/wrfout_d01")
if cluster.geo_em_for_WRF_ideal: if cluster.geo_em_for_WRF_ideal:
wrfout_add_geo.run(cluster.geo_em_for_WRF_ideal, cluster.dart_rundir + "/wrfout_d01") wrfout_add_geo.run(cluster.geo_em_for_WRF_ideal, cluster.dart_rundir + "/wrfout_d01")
else: # if nature is not available due to any reason
print('-> has no nature, not copying nature')
def prepare_prior_ensemble(assim_time, prior_init_time, prior_valid_time, prior_path_exp): def prepare_prior_ensemble(assim_time, prior_init_time, prior_valid_time, prior_path_exp):
"""Prepares DART files for running filter """Prepares DART files for running filter
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment