[Dart-dev] [6059] DART/branches/development/models/CESM/shell_scripts/ CLM_convert_restarts.csh: This is the script that converts/ interpolates one set of CLM restart files

nancy at ucar.edu nancy at ucar.edu
Tue Apr 16 15:29:35 MDT 2013


Revision: 6059
Author:   thoar
Date:     2013-04-16 15:29:34 -0600 (Tue, 16 Apr 2013)
Log Message:
-----------
This is the script that converts/interpolates one set of CLM restart files
to another set at (potentially) some different resolution.
We are actually using it to strip out the river runoff from the 
/CCSM/csm/b40.20th.005_ens09/rest/2004-01-01-00000/ restarts.

Added Paths:
-----------
    DART/branches/development/models/CESM/shell_scripts/CLM_convert_restarts.csh

-------------- next part --------------
Added: DART/branches/development/models/CESM/shell_scripts/CLM_convert_restarts.csh
===================================================================
--- DART/branches/development/models/CESM/shell_scripts/CLM_convert_restarts.csh	                        (rev 0)
+++ DART/branches/development/models/CESM/shell_scripts/CLM_convert_restarts.csh	2013-04-16 21:29:34 UTC (rev 6059)
@@ -0,0 +1,54 @@
+#!/bin/csh -f
+#
+# DART software - Copyright 2004 - 2011 UCAR. This open source software is
+# provided by UCAR, "as is", without charge, subject to all terms of use at
+# http://www.image.ucar.edu/DAReS/DART/DART_download
+#
+# $Id$
+#
+# ---------------------------------------------------------------------
+# Converts 'old' CLM restart files to whatever resolution you like.
+# I ran a default case for the time period and compset of interest and
+# then used one of the CLM restart files as the 'template' below.
+#
+# The source CLM restart files were from some previous run.
+# ---------------------------------------------------------------------
+#
+#BSUB -J interpinic
+#BSUB -o interpinic.%J.log
+#BSUB -P P8685nnnn
+#BSUB -q geyser
+#BSUB -N -u ${USER}@ucar.edu
+#BSUB -n 1
+#BSUB -R "span[ptile=1]"
+#BSUB -W 3:00
+
+set EXEDIR = ~thoar/cesm1_1_1/clm/tools/interpinic
+set SRCDIR = /glade/scratch/thoar/DART_POP_RESTARTS/2004-01-01-00000
+set OUTDIR = /glade/scratch/thoar/DART_POP_RESTARTS/
+
+cd $OUTDIR
+
+@ instance = 1
+
+while ($instance <= 30)
+
+   echo `date`" converting CLM restart file for ensemble member $instance ... "
+
+   set file1 = `printf b40.20th.005_ens%02d.clm2.r.2004-01-01-00000.nc $instance`
+   set file2 = `printf cesm_test.clm2_%04d.r.2004-01-01-00000.nc $instance`
+
+   \cp -f clm_template_restart_file.nc $file2
+
+   ${EXEDIR}/interpinic -i ${SRCDIR}/$file1 -o $file2
+
+   @ instance ++
+end
+
+exit 0
+
+# <next few lines under version control, do not edit>
+# $URL$
+# $Revision$
+# $Date$
+


Property changes on: DART/branches/development/models/CESM/shell_scripts/CLM_convert_restarts.csh
___________________________________________________________________
Added: svn:executable
   + *
Added: svn:mime-type
   + text/plain
Added: svn:keywords
   + Date Rev Author HeadURL Id
Added: svn:eol-style
   + native


More information about the Dart-dev mailing list