Subversion Repositories lagranto.wrf

Rev

Rev 2 | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2 Rev 11
1
#!/bin/csh
1
#!/bin/csh
2
 
2
 
-
 
3
# Set Lagranto 
-
 
4
set LAGRANTO = ${LAGRANTOBASE}.${MODEL}/
3
 
5
 
4
# Write usage information
6
# Write usage information
5
if ( ${#argv} == 0) then
7
if ( ${#argv} == 0) then
6
  echo 
8
  echo 
7
  ${LAGRANTO}/bin/lagrantohelp reformat short
9
  ${LAGRANTO}/bin/lagrantohelp reformat short
8
  echo  
10
  echo  
9
  exit 0
11
  exit 0
10
endif
12
endif
11
 
13
 
12
set inpfile=$1
14
set inpfile=$1
13
set outfile=$2
15
set outfile=$2
14
 
16
 
15
set prog1=${LAGRANTO}/goodies/reformat
17
set prog1=${LAGRANTO}/goodies/reformat
16
set prog2=${LAGRANTO}/goodies/trainfo.sh
18
set prog2=${LAGRANTO}/goodies/trainfo.sh
17
 
19
 
18
set dim=`${prog2} ${inpfile} dim` 
20
set dim=`${prog2} ${inpfile} dim` 
19
 
21
 
20
\rm -f reformat.param
22
\rm -f reformat.param
21
echo \"${inpfile}\"  >! reformat.param
23
echo \"${inpfile}\"  >! reformat.param
22
echo \"${outfile}\"  >> reformat.param
24
echo \"${outfile}\"  >> reformat.param
23
echo ${dim}          >> reformat.param
25
echo ${dim}          >> reformat.param
24
 
26
 
25
${prog1}
27
${prog1}
26
 
28
 
27
\rm -f reformat.param
29
\rm -f reformat.param
28
 
30
 
29
exit 0
31
exit 0
30
 
32