From e5360c8fb050cfbc0cb1b7e0993c5c47564e2aac Mon Sep 17 00:00:00 2001 From: lkugler <lukas.kugler@gmail.com> Date: Wed, 7 Jun 2023 18:43:34 +0200 Subject: [PATCH] archive obs_seq.out also if not generated --- dartwrf/assim_synth_obs.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dartwrf/assim_synth_obs.py b/dartwrf/assim_synth_obs.py index a978708..0df6404 100755 --- a/dartwrf/assim_synth_obs.py +++ b/dartwrf/assim_synth_obs.py @@ -363,8 +363,12 @@ def get_obsseq_out(time): if exp.use_existing_obsseq != False: # use an existing obs_seq.out file f_obsseq = time.strftime(exp.use_existing_obsseq) - copy(f_obsseq, cluster.dart_rundir+'/obs_seq.out') + copy(f_obsseq, cluster.dart_rundir+'/obs_seq.out') # copy to run_DART folder print(f_obsseq, 'copied to', cluster.dart_rundir+'/obs_seq.out') + + # copy to sim_archive + copy(f_obsseq, time.strftime(cluster.archivedir+'/obs_seq_out/%Y-%m-%d_%H:%M_obs_seq.out')) + oso = obsseq.ObsSeq(cluster.dart_rundir + "/obs_seq.out") # read the obs_seq.out file else: # do NOT use an existing obs_seq.out file -- GitLab