Subversion Repositories lagranto.um

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
3 michaesp 1
#!/bin/csh
2
 
3
 
4
# Write usage information
5
if ( ${#argv} == 0) then
6
  echo 
7
  echo "--------------------------------------------------------------"
8
  echo "Usage: reformat.sh trainp traout        "
9
  echo 
10
  echo "         trainp          : Input trajectory file"
11
  echo "         traout          : Output trajectory file"
12
  echo
13
  echo "     mode=1: ascii, sorted by trajectory"
14
  echo "     mode=2: ascii, sorted by time"
15
  echo "     mode=3: fortran (unformatted)"    
16
  echo "     mode=4: IVE netcdf"  
17
  echo "--------------------------------------------------------------"
18
  exit 0
19
endif
20
 
21
set inpfile=$1
22
set outfile=$2
23
 
24
set prog1=${LAGRANTO}/goodies/reformat
25
set prog2=${LAGRANTO}/goodies/trainfo.sh
26
 
27
set dim=`${prog2} ${inpfile} dim` 
28
 
29
\rm -f reformat.param
30
echo \"${inpfile}\"  >! reformat.param
31
echo \"${outfile}\"  >> reformat.param
32
echo ${dim}          >> reformat.param
33
 
34
${prog1}
35
 
36
\rm -f reformat.param
37
 
38
exit 0
39