From de07587ee84dff557a543f4b0c49dd7200cec418 Mon Sep 17 00:00:00 2001
From: lkugler <lukas.kugler@gmail.com>
Date: Wed, 7 Jun 2023 17:31:03 +0200
Subject: [PATCH] prepare nature

---
 dartwrf/assim_synth_obs.py | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/dartwrf/assim_synth_obs.py b/dartwrf/assim_synth_obs.py
index 4268a84..a978708 100755
--- a/dartwrf/assim_synth_obs.py
+++ b/dartwrf/assim_synth_obs.py
@@ -18,15 +18,14 @@ wrfout_format = 'wrfout_d01_%Y-%m-%d_%H:%M:%S'
 def _prepare_DART_grid_template():
     # DART needs a wrfinput file as a template for the grid
     # No data will be read from this file, but the grid information must match exactly.
-    symlink(cluster.dartrundir + "/prior_ens1/wrfout_d01", 
-            cluster.dartrundir + "/wrfinput_d01")
+    symlink(cluster.dart_rundir + "/prior_ens1/wrfout_d01", 
+            cluster.dart_rundir + "/wrfinput_d01")
 
 def _copy_nature_to_dart(time):
     """Copies wrfout_d01 from nature run to DART directory
-
-    TODO: This is a bit of a hack, because it is not explicit about where to take the nature from.
     """
     glob_pattern = time.strftime(exp.nature_wrfout_pattern)  # replace time in pattern
+    print('searching for nature in pattern:', glob_pattern)
     f_nat = glob.glob(glob_pattern)[0]  # find the nature wrfout-file
 
     # check user input
-- 
GitLab