-
Notifications
You must be signed in to change notification settings - Fork 1
/
INSTGE.FOR
254 lines (233 loc) · 8.05 KB
/
INSTGE.FOR
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
C=======================================================================
C INSTGE, Subroutine
C
C Initializes phenological stages
C-----------------------------------------------------------------------
C Revision history
C
C 03/28/1993 GH Written
C 05/28/1993 PWW Header revision and minor changes
C 09/23/2002 GH Added Faba Bean
C-----------------------------------------------------------------------
C INPUT : CROP
C
C LOCAL : I
C
C OUTPUT : STNAME
C-----------------------------------------------------------------------
C Called : SEHARV
C
C Calls : None
C-----------------------------------------------------------------------
C DEFINITIONS
C
C HDLAY :
C=======================================================================
SUBROUTINE INSTGE (STNAME,CROP)
IMPLICIT NONE
CHARACTER*2 CROP
CHARACTER*10 STNAME(20)
INTEGER I
C-----------------------------------------------------------------------
C Define names of reproductive phases
C-----------------------------------------------------------------------
DO I = 1, 20
STNAME(I) = ' '
END DO
SELECT CASE (CROP)
! IF (CROP .EQ. 'BA') THEN
CASE('BA')
STNAME( 1) = 'Max Prim '
STNAME( 2) = 'End Veg '
STNAME( 3) = 'End Ear Gr'
STNAME( 4) = 'Ear Emerg '
STNAME( 5) = 'End Gr Fil'
STNAME( 6) = 'Maturity '
STNAME( 7) = 'Sowing '
STNAME( 8) = 'Germinate '
STNAME( 9) = 'Emergence '
! ELSE IF (CROP .EQ. 'BN') THEN
CASE ('BN','CH','CP','CT','FB','LT','PE',
& 'PN','PP','PR','SB','TM','VB')
STNAME( 1) = 'Emergence '
STNAME( 2) = 'Unifoliate'
STNAME( 3) = 'End Juven.'
STNAME( 4) = 'Flower Ind'
STNAME( 5) = 'Flowering '
STNAME( 6) = 'First Pod '
STNAME( 7) = 'Full Pod '
STNAME( 8) = 'First Seed'
STNAME( 9) = 'End Pod '
STNAME(10) = 'Phys. Mat '
STNAME(11) = 'Harv. Mat '
STNAME(12) = 'End Msnode'
STNAME(13) = 'End Leaf '
STNAME(14) = 'Start Sim '
STNAME(15) = 'Sowing '
STNAME(16) = 'Harvest '
! ELSE IF (INDEX ('C3C4BHG1G2G3G4G5G6G7G8BR',CROP) .GT. 0) THEN
CASE ('C3','C4','BH','G1','G2','G3','G4','G5','G6','G7','G8','BR')
STNAME( 1) = 'Emergence '
STNAME( 2) = 'First Leaf'
STNAME( 3) = 'End Juven.'
STNAME( 4) = 'Flower Ind'
STNAME( 5) = 'Flowering '
STNAME(10) = 'Phys. Mat '
STNAME(11) = 'Harv. Mat '
STNAME(12) = 'End Msnode'
STNAME(13) = 'End Leaf '
STNAME(14) = 'Start Sim '
STNAME(15) = 'Sowing '
STNAME(16) = 'Harvest '
! ELSE IF (CROP .EQ. 'CB') THEN
CASE ('CB')
STNAME( 1) = 'Emergence '
STNAME( 2) = 'Unifoliate'
STNAME( 3) = 'End Juven.'
STNAME( 4) = ' '
STNAME( 5) = ' '
STNAME( 6) = 'First Head'
STNAME( 7) = 'Full Head '
STNAME( 8) = ' '
STNAME( 9) = ' '
STNAME(10) = 'Phys. Mat '
STNAME(11) = 'Harv. Mat '
STNAME(12) = 'End Msnode'
STNAME(13) = 'End Leaf '
STNAME(14) = 'Start Sim '
STNAME(15) = 'Sowing '
STNAME(16) = 'Harvest '
! ELSE IF (CROP .EQ. 'CO') THEN
CASE ('CO')
STNAME( 1) = 'Emergence '
STNAME( 2) = 'First Leaf'
STNAME( 3) = 'End Juven.'
STNAME( 4) = 'Flower Ind'
STNAME( 5) = 'Flowering '
STNAME( 6) = 'Boll > 6mm'
STNAME( 7) = 'End Flower'
STNAME( 8) = 'First Seed'
STNAME( 9) = 'Bolls>.5sz'
STNAME(10) = 'Cracked Bl'
STNAME(11) = '90%Open Bl'
STNAME(12) = 'End Msnode'
STNAME(13) = 'End Leaf '
STNAME(14) = 'Start Sim '
STNAME(15) = 'Sowing '
STNAME(16) = 'Harvest '
! ELSE IF (CROP .EQ. 'FA') THEN
CASE ('FA')
STNAME(14) = 'Start Sim '
STNAME(15) = 'End Sim '
! ELSE IF (CROP .EQ. 'ML') THEN
CASE ('ML','SG')
STNAME( 1) = 'End Juveni'
STNAME( 2) = 'Floral Ini'
STNAME( 3) = 'End Lf Gro'
STNAME( 4) = 'Anthesis '
STNAME( 5) = 'End Tlr Fl'
STNAME( 6) = 'Maturity '
STNAME( 7) = 'Sowing '
STNAME( 8) = 'Germinate '
STNAME( 9) = 'Emergence '
! ELSE IF (CROP .EQ. 'MZ') THEN
CASE ('MZ')
STNAME( 1) = 'End Juveni'
STNAME( 2) = 'Floral Ini'
STNAME( 3) = '75% Silkin'
STNAME( 4) = 'Beg Gr Fil'
STNAME( 5) = 'End Gr Fil'
STNAME( 6) = 'Maturity '
STNAME( 7) = 'Sowing '
STNAME( 8) = 'Germinate '
STNAME( 9) = 'Emergence '
! ELSE IF (CROP .EQ. 'PI') THEN
CASE ('PI')
STNAME( 1) = 'Zero Stem '
STNAME( 2) = 'Forcing '
STNAME( 3) = 'SCY '
STNAME( 4) = 'Early Flwr'
STNAME( 5) = 'Fruit Harv'
STNAME( 6) = 'Maturity '
STNAME( 7) = 'Planting '
STNAME( 8) = 'Root Init '
STNAME( 9) = 'Leaf Emerg'
STNAME(10) = ' '
STNAME(11) = ' '
STNAME(12) = ' '
STNAME(13) = ' '
STNAME(14) = 'Start Sim '
STNAME(15) = 'End Sim '
STNAME(16) = ' '
STNAME(17) = ' '
STNAME(18) = ' '
STNAME(19) = ' '
STNAME(20) = 'Harvest '
! ELSE IF (CROP .EQ. 'SC') THEN
CASE ('SC')
STNAME( 1) = '14th Leaf '
STNAME( 2) = 'Stalk Beg.'
STNAME( 3) = 'Full Canop'
STNAME( 4) = 'Peak Pop '
STNAME( 5) = 'Stable Pop'
STNAME( 6) = 'Maturity '
STNAME( 7) = 'Sowing '
STNAME( 8) = 'Germinate '
STNAME( 9) = 'Emergence '
! ELSE IF (CROP .EQ. 'WH') THEN
CASE ('WH')
STNAME( 1) = 'Term Spklt'
STNAME( 2) = 'End Veg '
STNAME( 3) = 'End Ear Gr'
STNAME( 4) = 'Ear Emerg '
STNAME( 5) = 'End Gr Fil'
STNAME( 6) = 'Maturity '
STNAME( 7) = 'Sowing '
STNAME( 8) = 'Germinate '
STNAME( 9) = 'Emergence '
! ELSEIF (CROP .EQ. 'CS') THEN
CASE ('CS')
STNAME( 1) = '1st Branch'
STNAME( 2) = '2nd Branch'
STNAME( 3) = '3rd Branch'
STNAME( 4) = '4th Branch'
STNAME( 5) = '5th Branch'
STNAME( 6) = '6th Branch'
STNAME( 7) = '7th Branch'
STNAME( 8) = '8th Branch'
STNAME( 9) = 'Maturity '
STNAME(10) = 'Sowing '
STNAME(11) = 'Germinate '
STNAME(12) = 'Emergence '
STNAME(13) = ' '
STNAME(14) = 'Start Sim '
! ELSEIF (CROP .EQ. 'RI') THEN
CASE ('RI')
STNAME( 1) = 'End Juveni'
STNAME( 2) = 'Pan Init '
STNAME( 3) = 'Heading '
STNAME( 4) = 'Beg Gr Fil'
STNAME( 5) = 'End Mn Fil'
STNAME( 6) = 'Maturity '
STNAME( 7) = 'Sowing '
STNAME( 8) = 'Germinate '
STNAME( 9) = 'Emergence '
STNAME(10) = 'Prgerm Sow'
STNAME(11) = 'Transplant'
STNAME(12) = 'End Ti Fil'
STNAME(13) = 'Start Sim '
STNAME(14) = 'Harvest '
! ELSE IF (CROP .EQ. 'SU') THEN
CASE ('SU')
STNAME( 1) = 'End Juveni'
STNAME( 2) = 'Floral Ini'
STNAME( 3) = 'First Anth'
STNAME( 4) = 'Beg Gr Fil'
STNAME( 5) = 'End Gr Fil'
STNAME( 6) = 'Maturity '
STNAME( 7) = 'Sowing '
STNAME( 8) = 'Germinate '
STNAME( 9) = 'Emergence '
END SELECT
RETURN
END SUBROUTINE INSTGE