3 |
michaesp |
1 |
|
|
|
2 |
SUBROUTINE special (flag,cmd,tra,ntim,ncol,
|
|
|
3 |
> vars,times,param,nparam,outfile)
|
|
|
4 |
|
|
|
5 |
c ***************************************************************************
|
|
|
6 |
c * *
|
|
|
7 |
c * OUTPUT: flag -> 1 if trajectory is selected, 0 if not *
|
|
|
8 |
c * *
|
|
|
9 |
c * INPUT: cmd <- command string *
|
|
|
10 |
c * tra(ntim,ncol) <- single trajectory: indices time,column *
|
|
|
11 |
c * ntim <- number of times *
|
|
|
12 |
c * ncol <- number of columns (including time,lon,lat,p) *
|
|
|
13 |
c * vars(ncol) <- names of columns *
|
|
|
14 |
c * times(ntim) <- List of times
|
|
|
15 |
c * param(nparam) <- parameter values *
|
|
|
16 |
c * nparam <- number of parameters *
|
|
|
17 |
c * *
|
|
|
18 |
c ***************************************************************************
|
|
|
19 |
|
|
|
20 |
implicit none
|
|
|
21 |
|
|
|
22 |
c ---------------------------------------------------------------------------
|
|
|
23 |
c Declaration of subroutine parameters
|
|
|
24 |
c ---------------------------------------------------------------------------
|
|
|
25 |
|
|
|
26 |
integer flag ! Boolean flag whether trajectory is selected
|
|
|
27 |
character*80 cmd ! Command string
|
|
|
28 |
integer ntim,ncol ! Dimension of single trajectory
|
|
|
29 |
real tra(ntim,ncol) ! Single trajectory
|
|
|
30 |
character*80 vars(ncol) ! Name of columns
|
|
|
31 |
real times(ntim) ! List of times
|
|
|
32 |
integer nparam ! # parameters
|
|
|
33 |
real param(nparam) ! List of parameters
|
|
|
34 |
character*80 outfile ! Name of output file
|
|
|
35 |
|
|
|
36 |
c ---------------------------------------------------------------------------
|
|
|
37 |
c Call subroutines
|
|
|
38 |
c ---------------------------------------------------------------------------
|
|
|
39 |
|
|
|
40 |
if ( cmd.eq.'WCB' ) then
|
|
|
41 |
|
|
|
42 |
call special_wcb (flag,cmd,tra,ntim,ncol,
|
|
|
43 |
> vars,times,param,nparam,outfile)
|
|
|
44 |
|
|
|
45 |
|
|
|
46 |
elseif ( cmd.eq.'STT' ) then
|
|
|
47 |
|
|
|
48 |
call special_stt (flag,cmd,tra,ntim,ncol,
|
|
|
49 |
> vars,times,param,nparam,outfile)
|
|
|
50 |
|
|
|
51 |
else
|
|
|
52 |
|
|
|
53 |
print*,' ERROR: special criterion ',trim(cmd),' not found'
|
|
|
54 |
stop
|
|
|
55 |
|
|
|
56 |
endif
|
|
|
57 |
|
|
|
58 |
|
|
|
59 |
end
|