[Dart-dev] [3857] DART/trunk/ncep_obs/work/multi_create.csh: updates to convert a month at a time
nancy at ucar.edu
nancy at ucar.edu
Wed May 6 15:07:10 MDT 2009
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/dart-dev/attachments/20090506/cf324eb1/attachment-0001.html
-------------- next part --------------
Modified: DART/trunk/ncep_obs/work/multi_create.csh
===================================================================
--- DART/trunk/ncep_obs/work/multi_create.csh 2009-05-06 21:02:43 UTC (rev 3856)
+++ DART/trunk/ncep_obs/work/multi_create.csh 2009-05-06 21:07:10 UTC (rev 3857)
@@ -32,6 +32,9 @@
set startday = 1
set endday = 31
+# if you want to run more than one of these jobs at a time,
+# each must have a different base tempname.
+set tempname = tempdir
# Loop over days, first to convert, then to clean up
set day = $startday
@@ -39,8 +42,8 @@
while ( $day <= $lastday )
- mkdir tempdir_${day}
- cd tempdir_${day}
+ mkdir ${tempname}_${day}
+ cd ${tempname}_${day}
set mo = `printf %02d $month`
cp -f ../create_real_obs .
@@ -70,8 +73,10 @@
# belong. must then set a base dir to move them into.
# could then remove the dir, although might miss errors that way.
while ( $day <= $lastday )
- rm tempdir_${day}/input.nml tempdir_${day}/create_real_obs tempdir_${day}/dart_log.nml
- #rmdir tempdir_${day}
+ rm ${tempname}_${day}/input.nml ${tempname}_${day}/create_real_obs ${tempname}_${day}/dart_log.nml
+
+ # could mv the obs file to the eventual destination dir here
+ #rmdir ${tempname}_${day}
@ day++
end
More information about the Dart-dev
mailing list