Subversion Repositories lagranto.ecmwf

Rev

Rev 3 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3 Rev 15
Line 14... Line 14...
14
set outfile = $2
14
set outfile = $2
15
 
15
 
16
# Handle optional arguments
16
# Handle optional arguments
17
 
17
 
18
set mode = "cubic"
18
set mode = "cubic"
-
 
19
set shift = 0
-
 
20
set value = 0
-
 
21
set unit  = "min"
19
 
22
 
20
while ( $#argv > 0 )
23
while ( $#argv > 0 )
21
 
24
 
22
  switch ( $argv[1] )
25
  switch ( $argv[1] )
23
 
26
 
Line 38... Line 41...
38
   breaksw
41
   breaksw
39
 
42
 
40
   case -cubic
43
   case -cubic
41
     set mode  = "cubic"
44
     set mode  = "cubic"
42
   breaksw
45
   breaksw
-
 
46
   
-
 
47
   case -shifth
-
 
48
     set shift = $argv[2]
-
 
49
     shift;
-
 
50
   breaksw
43
 
51
 
44
  endsw
52
  endsw
45
 
53
 
46
  shift;
54
  shift;
47
 
55
 
Line 56... Line 64...
56
echo \"${outfile}\"  >> timeres.param
64
echo \"${outfile}\"  >> timeres.param
57
echo ${dim}          >> timeres.param
65
echo ${dim}          >> timeres.param
58
echo ${value}        >> timeres.param
66
echo ${value}        >> timeres.param
59
echo \"${unit}\"     >> timeres.param
67
echo \"${unit}\"     >> timeres.param
60
echo \"${mode}\"     >> timeres.param
68
echo \"${mode}\"     >> timeres.param
-
 
69
echo ${shift}        >> timeres.param
61
 
70
 
62
${LAGRANTO}/goodies/timeres
71
${LAGRANTO}/goodies/timeres
63
 
72
 
64
# Make clean
73
# Make clean
65
#\rm -f timeres.param
74
#\rm -f timeres.param