[Dart-dev] svn:mime-type/ Revision: 11298

dart at ucar.edu dart at ucar.edu
Fri Mar 10 16:44:08 MST 2017


raeder at ucar.edu
2017-03-10 16:44:08 -0700 (Fri, 10 Mar 2017)
578
This script creates a pseudo-ensemble from a single member
set of CESM restart and initial files.  This is useful because
a multi-instance CESM forecast needs to have an initial file set
for each member, but we use a single member CESM to spin up from
the default Jan 1 date to near the assimilation period.  
This is needed even if filter's
   perturb_from_single_instance = .true.
which makes filter will read only the first file from input_state_file_list.

At some point, this could/should be merged into 'stage_cesm_files',
which is created and run by the set-up scripts.




Added: DART/branches/rma_trunk/models/CESM/shell_scripts/link_ens_to_single.csh
===================================================================
--- DART/branches/rma_trunk/models/CESM/shell_scripts/link_ens_to_single.csh	                        (rev 0)
+++ DART/branches/rma_trunk/models/CESM/shell_scripts/link_ens_to_single.csh	2017-03-10 23:44:08 UTC (rev 11298)
@@ -0,0 +1,38 @@
+#!/bin/tcsh
+
+# Script to make an ensemble of links to a single CESM restart set
+# for use by the first cycle of a CESM+DART assimilation.
+# Run this in the directory where the single restart set lives,
+# or change the links below to have the right directory name(s).
+
+# Set the $case part of the filename to which you want to link.
+set refcase =  CAM6_spinup_sst.25
+# Set the date and time of the filename to which you want to link.
+set cesm_time = 2013-06-15-00000
+# Set the ensemble size
+@ num_instances = 80
+
+@ inst=1
+while ($inst <= $num_instances)
+
+   set inst_string = `printf _%04d $inst`
+
+   # echo "Staging initial files for instance $inst of $num_instances"
+
+   ln -s ./${refcase}.clm2.r.${cesm_time}.nc ./${refcase}.clm2${inst_string}.r.${cesm_time}.nc 
+   ln -s ./${refcase}.cice.r.${cesm_time}.nc ./${refcase}.cice${inst_string}.r.${cesm_time}.nc 
+   ln -s ./${refcase}.cam.i.${cesm_time}.nc  ./${refcase}.cam${inst_string}.i.${cesm_time}.nc  
+
+   # If you are using a river runoff model, you must specify an initial file here
+   # ln -s ./${refcase}.rtm.r.${cesm_time}.nc ./${refcase}.rtm${inst_string}.r.${cesm_time}.nc
+   # OR
+   ln -s ./${refcase}.mosart.r.${cesm_time}.nc ./${refcase}.mosart${inst_string}.r.${cesm_time}.nc
+
+   # If CISM is active
+   ln -s ./${refcase}.cism.r.${cesm_time}.nc ./${refcase}.cism${inst_string}.r.${cesm_time}.nc
+   
+  @ inst ++
+end
+
+exit
+   


Property changes on: DART/branches/rma_trunk/models/CESM/shell_scripts/link_ens_to_single.csh
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Date Rev Author HeadURL Id
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property


More information about the Dart-dev mailing list