Subversion Repositories lagranto.um

Rev

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

Rev 3 Rev 12
1
#!/bin/csh
1
#!/bin/csh
2
 
2
 
3
 
3
 
4
# Write usage information
4
# Write usage information
5
if ( ${#argv} == 0) then
5
if ( ${#argv} == 0) then
6
  echo 
6
  echo 
7
  echo "--------------------------------------------------------------"
7
  echo "--------------------------------------------------------------"
8
  echo "Usage: lsl2list.sh listinp traout       "
8
  echo "Usage: lsl2list.sh listinp traout       "
9
  echo 
9
  echo 
10
  echo "         trainp         : Input trajectory file "
10
  echo "         trainp         : Input trajectory file "
11
  echo "         listout        : Output list [lon,lat,p] file"
11
  echo "         listout        : Output list [lon,lat,p] file"
12
  echo "--------------------------------------------------------------"
12
  echo "--------------------------------------------------------------"
13
  exit 1
13
  exit 1
14
endif
14
endif
15
 
15
 
16
set inpfile=$1
16
set inpfile=$1
17
set outfile=$2
17
set outfile=$2
18
 
18
 
19
set prog1=${LAGRANTO}/goodies/lsl2list
19
set prog1=${LAGRANTO}/goodies/lsl2list
20
 
20
 
21
set dim=`${LAGRANTO}/goodies/trainfo.sh ${inpfile} dim` 
21
set dim=`${LAGRANTO}/goodies/trainfo.sh ${inpfile} dim` 
22
 
22
 
23
\rm -f lsl2list.param
23
\rm -f lsl2list.param
24
echo \"${inpfile}\"       >! lsl2list.param
24
echo \"${inpfile}\"       >! lsl2list.param
25
echo \"${outfile}\"       >> lsl2list.param
25
echo \"${outfile}\"       >> lsl2list.param
26
echo ${dim}               >> lsl2list.param
26
echo ${dim}               >> lsl2list.param
27
 
27
 
28
${prog1}
28
${prog1}
29
 
29
 
30
#\rm -f lsl2list.param
30
#\rm -f lsl2list.param
31
 
31
 
32
exit 0
32
exit 0
33
 
33