-
Notifications
You must be signed in to change notification settings - Fork 1
/
INVAR.FOR
1306 lines (1193 loc) · 52.9 KB
/
INVAR.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
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
C=======================================================================
C INVRLE, Subroutine
C
C Interactively edit genetic parameters
C-----------------------------------------------------------------------
C Revision history
C
C 01/01/1991 GH Written
C 05/28/1993 PWW Header revision and minor changes
C 03/10/2005 GH Change limits for P2R to handle photoperiod
C sensitivity
! 12/14/2005 CHP Added sorghum cultivar coefficients, PBASE and PSAT
! 11/26/2007 CHP THRESH, SDPRO, SDLIP moved from eco to cul file
C-----------------------------------------------------------------------
C INPUT : FILEG,VARTY,VRNAME,CLDVAR,THVAR,PATHGE,PM06,PM09
C
C LOCAL : IERR,IPARAM,NDEX
C
C OUTPUT : None
C-----------------------------------------------------------------------
C Called : SEVAR
C
C Calls : CLEAR SELPRO GETREAL
C-----------------------------------------------------------------------
C DEFINITIONS
C
C IERR : Error flag
C IPARAM : Menu choice
C NDEX : Error flag for FSELPRO
C CROP : Crop code
C=======================================================================
SUBROUTINE INVRLE (FILEG,RNMODE,VARTY,VRNAME,PATHGE,ECONO)
IMPLICIT NONE
INCLUDE 'COMGEN.BLK'
CHARACTER*1 LINE(80),ANS,RNMODE,BLANK,UPCASE
CHARACTER*6 GNAME(18),VARTY,ECONO
CHARACTER*12 FILEG
CHARACTER*16 VRNAME
CHARACTER*80 PATHGE
CHARACTER*92 FILEGG
INTEGER I,IG,PATHL
LOGICAL FEXIST
REAL GVALUE(18),GENP,GENNEW,FLAG
PARAMETER (BLANK = ' ')
GNAME (1) = 'CSDL '
GVALUE (1) = CSDVAR
GNAME (2) = 'PPSEN '
GVALUE (2) = PPSEN
GNAME (3) = 'EM-FL '
GVALUE (3) = PH2T5
GNAME (4) = 'FL-SH'
GVALUE (4) = PHTHRS(6)
GNAME (5) = 'FL-SD'
GVALUE (5) = PHTHRS(8)
GNAME (6) = 'SD-PM'
GVALUE (6) = PHTHRS(10)
GNAME (7) = 'FL-LF'
GVALUE (7) = PHTHRS(13)
GNAME (8) = 'LFMAX'
GVALUE (8) = LFMAX
GNAME (9) = 'SLAVR'
GVALUE (9) = SLAVAR
GNAME (10) = 'SIZLF'
GVALUE(10) = SIZELF
GNAME (11) = 'XFRT '
GVALUE(11) = XFRUIT
GNAME (12) = 'WTPSD'
GVALUE(12) = WTPSD
GNAME (13) = 'SFDUR'
GVALUE(13) = SFDUR
GNAME (14) = 'SDPDV'
GVALUE(14) = SDPDVR
GNAME (15) = 'PODUR'
GVALUE(15) = PODUR
GNAME (16) = 'THRSH'
GVALUE(16) = THRESH
GNAME (17) = 'SDPRO'
GVALUE(17) = SDPRO
GNAME (18) = 'SDLIP'
GVALUE(18) = SDLIP
700 CONTINUE
IF (INDEX('IE',RNMODE) .GT. 0) THEN
CALL CLEAR
WRITE (*,15000)
WRITE (*,16000) VRNAME
WRITE (*,17000) (I,GNAME(I),GVALUE(I),I = 1, 2)
WRITE (*,17000) (I,GNAME(I),GVALUE(I),I = 3, 4)
WRITE (*,17000) (I,GNAME(I),GVALUE(I),I = 5, 6)
WRITE (*,17000) (I,GNAME(I),GVALUE(I),I = 7, 8)
WRITE (*,17000) (I,GNAME(I),GVALUE(I),I = 9,10)
WRITE (*,17000) (I,GNAME(I),GVALUE(I),I = 11,12)
WRITE (*,17000) (I,GNAME(I),GVALUE(I),I = 13,14)
WRITE (*,17000) (I,GNAME(I),GVALUE(I),I = 15,16)
WRITE (*,17000) (I,GNAME(I),GVALUE(I),I = 17,18)
WRITE (*,18000) FILEG
ENDIF
READ (5,19000) LINE
CALL VERIFY (LINE,GENP,FLAG)
IG = NINT(GENP)
IF (FLAG .GT. 1 .OR. GENP .LT. -1 .OR. GENP .GT. 34) GO TO 700
IF (GENP .EQ. -1) GO TO 900
IF (GENP .EQ. 0 .OR. FLAG .EQ. 1) GO TO 1000
800 IF (INDEX('IE',RNMODE) .GT. 0) THEN
WRITE (*,20000) GNAME(IG),GVALUE(IG)
ENDIF
READ (5,19000) LINE
CALL VERIFY (LINE,GENNEW,FLAG)
IF (GENNEW .LT. 0) THEN
WRITE (*,21000) GENNEW
GO TO 800
ENDIF
GVALUE(IG) = GENNEW
GO TO 700
900 CONTINUE
IF (FILEG(8:8) .EQ. '0' .OR. FILEG(8:8) .EQ. '1') THEN
WRITE (*,22000) FILEG
READ (5,19000) ANS
IF (ANS .EQ. 'N' .OR. ANS .EQ. 'n') GO TO 1000
ENDIF
I = 0
950 CONTINUE
I = I + 1
WRITE (FILEG(8:8),13000) I
PATHL = INDEX (PATHGE,BLANK)
IF (PATHL .LE. 1) THEN
FILEGG = FILEG
ELSE
FILEGG = PATHGE(1:(PATHL-1)) // FILEG
ENDIF
INQUIRE (FILE = FILEGG, EXIST = FEXIST)
IF (FEXIST) THEN
IF (INDEX('IE',RNMODE) .GT. 0) WRITE (*,23000) FILEG
READ (5,19000) ANS
ANS = UPCASE(ANS)
IF (ANS .EQ. 'N' .AND. I .LT. 9) THEN
GO TO 950
ELSE IF (ANS .EQ. 'N') THEN
GO TO 1000
ENDIF
ENDIF
OPEN (19,FILE = FILEGG,STATUS = 'UNKNOWN')
VRNAME = 'NEW CULTIVAR '
C VARTY = 'NEW001'
WRITE (19,23500) (I,I=1,15)
WRITE (19,24000) VARTY,VRNAME,ECONO,(GVALUE(I),I = 1,15)
CLOSE (19)
1000 CONTINUE
CSDVAR = GVALUE( 1)
PPSEN = GVALUE( 2)
PH2T5 = GVALUE( 3)
PHTHRS(6) = GVALUE( 4)
PHTHRS(8) = GVALUE( 5)
PHTHRS(10) = GVALUE( 6)
PHTHRS(13) = GVALUE( 7)
LFMAX = GVALUE( 8)
SLAVAR = GVALUE( 9)
SIZELF = GVALUE(10)
XFRUIT = GVALUE(11)
WTPSD = GVALUE(12)
SFDUR = GVALUE(13)
SDPDVR = GVALUE(14)
PODUR = GVALUE(15)
THRESH = GVALUE(16)
SDPRO = GVALUE(17)
SDLIP = GVALUE(18)
RETURN
C-----------------------------------------------------------------------
C Format Strings
C-----------------------------------------------------------------------
13000 FORMAT (I1)
15000 FORMAT (20X,'CULTIVAR SPECIFIC COEFFICIENTS',/,20X,30('='),/)
16000 FORMAT (5X,'CULTIVAR :',1X,A20,/,5X,31('-'),//,
& 5X,'Please Check the User''s Guide For Definitions,',/,
& 5X,'Units, and Ranges of Coefficients.',/)
17000 FORMAT (5X,2(1X,I2,') ',A6,': ',F7.3,10X))
18000 FORMAT (/,5X,
& 'Please Enter Parameter # You Would Like ',
& 'To Modify [Default = 0] : ',/,5X,
& '(Enter -1 to Save Values in File ',A12,'). ',$)
19000 FORMAT (80A1)
20000 FORMAT (/,
& 5X,' Current Value for Cultivar Coefficient ',A6,' ===>',F8.3,/,
& 5X,' Enter New Cultivar Coefficient ---> ',$)
21000 FORMAT(/,5X,
& 'Please enter a value > 0; your current value is ',F8.3)
22000 FORMAT (/,5X,'File ',A12,' can NOT be modified!',
& /,5X,'Do you want to save the data in another file ? ',$)
23000 FORMAT (/,5X,'File ',A12,' exists.',/,5X,
& 'Do you want to overwrite the existing data (Y/N) ? ',$)
23500 FORMAT ('*GENETICS PARAMETER INPUT FILE',//,
&'@VAR# VAR-NAME........ ECO# CSDL PPSEN PH2-5 PHT-7',
&' PHT-8 PHT10 PHT13 LFMAX SLAVR SIZLF XFRT WTPSD SFDUR',
&' SDPDV PODUR THRSH SDPRO SDLIP',/,'!',29X,18(4X,I2))
24000 FORMAT (A6,1X,A16,1X,A6,F6.2,F6.3,3F6.1,2F6.2,F6.3,
& F6.0,F6.1,F6.2,F6.3,F6.1,F6.2,F6.1,
& F6.1,2F6.3)
END SUBROUTINE INVRLE
C=======================================================================
C INVRCE, Subroutine
C
C Interactively edit genetic parameters - Cereal crops
c
C-----------------------------------------------------------------------
C Revision history
C
C 06/12/1992 BB Written
C 05/28/1993 PWW Header revision and minor changes
! 12/14/2005 CHP Added sorghum cultivar coefficients, PBASE and PSAT
! 02/06/2007 CHP Added alternate sugarcane parameters for CASUPRO
! 09/16/2007 JIL Added new inputs for IXIM
! 06/30/2010 FSR Added PLF2 variable for CASUPRO
C
C-----------------------------------------------------------------------
C INPUT : None
C
C LOCAL : IERR,IPARAM,NDEX
C
C OUTPUT : None
C-----------------------------------------------------------------------
C Called : SEVAR
C
C Calls : CLEAR SELPRO GETREAL
C-----------------------------------------------------------------------
C DEFINITIONS
C
C IERR : Error flag
C IPARAM : Menu choice
C NDEX : Error flag for FSELPRO
C CROP : Crop code
C=======================================================================
SUBROUTINE INVRCE (CROP, MODEL)
IMPLICIT NONE
INCLUDE 'COMGEN.BLK'
INTEGER IERR,IPARAM,NDEX
CHARACTER*2 CROP
CHARACTER*8 MODEL
C
C Repeat until user chooses to quit
C
3001 CONTINUE
CALL CLEAR
WRITE (*,5000)
5000 FORMAT (/,20X,'========================================',/,
1 20X,'Current Values of Coefficients to Modify',/,
2 20X,'========================================',///)
SELECT CASE (MODEL(1:5))
!=======================================================================
! Millet
CASE ('MLCER')
WRITE (*,5300) P1,P2O,P2R,P5,G1,G4,PHINT
5300 FORMAT (12X,'0. End of changes ',//,
1 12X,'1. P1 (Cumulative growing degree days from',/,
2 12X,' seedling emergence to end of juvenile)..[',F7.1,/,
3 12X,'2. P2O (Optimal photoperiod for development)....[',F7.1,/,
4 12X,'3. P2R (Cumulative growing degree days delay',/,
5 12X,' for each hour increase above P2O........[',F7.1,/,
6 12X,'4. P5 (Cumulative growing degree days from',/,
7 12X,' begin grain fill to phys. maturity).....[',F7.1,/,
8 12X,'5. G1 (Scalar for relative leaf size)..........[',F7.2,/,
9 12X,'6. G4 (Scalar for partitioning to panicle).....[',F7.2,/,
9 12X,'7. PHINT (Phyllochron interval).................[',F7.1,/)
WRITE (*,5100)
5100 FORMAT (/,' Parameter choice [Default = 0] ===> ',$)
C Get menu choice
READ (5,'(I2)',IOSTAT=IERR) IPARAM
CALL SELPRO (0,7,IPARAM,NDEX,IERR)
IF (NDEX .EQ. 2) GOTO 3001
C
C Branch to menu choice
SELECT CASE (IPARAM)
CASE (0); RETURN
CASE (1); CALL GETREAL (P1, 'P1 ', 1.0, 800.0)
CASE (2); CALL GETREAL (P2O, 'P2O ', 5.0, 19.0)
CASE (3); CALL GETREAL (P2R, 'P2R ', 5.0, 9000.0)
CASE (4); CALL GETREAL (P5, 'P5 ', 100.0, 900.0)
CASE (5); CALL GETREAL (G1, 'G1 ', 0.0, 50.0)
CASE (6); CALL GETREAL (G4, 'G4 ', 0.0, 1.0)
CASE (7); CALL GETREAL (PHINT,'PHINT', 1.0, 200.0)
END SELECT
!=======================================================================
! Maize, sweet corn
CASE ('MZCER', 'SWCER')
WRITE (*,5400) P1,P2,P5,G2,G3,PHINT
5400 FORMAT (12X,'0. End of changes',//,
1 12X,'1. P1 (Growing degree days from emergence to',/,
2 12X,' end of juvenile phase)...................[',F7.1,/,
3 12X,'2. P2 (Photoperiod sensitivity).................[',F7.1,/,
4 12X,'3. P5 (Cumulative growing degree days from',/,
5 12X,' silking to maturity).....................[',F7.1,/,
6 12X,'4. G2 (Potential kernel number).................[',F7.1,/,
7 12X,'5. G3 (Potential kernel growth rate)............[',F7.1,/,
8 12X,'6. PHINT (Phyllochron interval).................[',F7.1,/)
WRITE (*,5100)
C
C Get menu choice
READ (5,'(I2)',IOSTAT=IERR) IPARAM
CALL SELPRO (0,6,IPARAM,NDEX,IERR)
IF (NDEX .EQ. 2) GOTO 3001
C
C Branch to menu choice
SELECT CASE (IPARAM)
CASE (0); RETURN
CASE (1); CALL GETREAL (P1,'P1 ', 80.0, 500.0)
CASE (2); CALL GETREAL (P2,'P2 ', 0.0, 10.0)
CASE (3); CALL GETREAL (P5,'P5 ',100.0,2000.0)
CASE (4); CALL GETREAL (G2,'G2 ',100.0,2000.0)
CASE (5); CALL GETREAL (G3,'G3 ', 1.0, 15.0)
CASE (6); CALL GETREAL (PHINT,'PHINT',1.0,200.0)
END SELECT
!=======================================================================
! Maize - IXIM
CASE ('MZIXM')
WRITE (*,5450) P1,P2,P5,G2,G3,PHINT,AX,LX
5450 FORMAT (12X,'0. End of changes',//,
1 12X,'1. P1 (Growing degree days from emergence to',/,
2 12X,' end of juvenile phase)...................[',F7.1,/,
3 12X,'2. P2 (Photoperiod sensitivity).................[',F7.1,/,
4 12X,'3. P5 (Cumulative growing degree days from',/,
5 12X,' silking to maturity).....................[',F7.1,/,
6 12X,'4. G2 (Potential kernel number).................[',F7.1,/,
7 12X,'5. G3 (Potential kernel growth rate)............[',F7.1,/,
8 12X,'6. PHINT (Phyllochron interval).................[',F7.1,/,
9 12X,'7. AX (Surface area of largest leaf, cm2).......[',F7.1,/,
9 12X,'8. LX (Longevity of most long-lived leaf, GDD)..[',F7.1,/)
WRITE (*,5100)
C
C Get menu choice
READ (5,'(I2)',IOSTAT=IERR) IPARAM
CALL SELPRO (0,8,IPARAM,NDEX,IERR)
IF (NDEX .EQ. 2) GOTO 3001
C
C Branch to menu choice
SELECT CASE (IPARAM)
CASE (0); RETURN
CASE (1); CALL GETREAL (P1,'P1 ', 80.0, 500.0)
CASE (2); CALL GETREAL (P2,'P2 ', 0.0, 10.0)
CASE (3); CALL GETREAL (P5,'P5 ',100.0,2000.0)
CASE (4); CALL GETREAL (G2,'G2 ',100.0,2000.0)
CASE (5); CALL GETREAL (G3,'G3 ', 1.0, 15.0)
CASE (6); CALL GETREAL (PHINT,'PHINT',1.0,200.0)
CASE (7); CALL GETREAL (AX,'AX ',400.0,1500.0)
CASE (8); CALL GETREAL (LX,'LX ',500.0,2000.0)
END SELECT
!=======================================================================
! Sorghum
CASE ('SGCER')
WRITE (*,5500) P1,P2O,P2R,P5,G1,G2,PHINT,P3,P4,P2,PBASE,PSAT
5500 FORMAT
& (12X,'0. End of changes',//,
1 12X,'1. P1 (Cumulative growing degree days from',/,
2 12X,' seedling emergence to end of juvenile)[',F7.1,/,
3 12X,'2. P2O (Optimal photoperiod for development)..[',F7.1,/,
4 12X,'3. P2R (Cumulative growing degree days delay',/,
5 12X,' for each hour increase above P2O......[',F7.1,/,
6 12X,'4. P5 (Cumulative growing degree days from',/,
7 12X,' begin grain fill to phys. maturity)...[',F7.1,/,
8 12X,'5. G1 (Scalar for relative leaf size)........[',F7.1,/,
9 12X,'6. G2 (Scalar for partitioning to panicle)...[',F7.1,/,
9 12X,'7. PHINT (Phyllochron interval).................[',F7.1,/,
& 12X,'8. P3 (Cumulative growing degree days from',/,
& 12X,' panicle init to end of leaf growth....[',F7.1,/,
& 12X,'9. P4 (Cum growing degree days from end of',/,
& 12X,' leaf growth to end of pannicle growth)[',F7.1,/,
& 12X,'10.P2 (Thermal time from end of juvenile to ',/,
& 12X,' tassel initiation under short days [',F7.1,/,
& 12X,'11.PANTH (Thermal time, end tassel init to anth)[',F7.1,/,
& 12X,'12.PBASE (Ceiling ppd. to delay devel. indef.)..[',F7.2,/,
& 12X,'13.PSAT (Photoperiod below which no dev. delay)[',F7.2,/)
WRITE (*,5100)
C
C Get menu choice
READ (5,'(I2)',IOSTAT=IERR) IPARAM
CALL SELPRO (0,13,IPARAM,NDEX,IERR)
IF(NDEX .EQ. 2) GOTO 3001
C
C Branch to menu choice
SELECT CASE(IPARAM)
CASE(0); RETURN
CASE(1); CALL GETREAL (P1, 'P1 ',150.0, 500.0)
CASE(2); CALL GETREAL (P2O, 'P2O ', 5.0, 30.0)
CASE(3); CALL GETREAL (P2R, 'P2R ', 10.0,9000.0)
CASE(4); CALL GETREAL (P5, 'P5 ',100.0, 900.0)
CASE(5); CALL GETREAL (G1, 'G1 ', 1.0, 20.0)
CASE(6); CALL GETREAL (G2, 'G2 ', 1.0, 8.0)
CASE(7); CALL GETREAL (PHINT,'PHINT', 1.0, 200.0)
CASE(8); CALL GETREAL (P3, 'P3 ',100.0, 900.0)
CASE(9); CALL GETREAL (P4, 'P4 ',100.0, 900.0)
CASE(10); CALL GETREAL (P2, 'P2 ',100.0, 900.0)
CASE(11); CALL GETREAL (PANTH,'PANTH', 0.0,9000.0)
CASE(12); CALL GETREAL (PBASE,'PBASE', 5.0, 24.0)
CASE(13); CALL GETREAL (PSAT, 'PSAT ', 5.0, 24.0)
END SELECT
!=======================================================================
! Potato
CASE ('PTSUB')
WRITE (*,5700) G2,G3,PD,P2,TC
5700 FORMAT (12X,'0. End of changes ',//,
2 12X,'1. G2 (Leaf expansion rate (cmý/mý/d))..........[',F7.1,/,
3 12X,'2. G3 (Tuber growth rate (g/mý/d))..............[',F7.1,/,
4 12X,'3. PD (Determinancy)............................[',F7.1,/,
5 12X,'4. P2 (Photoperiod sensitivity (dimensionless)).[',F7.2,/,
6 12X,'5. TC (Critical temperature (øC)................[',F7.1,/)
WRITE (*,5100)
C
C Get menu choice
READ (5,'(I2)',IOSTAT=IERR) IPARAM
CALL SELPRO (0,5,IPARAM,NDEX,IERR)
IF (NDEX .EQ. 2) GOTO 3001
C
C Branch to menu choice
SELECT CASE(IPARAM)
CASE(0); RETURN
CASE(1); CALL GETREAL (G2,'G2 ',0.0,3000.0)
CASE(2); CALL GETREAL (G3,'G3 ',0.0,3000.0)
CASE(3); CALL GETREAL (PD,'PD ',0.0,3000.0)
CASE(4); CALL GETREAL (P2,'P2 ',0.0,3000.0)
CASE(5); CALL GETREAL (TC,'TC ',0.0,3000.0)
END SELECT
!=======================================================================
! Rice
CASE ('RICER')
WRITE (*,5800) P1,P2R,P5,P2O,G1,G2,G3,G4
5800 FORMAT (12X,'0. End of changes ',//,
1 12X,'1. P1..(10.00 - 800.0)..........................[',F7.1,/,
2 12X,'2. P2R.( 5.00 - 500.0)..........................[',F7.2,/,
3 12X,'3. P5..(50.00 - 1500.0)..........................[',F7.2,/,
4 12X,'4. P2O.( 5.00 - 19.0)..........................[',F7.2,/,
5 12X,'5. G1..(10.00 - 500.0)..........................[',F7.2,/,
6 12X,'6. G2..( 0.00 - 0.5)..........................[',F7.2,/,
7 12X,'7. G3..( 0.01 - 2.0)..........................[',F7.2,/,
8 12X,'8. G4..( 0.01 - 2.0)..........................[',F7.2,/)
WRITE (*,5100)
C
C Get menu choice
READ (5,'(I2)',IOSTAT=IERR) IPARAM
CALL SELPRO (0,8,IPARAM,NDEX,IERR)
IF (NDEX .EQ. 2) GOTO 3001
C
C Branch to menu choice
SELECT CASE(IPARAM)
CASE(0); RETURN
CASE(1); CALL GETREAL (P1, 'P1 ',0.0,5000.0)
CASE(2); CALL GETREAL (P2R, 'P2R ',0.0,5000.0)
CASE(3); CALL GETREAL (P5, 'P5 ',0.0,5000.0)
CASE(4); CALL GETREAL (P2O, 'P2O ',0.0,5000.0)
CASE(5); CALL GETREAL (G1, 'G1 ',0.0,5000.0)
CASE(6); CALL GETREAL (G2, 'G2 ',0.0,5000.0)
CASE(7); CALL GETREAL (G3, 'G3 ',0.0,5000.0)
CASE(8); CALL GETREAL (G4, 'G4 ',0.0,5000.0)
END SELECT
!=======================================================================
! CSCER - Wheat, barley
CASE ('CSCER')
WRITE (*,5600) P1V,P1D,P5,G1,G2,G3,PHINT
5600 FORMAT (12X,'0. End of changes',//,
1 12X,'1. P1V (Vernalization, days)....................[',F7.2,/,
3 12X,'2. P1D (Photoperiod effect).....................[',F7.2,/,
3 12X,'3. P5 (Grain filling duration, oC.d)...........[',F7.2,/,
5 12X,'4. G1 (Kernel number per unit weight at anth.).[',F7.2,/,
6 12X,'5. G2 (Kernel weight under optimum conditions).[',F7.2,/,
7 12X,'6. G3 (Standard stem+spike dry weight at mat.).[',F7.2,/,
9 12X,'7. PHINT (Phyllochron interval).................[',F7.2)
WRITE (*,5100)
C
C Get menu choice
READ (5,'(I2)',IOSTAT=IERR) IPARAM
CALL SELPRO (0,10,IPARAM,NDEX,IERR)
IF (NDEX .EQ. 2) GOTO 3001
C
C Branch to menu choice
SELECT CASE(IPARAM)
CASE(0); RETURN
CASE(1); CALL GETREAL (P1V, 'P1V ', 0.0, 60.0)
CASE(2); CALL GETREAL (P1D, 'P1D ', 0.0, 200.)
CASE(3); CALL GETREAL (P5, 'P5 ', 100., 999.)
CASE(4); CALL GETREAL (G1, 'G1 ', 10.0, 50.0)
CASE(5); CALL GETREAL (G2, 'G2 ', 10.0, 80.0)
CASE(6); CALL GETREAL (G3, 'G3 ', 0.5, 8.0)
CASE(7)
SELECT CASE (CROP)
CASE('WH'); CALL GETREAL (PHINT,'PHINT', 30.0, 150.)
CASE('BA'); CALL GETREAL (PHINT,'PHINT', 30.0, 100.)
END SELECT
END SELECT
!=======================================================================
! CSCRP - CropSim wheat, barley, cassava
CASE ('CSCRP')
SELECT CASE (CROP)
! --------------------------------------------------------------
! CSCRP wheat
CASE ('WH')
WRITE (*,5920)
& VREQ, PPS1, P8, GNOWT, GWTS, SHWTS, PHINT,
& P1, P2, P3, P4, P5, P6, P7,
& LA1S, LAFV, LAFR, VBASE, VEFF, PPS2
5920 FORMAT (12X,'0. End of changes ',//,
1 12X,' 1. VREQ ( 0.00 - 60.0)............[',F7.1,/,
4 12X,' 2. PPS1 ( 0.00 - 300.0)............[',F7.2,/,
6 12X,' 3. P8.. (100.0 - 800.0)............[',F7.2,/,
7 12X,' 4. GNOWT( 10.0 - 50.0)............[',F7.2,/,
7 12X,' 5. GWTS ( 10.0 - 75.0)............[',F7.2,/,
7 12X,' 6. SHWTS( 0.50 - 5.00)............[',F7.2,/,
7 12X,' 7. PHINT( 40.0 - 120.0)............[',F7.2,/,
5 12X,' 8. P1.. (100.0 - 800.0)............[',F7.2,/,
6 12X,' 9. P2.. ( 60.0 - 100.0)............[',F7.2,/,
6 12X,'10. P3.. (100.0 - 300.0)............[',F7.2,/,
6 12X,'11. P4.. ( 50.0 - 500.0)............[',F7.2,/,
6 12X,'12. P5.. ( 50.0 - 400.0)............[',F7.2,/,
6 12X,'13. P6.. ( 10.0 - 100.0)............[',F7.2,/,
6 12X,'14. P7.. ( 50.0 - 300.0)............[',F7.2,/,
7 12X,'15. LA1S ( 0.10 - 10.0)............[',F7.2,/,
7 12X,'16. LAFV (0.010 - 5.00)............[',F7.3,/,
7 12X,'17. LAFR ( 0.10 - 5.00)............[',F7.2,/,
2 12X,'18. VBASE( 0.00 - 30.0)............[',F7.2,/,
3 12X,'19. VEFF ( 0.00 - 1.00)............[',F7.2,/,
4 12X,'20. PPS2 ( 0.00 - 200.0)............[',F7.2,/)
WRITE (*,5100)
C
C Get menu choice
READ (5,'(I2)',IOSTAT=IERR) IPARAM
CALL SELPRO (0,20,IPARAM,NDEX,IERR)
IF (NDEX .EQ. 2) GOTO 3001
C
C Branch to menu choice
SELECT CASE(IPARAM)
CASE(0); RETURN
CASE( 1); CALL GETREAL (VREQ ,'VREQ ', 0.00, 60.0)
CASE( 2); CALL GETREAL (PPS1 ,'PPS1 ', 0.00, 300.0)
CASE( 3); CALL GETREAL (P8 ,'P8.. ',100.0, 800.0)
CASE( 4); CALL GETREAL (GNOWT,'GNOWT', 10.0, 50.0)
CASE( 5); CALL GETREAL (GWTS ,'GWTS ', 10.0, 75.0)
CASE( 6); CALL GETREAL (SHWTS,'SHWTS', 0.50, 5.00)
CASE( 7); CALL GETREAL (PHINT,'PHINT', 40.0, 120.0)
CASE( 8); CALL GETREAL (P1 ,'P1.. ',100.0, 800.0)
CASE( 9); CALL GETREAL (P2 ,'P2.. ', 60.0, 100.0)
CASE(10); CALL GETREAL (P3 ,'P3.. ',100.0, 300.0)
CASE(11); CALL GETREAL (P4 ,'P4.. ', 50.0, 500.0)
CASE(12); CALL GETREAL (P5 ,'P5.. ', 50.0, 400.0)
CASE(13); CALL GETREAL (P6 ,'P6.. ', 10.0, 100.0)
CASE(14); CALL GETREAL (P7 ,'P7.. ', 50.0, 300.0)
CASE(15); CALL GETREAL (LA1S ,'LA1S ', 0.10, 10.0)
CASE(16); CALL GETREAL (LAFV ,'LAFV ',0.010, 5.00)
CASE(17); CALL GETREAL (LAFR ,'LAFR ', 0.10, 5.00)
CASE(18); CALL GETREAL (VBASE,'VBASE', 0.00, 30.0)
CASE(19); CALL GETREAL (VEFF ,'VEFF ', 0.00, 1.00)
CASE(20); CALL GETREAL (PPS2 ,'PPS2 ', 0.00, 200.0)
END SELECT
! --------------------------------------------------------------
! CSCRP barley
CASE ('BA')
WRITE (*,5930)
& VREQ, PPS1, P8, GNOWT, GWTS, SHWTS, PHINT,
& P1, P2, P3, P4, P5, P6, P7,
& LA1S, LAFV, LAFR, VBASE, VEFF, PPS2
5930 FORMAT (12X,'0. End of changes ',//,
1 12X,' 1. VREQ ( 0.00 - 60.0)............[',F7.1,/,
4 12X,' 2. PPS1 ( 0.00 - 300.0)............[',F7.2,/,
6 12X,' 3. P8.. (100.0 - 800.0)............[',F7.2,/,
7 12X,' 4. GNOWT( 10.0 - 50.0)............[',F7.2,/,
7 12X,' 5. GWTS ( 10.0 - 75.0)............[',F7.2,/,
7 12X,' 6. SHWTS( 0.50 - 5.00)............[',F7.2,/,
7 12X,' 7. PHINT( 40.0 - 120.0)............[',F7.2,/,
5 12X,' 8. P1.. (100.0 - 800.0)............[',F7.2,/,
6 12X,' 9. P2.. ( 60.0 - 100.0)............[',F7.2,/,
6 12X,'10. P3.. (100.0 - 300.0)............[',F7.2,/,
6 12X,'11. P4.. ( 50.0 - 500.0)............[',F7.2,/,
6 12X,'12. P5.. ( 50.0 - 400.0)............[',F7.2,/,
6 12X,'13. P6.. ( 10.0 - 100.0)............[',F7.2,/,
6 12X,'14. P7.. ( 50.0 - 300.0)............[',F7.2,/,
7 12X,'15. LA1S ( 0.10 - 10.0)............[',F7.2,/,
7 12X,'16. LAFV (0.010 - 5.00)............[',F7.3,/,
7 12X,'17. LAFR ( 0.10 - 5.00)............[',F7.2,/,
2 12X,'18. VBASE( 0.00 - 30.0)............[',F7.2,/,
3 12X,'19. VEFF ( 0.00 - 1.00)............[',F7.2,/,
4 12X,'20. PPS2 ( 0.00 - 200.0)............[',F7.2,/)
WRITE (*,5100)
C
C Get menu choice
READ (5,'(I2)',IOSTAT=IERR) IPARAM
CALL SELPRO (0,20,IPARAM,NDEX,IERR)
IF (NDEX .EQ. 2) GOTO 3001
C
C Branch to menu choice
SELECT CASE(IPARAM)
CASE(0); RETURN
CASE( 1); CALL GETREAL (VREQ ,'VREQ ', 0.00, 60.0)
CASE( 2); CALL GETREAL (PPS1 ,'PPS1 ', 0.00, 300.0)
CASE( 3); CALL GETREAL (P8 ,'P8.. ',100.0, 800.0)
CASE( 4); CALL GETREAL (GNOWT,'GNOWT', 10.0, 50.0)
CASE( 5); CALL GETREAL (GWTS ,'GWTS ', 10.0, 75.0)
CASE( 6); CALL GETREAL (SHWTS,'SHWTS', 0.50, 5.00)
CASE( 7); CALL GETREAL (PHINT,'PHINT', 40.0, 120.0)
CASE( 8); CALL GETREAL (P1 ,'P1.. ',100.0, 800.0)
CASE( 9); CALL GETREAL (P2 ,'P2.. ', 60.0, 100.0)
CASE(10); CALL GETREAL (P3 ,'P3.. ',100.0, 300.0)
CASE(11); CALL GETREAL (P4 ,'P4.. ', 50.0, 500.0)
CASE(12); CALL GETREAL (P5 ,'P5.. ', 50.0, 400.0)
CASE(13); CALL GETREAL (P6 ,'P6.. ', 10.0, 100.0)
CASE(14); CALL GETREAL (P7 ,'P7.. ', 50.0, 300.0)
CASE(15); CALL GETREAL (LA1S ,'LA1S ', 0.10, 10.0)
CASE(16); CALL GETREAL (LAFV ,'LAFV ',0.010, 5.00)
CASE(17); CALL GETREAL (LAFR ,'LAFR ', 0.10, 5.00)
CASE(18); CALL GETREAL (VBASE,'VBASE', 0.00, 30.0)
CASE(19); CALL GETREAL (VEFF ,'VEFF ', 0.00, 1.00)
CASE(20); CALL GETREAL (PPS2 ,'PPS2 ', 0.00, 200.0)
END SELECT
! --------------------------------------------------------------
! CSCRP cassava
CASE ('CS')
WRITE(*,5940) P1L, P2L, P4L, P5L, SRNOW, SRFR, LA1S,
& LAXS, LAXNO, LAFS, LAFNO, LAWS, PHINT, LLIFA, STFR
5940 FORMAT (12X,'0. End of changes ',//,
! 1 12X,' 1. PPS1 ( 0.00 - 0.00)........................[',F7.1,/,
2 12X,' 2. P1L. ( 10.0 - 100.0)........................[',F7.2,/,
3 12X,' 3. P2L. ( 10.0 - 100.0)........................[',F7.2,/,
4 12X,' 4. P4L. ( 10.0 - 100.0)........................[',F7.2,/,
4 12X,' 5. P5L. ( 10.0 - 200.0)........................[',F7.2,/,
5 12X,' 6. SRNOW(0.200 - 0.350)........................[',F7.3,/,
6 12X,' 7. SRFR (0.250 - 0.350)........................[',F7.3,/,
6 12X,' 8. LA1S (200.0 - 400.0)........................[',F7.2,/,
6 12X,' 9. LAXS (1000. - 2000.)........................[',F7.1,/,
6 12X,'10. LAXNO( 80.0 - 200.0)........................[',F7.2,/,
6 12X,'11. LAFS ( 20.0 - 50.0)........................[',F7.2,/,
6 12X,'12. LAFNO(100.0 - 350.0)........................[',F7.2,/,
6 12X,'13. LAWS (100.0 - 400.0)........................[',F7.2,/,
7 12X,'14. PHINT( 15.0 - 30.0)........................[',F7.2,/,
7 12X,'15. LLIFA( 8.0 - 15.0)........................[',F7.2,/,
7 12X,'16. STFR (0.250 - 0.450)........................[',F7.3,/)
WRITE (*,5100)
C
C Get menu choice
READ (5,'(I2)',IOSTAT=IERR) IPARAM
CALL SELPRO (0,16,IPARAM,NDEX,IERR)
IF (NDEX .EQ. 2) GOTO 3001
C
C Branch to menu choice
SELECT CASE(IPARAM)
CASE(0); RETURN
! CASE( 1); CALL GETREAL (PPS1 ,'PPS1 ', 0.00, 0.00)
CASE( 2); CALL GETREAL (P1L ,'P1L ', 0.00, 100.0)
CASE( 3); CALL GETREAL (P2L ,'P2L ', 0.00, 100.0)
CASE( 4); CALL GETREAL (P4L ,'P4L ', 0.00, 100.0)
CASE( 5); CALL GETREAL (P5L ,'P5L ', 0.00, 200.0)
CASE( 6); CALL GETREAL (SRNOW,'SRNOW',0.200, 0.350)
CASE( 7); CALL GETREAL (SRFR ,'SRFR ',0.250, 0.350)
CASE( 8); CALL GETREAL (LA1S ,'LA1S ',200.0, 400.0)
CASE( 9); CALL GETREAL (LAXS ,'LAXS ',1000., 2000.)
CASE(10); CALL GETREAL (LAXNO,'LAXNO', 80.0, 200.0)
CASE(11); CALL GETREAL (LAFS ,'LAFS ', 20.0, 50.0)
CASE(12); CALL GETREAL (LAFNO,'LAFNO',100.0, 350.0)
CASE(13); CALL GETREAL (LAWS ,'LAWS ',100.0, 400.0)
CASE(14); CALL GETREAL (PHINT,'PHINT', 15.0, 30.0)
CASE(15); CALL GETREAL (LLIFA,'LLIFA', 8.0, 15.0)
CASE(16); CALL GETREAL (STFR ,'STFR ',0.250, 0.450)
END SELECT
END SELECT
!=======================================================================
! CANEGRO sugarcane model
! CANEGRO currently reads from the cultivar file directly. It
! reads the header line and the cultivar info as text, then
! parses the data into the variables. Can't run sensitivity
! for canegro at this time.
CASE ('SCCAN')
WRITE (*,5900)
& MaxPARCE, APFMX, STKPFMAX, SUCA, TBFT, Tthalfo, TBase,
& LFMAX, MXLFAREA, MXLFARNO, PI1, PI2, PSWITCH, TTPLNTEM,
& TTRATNEM, CHUPIBASE, TT_POPGROWTH, MAX_POP, POPTT16,
& LG_AMBASE
5900 FORMAT (12X,'0. End of changes',//,
& 12X,' 1. MaxPARCE (Max radiation conversion eff).....[',F7.2,/,
& 12X,' 2. APFMX (Max fraction to aerial DM)...........[',F7.1,/,
& 12X,' 3. STKPFMAX (Frac aerial DM to stalk)..........[',F7.1,/,
& 12X,' 4. SUCA (Max sucrose in stalk base)............[',F7.1,/,
& 12X,' 5. TBFT (Temp for 50% partitioning to sucrose).[',F7.1,/,
& 12X,' 6. Tthalfo (Thermal time to half canopy).......[',F7.1,/,
& 12X,' 7. TBase (Base temperature for canopy dev).....[',F7.1,/,
& 12X,' 8. LFMAX (Max number leaves)...................[',F7.1,/,
& 12X,' 9. MXLFAREA (Max leaf area above MXLFARNO).....[',F7.1,/,
& 12X,'10. MXLFARNO (Leaf # for MXLFAREA)..............[',F7.1,/,
& 12X,'11. PI1 (Phyllocron interal 1)..................[',F7.1,/,
& 12X,'12. PI2 (Phyllocron interal 2)..................[',F7.1,/,
& 12X,'13. PSWITCH (Leaf #, switch between PI1 & PI2)..[',F7.1,/,
& 12X,'14. TTPLNTEM (Thermal time to emergence, plant).[',F7.1,/,
& 12X,'15. TTRATNEM (Thermal time to emergence, ratoon)[',F7.1,/,
& 12X,'16. CHUPIBASE (Thermal time emerg to stalk gr)..[',F7.1,/,
& 12X,'17. TT_POPGROWTH (Thermal time to peak tiller)..[',F7.1,/,
& 12X,'18. MAX_POP (Maximum tiller population).........[',F7.1,/,
& 12X,'19. POPTT16 (Stalk population, 1600 dd).........[',F7.1,/,
& 12X,'20. LG_AMBASE (Aerial mass for lodging).........[',F7.1,/)
WRITE (*,5100)
C
C Get menu choice
READ (5,'(I2)',IOSTAT=IERR) IPARAM
CALL SELPRO (0,20,IPARAM,NDEX,IERR)
IF (NDEX .EQ. 2) GOTO 3001
C
C Branch to menu choice
SELECT CASE (IPARAM)
CASE (0)
RETURN
CASE (1); CALL GETREAL (MaxPARCE,'MaxPARCE', 0.0, 100.)
CASE (2); CALL GETREAL (APFMX, 'APFMX', 0.0, 1.)
CASE (3); CALL GETREAL (STKPFMAX,'STKPFMAX', 0.0, 1.)
CASE (4); CALL GETREAL (SUCA, 'SUCA', 0.0, 1.)
CASE (5); CALL GETREAL (TBFT, 'TBFT', 0.0, 45.)
CASE (6); CALL GETREAL (Tthalfo, 'Tthalfo', 0.0, 10000.)
CASE (7); CALL GETREAL (TBase, 'TBase', 0.0, 10000.)
CASE (8); CALL GETREAL (LFMAX, 'LFMAX', 0.0, 10000.)
CASE (9); CALL GETREAL (MXLFAREA,'MXLFAREA', 0.0, 10000.)
CASE(10); CALL GETREAL (MXLFARNO,'MXLFARNO', 0.0, 10000.)
CASE(11); CALL GETREAL (PI1, 'PI1', 0.0, 10000.)
CASE(12); CALL GETREAL (PI2, 'PI2', 0.0, 10000.)
CASE(13); CALL GETREAL (PSWITCH, 'PSWITCH', 0.0, 10000.)
CASE(14); CALL GETREAL (TTPLNTEM,'TTPLNTEM', 0.0, 10000.)
CASE(15); CALL GETREAL (TTRATNEM,'TTRATNEM', 0.0, 10000.)
CASE(16); CALL GETREAL (CHUPIBASE,'CHUPIBASE',0.0, 10000.)
CASE(17); CALL GETREAL (TT_POPGROWTH,'TT_POPGROWTH',0.0,
& 10000.)
CASE(18); CALL GETREAL (MAX_POP, 'MAX_POP', 0.0, 10000.)
CASE(19); CALL GETREAL (POPTT16, 'POPTT16', 0.0, 10000.)
CASE(20); CALL GETREAL (LG_AMBASE,'LG_AMBASE',0.0,10000.)
END SELECT
!=======================================================================
! CASUPRO sugarcane model
CASE ('SCCSP')
WRITE (*,5950)
& LFMAX,PHTMAX,StkH2OFac,SuH2OFac,PLF1,
& PLF2,Gamma,StkB,StkM,
& SIZLF,LIsun,LIshd,TB(1),TO1(1),TO2(1),TM(1),
& PI1,PI2,DTPI,LSFAC,LI1,TELOM,TB(2),TO1(2),
& TO2(2),TM(2),Ph1P,Ph1R,Ph2,Ph3,Ph4,StkHrNO,RTNFAC,
& MinGr,RES30C,RLF30C,R30C2
5950 FORMAT (12X,'0. End of changes',//,
& 12X,'1. LFMAX (Max leaf photosynthesis rate)..........[',F7.1,/,
& 12X,'2. PHTMAX(Max CH20 which can be produced)........[',F7.1,/,
& 12X,'3. StkH2OFac(Stalk fresh weight factor for DM)...[',F7.1,/,
& 12X,'4. SuH2OFac (Stalk fresh wt factor for sucrose)..[',F7.1,/,
& 12X,'5. PLF1 (Max young stk portion CH2O to leaves)..[',F7.1,/,
& 12X,'6. PLF2 (Max old stalk portion CH2O to leaves)..[',F7.1,/,
& 12X,'7. Gamma (fraction excess CH2O to stalk)...... .[',F7.1,/,
& 12X,'8. StkB (Intercept for rate stalk wt increase)..[',F7.1,/,
& 12X,'9. StkM (Slope for rate of stalk wt increase)...[',F7.1,/,
& 12X,'10.SIZLF (Maximum size of largest leaf)..........[',F7.1,/,
& 12X,'11.LIsun (PAR intercepted by uppermost canopy)...[',F7.1,/,
& 12X,'12.LIshd (PAR intercepted by top & mid canopy)...[',F7.1,/,
& 12X,'13.TB(1) (Base temp for leaf primary stalk emerg)[',F7.1,/,
& 12X,'14.TO1(1)(Lower optimum temp, leaf development)..[',F7.1,/,
& 12X,'15.TO2(1)(Upper optimum temp, leaf development)..[',F7.1,/,
& 12X,'16.TM(1) (Maximum temperature, leaf development).[',F7.1,/,
& 12X,'17.PI1 (Phyllocron interval 1).................[',F7.1,/,
& 12X,'18.PI2 (Phyllocron interval 2).................[',F7.1,/,
& 12X,'19.DTPI (Therm time for change from PT1 to PT2).[',F7.1,/,
& 12X,'20.LSFAC (Ratio leaf sheath DM to leaf blade DM).[',F7.1,/,
& 12X,'21.LI1 (Light intercep for no tiller comp).....[',F7.1,/,
& 12X,'22.TELOM (Threshold to tiller emergence).........[',F7.1,/,
& 12X,'23.TB(2) (Base temperature for tiller appearance)[',F7.1,/,
& 12X,'24.TO1(2)(Lower optimum temp, tiller development)[',F7.1,/,
& 12X,'25.TO2(2)(Upper optimum temp, tiller development)[',F7.1,/,
& 12X,'26.TM(2) (Max temperature, tiller development)...[',F7.1,/,
& 12X,'27.Ph1P (Threshold to sprouting, plant cane)....[',F7.1,/,
& 12X,'28.Ph1R (Threshold to sprouting, ratoon cane)...[',F7.1,/,
& 12X,'29.Ph2 (Growth rate of primary stalk)..........[',F7.1,/,
& 12X,'30.Ph3 (Threshold for growth of primary stalk).[',F7.1,/,
& 12X,'31.Ph4 (Threshold for tillering)..............[',F7.1,/,
& 12X,'32.StkHrNO(# mature stalks/stool, recent harvest)[',F7.1,/,
& 12X,'33.RTNFAC(# primary shoots/mature stalk )........[',F7.1,/,
& 12X,'34.MinGr (Threshold wt for tiller senesce).......[',F7.1,/,
& 12X,'35.RES30C(Respiration coef for stalk & root).....[',F7.1,/,
& 12X,'36.RLF30C(Respiration coef for leaf).............[',F7.1,/,
& 12X,'37.R30C2 (Respiration coef for photosynthesis)...[',F7.1,/)
WRITE (*,5100)
C Get menu choice
READ (5,'(I2)',IOSTAT=IERR) IPARAM
CALL SELPRO (0,36,IPARAM,NDEX,IERR)
IF (NDEX .EQ. 2) GOTO 3001
C
C Branch to menu choice
SELECT CASE (IPARAM)
CASE (0); RETURN
CASE (1); CALL GETREAL (LFMAX ,'LFMAX ', 0.5, 1.5)
CASE (2); CALL GETREAL (PHTMAX ,'PHTMAX ', 100.,400.)
CASE (3); CALL GETREAL (StkH2OFac,'StkH2OFac', 2.0, 7.0)
CASE (4); CALL GETREAL (SuH2OFac ,'SuH2OFac ', 1.0, 4.0)
CASE (5); CALL GETREAL (PLF1 ,'PLF1 ', 0.1, 0.5)
CASE (6); CALL GETREAL (PLF2 ,'PLF2 ', 0.1, 0.4)
CASE (7); CALL GETREAL (Gamma ,'Gamma ', 0.0, 1.0)
CASE (8); CALL GETREAL (StkB ,'StkB ', 0.3, 1.3)
CASE (9); CALL GETREAL (StkM ,'StkM ', 0.0, 2.0)
CASE(10); CALL GETREAL (SIZLF ,'SIZLF ', 300., 400.)
CASE(11); CALL GETREAL (LIsun ,'LIsun ', 0.0, 1.0)
CASE(12); CALL GETREAL (LIshd ,'LIshd ', 0.0, 1.0)
CASE(13); CALL GETREAL (TB(1) ,'TB(1) ',5.0, 20.)
CASE(14); CALL GETREAL (TO1(1) ,'TO1(1) ', 15.0, 40.)
CASE(15); CALL GETREAL (TO2(1) ,'TO2(1) ', 20., 40.)
CASE(16); CALL GETREAL (TM(1) ,'TM(1) ', 20., 50.)
CASE(17); CALL GETREAL (PI1 ,'PI1 ', 60.0, 120.)
CASE(18); CALL GETREAL (PI2 ,'PI2 ', 60.0, 140.)
CASE(19); CALL GETREAL (DTPI ,'DTPI ', 800., 1600.)
CASE(20); CALL GETREAL (LSFAC ,'LSFAC ', 0.25, 0.75)
CASE(21); CALL GETREAL (LI1 ,'LI1 ', 0.0, 1.0)
CASE(22); CALL GETREAL (TELOM ,'TELOM ', 100., 300.)
CASE(23); CALL GETREAL (TB(2) ,'TB(2) ', 5.0, 24.)
CASE(24); CALL GETREAL (TO1(2) ,'TO1(2) ', 15.0, 40.)
CASE(25); CALL GETREAL (TO2(2) ,'TO2(2) ', 20.0, 40.)
CASE(26); CALL GETREAL (TM(2) ,'TM(2) ', 20.0, 50.)
CASE(27); CALL GETREAL (Ph1P ,'Ph1P ', 50., 500.)
CASE(28); CALL GETREAL (Ph1R ,'Ph1R ', 50., 500.)
CASE(29); CALL GETREAL (Ph2 ,'Ph2 ', 0.5, 3.0)
CASE(30); CALL GETREAL (Ph3 ,'Ph3 ', 1000.,2000.)
CASE(31); CALL GETREAL (Ph4 ,'Ph4 ', 5000.,8000.)
CASE(32); CALL GETREAL (StkHrNO ,'StkHrNO ', 1.0, 20.0)
CASE(33); CALL GETREAL (RTNFAC ,'RTNFAC ', 0.5, 4.0)
CASE(34); CALL GETREAL (MinGr ,'MinGr ', 40.,100.)
CASE(35); CALL GETREAL (RES30C ,'RES30C ', 0.1, 0.6)
CASE(36); CALL GETREAL (RLF30C ,'RLF30C ', 0.5, 3.0)
CASE(37); CALL GETREAL (R30C2 ,'R30C2 ', 3.0, 5.0)
END SELECT
!=======================================================================
CASE ('TRARO', 'TNARO')
WRITE (*,6200) P1,P3,P4,P5,G2,G3,G4,PHINT,PCINT,PCGRD
6200 FORMAT (12X,'0. End of changes',//,
1 12X,'1. P1 ..........................................[',F7.1,/,
3 12X,'2. P3 ..........................................[',F7.2,/,
4 12X,'3. P4 ..........................................[',F7.1,/,
6 12X,'4. P5 ..........................................[',F7.2,/,
6 12X,'5. G2 ..........................................[',F7.2,/,
7 12X,'6. G3 ..........................................[',F7.3,/,
8 12X,'7. G4 ..........................................[',F7.3,/,
9 12X,'8. PHINT .......................................[',F7.3,/,
1 12X,'9. PCINT .......................................[',F7.3,/,
2 12X,'10.PCGRD .......................................[',F7.3,/)
WRITE (*,5100)
C
C Get menu choice
READ (5,'(I2)',IOSTAT=IERR) IPARAM
CALL SELPRO (0,10,IPARAM,NDEX,IERR)
IF (NDEX .EQ. 2) GOTO 3001
C
C Branch to menu choice
SELECT CASE (IPARAM)
CASE (0); RETURN
CASE (1); CALL GETREAL (P1, 'P1 ', 0.0, 4000.0)
CASE (2); CALL GETREAL (P3, 'P3 ', 1.0, 4000.0)
CASE (3); CALL GETREAL (P4, 'P4 ', 1.0, 4000.0)
CASE (4); CALL GETREAL (P5, 'P5 ', 1.0, 4000.0)
CASE (5); CALL GETREAL (G2, 'G2 ', 1.0, 7.0)
CASE (6); CALL GETREAL (G3, 'G3 ', 1.0, 7.0)
CASE (7); CALL GETREAL (G4, 'G4 ', 1.0, 7.0)
CASE (8); CALL GETREAL (PHINT,'PHINT', 1.0, 2000.0)
CASE (9); CALL GETREAL (PCINT,'PCINT', 1.0, 2000.0)
CASE (10);CALL GETREAL (PCGRD,'PCGRD', 1.0, 2000.0)
END SELECT
END SELECT
GOTO 3001
C-----------------------------------------------------------------------
C Format Strings
C-----------------------------------------------------------------------
END SUBROUTINE INVRCE
C=======================================================================
C INVRCS, Subroutine
C
C Interactively edit genetic parameters - Cassava
c
C-----------------------------------------------------------------------
C Revision history
C
C 04/15/93 PWW Written
C 04/18/93 PWW Header revision and minor changes
C
C-----------------------------------------------------------------------
C INPUT : None
C
C LOCAL : IERR,IPARAM,NDEX
C
C OUTPUT : None
C-----------------------------------------------------------------------
C Called : SEVAR
C
C Calls : CLEAR SELPRO GETREAL
C-----------------------------------------------------------------------
C DEFINITIONS
C
C IERR : Error flag
C IPARAM : Menu choice
C NDEX : Error flag for FSELPRO
C=======================================================================
SUBROUTINE INVRCS
IMPLICIT NONE
INCLUDE 'COMGEN.BLK'
INTEGER IERR,IPARAM,NDEX,L
C
C Repeat until user chooses to quit
C
3001 CONTINUE
CALL CLEAR
WRITE (*,5000)
WRITE (*,5300) (GCOEFF(L),L=1,15)
WRITE (*,5100)
C
C Get menu choice
C
READ (5,'(I2)',IOSTAT=IERR) IPARAM
CALL SELPRO (0,25,IPARAM,NDEX,IERR)
IF (NDEX .EQ. 2) GOTO 3001
C
C Branch to menu choice
C
IF (IPARAM .EQ. 0) THEN
RETURN
ELSE IF (IPARAM .EQ. 1) THEN
CALL GETREAL (GCOEFF( 1),'DUB1 ', 0.01,7000.0)
ELSE IF (IPARAM .EQ. 2) THEN
CALL GETREAL (GCOEFF( 2),'DUBR ', 0.01,7000.0)
ELSE IF (IPARAM .EQ. 3) THEN
CALL GETREAL (GCOEFF( 3),'DESP ', 0.01,7000.0)
ELSE IF (IPARAM .EQ. 4) THEN
CALL GETREAL (GCOEFF( 4),'PHCX ', 0.01,7000.0)
ELSE IF (IPARAM .EQ. 5) THEN
CALL GETREAL (GCOEFF( 5),'S#PE ', 0.01,7000.0)
ELSE IF (IPARAM .EQ. 6) THEN
CALL GETREAL (GCOEFF( 6),'S#FX ', 0.01,7000.0)
ELSE IF (IPARAM .EQ. 7) THEN
CALL GETREAL (GCOEFF( 7),'S#PX ', 0.01,7000.0)
ELSE IF (IPARAM .EQ. 8) THEN
CALL GETREAL (GCOEFF( 8),'SWNX ', 0.01,7000.0)
ELSE IF (IPARAM .EQ. 9) THEN
CALL GETREAL (GCOEFF( 9),'L#IS ', 0.01,7000.0)
ELSE IF (IPARAM .EQ. 10) THEN
CALL GETREAL (GCOEFF(10),'L#IP ', 0.01,7000.0)
ELSE IF (IPARAM .EQ. 11) THEN
CALL GETREAL (GCOEFF(11),'LALX ', 0.01,7000.0)
ELSE IF (IPARAM .EQ. 12) THEN
CALL GETREAL (GCOEFF(12),'LAXA ', 0.01,7000.0)
ELSE IF (IPARAM .EQ. 13) THEN
CALL GETREAL (GCOEFF(13),'LAL3 ', 0.01,7000.0)
ELSE IF (IPARAM .EQ. 14) THEN