Subversion Repositories lagranto.wrf

Rev

Rev 2 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 michaesp 1
#!/bin/csh
2
 
3
# -----------------------------------------------------------------------------
4
# Set some parameters
5
# -----------------------------------------------------------------------------
6
 
11 michaesp 7
# Set Lagranto 
8
set LAGRANTO = ${LAGRANTOBASE}.${MODEL}/
9
 
2 michaesp 10
# Write usage information
11
if ( ${#argv} == 0) then
12
  echo 
13
  ${LAGRANTO}/bin/lagrantohelp mergetra short 
14
  echo  
15
  exit 0
16
endif
17
 
18
# Set input file
19
set inpfile1 = $1
20
set inpfile2 = $2
21
set outfile  = $3
22
shift; shift; shift
23
 
24
# Handle optional arguments 
25
set datecheck = "datecheck"
26
while ( $#argv > 0 )
27
   if ( "$1" == "-nodatecheck" ) set datecheck="nodatecheck"
28
   shift
29
end
30
 
31
# Set Fortran program
32
set prog=${LAGRANTO}/goodies/mergetra
33
 
34
# -----------------------------------------------------------------------------
35
# Run program 
36
# -----------------------------------------------------------------------------
37
 
38
set dims1=`${LAGRANTO}/goodies/trainfo.sh ${inpfile1} dim` 
39
set dims2=`${LAGRANTO}/goodies/trainfo.sh ${inpfile2} dim` 
40
 
41
\rm -f mergetra.param
42
echo \"${inpfile1}\"  >! mergetra.param 
43
echo \"${inpfile2}\"  >> mergetra.param
44
echo \"${outfile}\"   >> mergetra.param
45
echo ${dims1}         >> mergetra.param
46
echo ${dims2}         >> mergetra.param
47
echo \"${datecheck}\" >> mergetra.param
48
 
49
${prog}
50
 
51
exit 0
52