-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathFormclas.f
887 lines (854 loc) · 29.7 KB
/
Formclas.f
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
c last modified 02-10-2012
C SUBROUTINES to determine the default Form Class.
c contains the following subroutines
c FORMCL_BM
c FORMCL_CA
c FORMCL_EC
c FORMCL_NI
c FORMCL_PN
c FORMCL_SO
c FORMCL_WA
SUBROUTINE FORMCL_BM(SPEC,IFOR,D,FC)
C----------
C **FORMCL--BM DATE OF LAST REVISION: 08/13/96
C----------
CHARACTER*3 FIAJSP(11),SPEC
REAL D
INTEGER MALHFC(11,5),OCHOFC(11,5),UMATFC(11,5)
INTEGER WLWHFC(11,5),FC,IFCDBH,ISPC,IFOR
INTEGER DONEFLAG,LASTFLAG,FIRST,LAST,HALF
C----------
C FOREST ORDER: (IFOR)
C 4=MALHEUR(604) 7=OCHOCO(607) 14=UMATILLA(614)
C 16=WALLOWA-WHITMAN(616)
C
C SPECIES ORDER: (ISPC)
C 1=WP 2=WL 3=DF 4=GF 5=MH 6= 7=LP 8=ES 9=AF 10=PP 11=J/OT
DATA FIAJSP /' ','017','019','073','093','108','119','122',
& '202','264','999'/
C----------
C MALHEUR FORM CLASS VALUES
C----------
DATA MALHFC/
& 80, 76, 78, 78, 77, 80, 78, 78, 78, 75, 60,
& 80, 78, 80, 79, 80, 83, 78, 78, 77, 79, 60,
& 80, 77, 80, 80, 82, 83, 79, 80, 77, 79, 60,
& 80, 76, 82, 82, 84, 80, 81, 82, 80, 79, 60,
& 80, 76, 82, 77, 84, 80, 78, 83, 77, 78, 60/
C----------
C OCHOCO FORM CLASS VALUES
C----------
DATA OCHOFC/
& 80, 76, 78, 78, 82, 70, 78, 76, 79, 75, 60,
& 80, 78, 76, 78, 82, 75, 80, 78, 79, 78, 60,
& 80, 77, 74, 80, 82, 75, 80, 78, 76, 79, 60,
& 80, 74, 74, 80, 82, 75, 82, 80, 76, 79, 60,
& 80, 74, 74, 80, 82, 75, 80, 80, 76, 78, 60/
C----------
C UMATILLA FORM CLASS VALUES
C----------
DATA UMATFC/
& 80, 76, 74, 78, 77, 86, 78, 78, 77, 75, 60,
& 80, 78, 74, 78, 77, 86, 78, 78, 77, 75, 60,
& 80, 77, 74, 78, 75, 86, 80, 80, 77, 75, 60,
& 80, 76, 75, 78, 75, 86, 81, 81, 77, 79, 60,
& 80, 76, 75, 78, 75, 86, 81, 81, 77, 78, 60/
C----------
C WALLOWA-WHITMAN FORM CLASS VALUES
C----------
DATA WLWHFC/
& 80, 76, 78, 78, 84, 85, 78, 78, 78, 75, 60,
& 80, 78, 79, 82, 84, 86, 78, 78, 77, 79, 60,
& 80, 77, 79, 77, 84, 85, 78, 80, 77, 79, 60,
& 80, 76, 79, 75, 84, 85, 78, 82, 77, 79, 60,
& 80, 76, 79, 75, 84, 85, 78, 83, 77, 78, 60/
C----------
C FOR REGION 6 FORESTS, LOAD THE FORM CLASS USING TABLE VALUES.
C IF A FORM CLASS HAS BEEN ENTERED VIA KEYWORD, USE IT INSTEAD.
C----------
C BINARY SEARCH FOR CORRECT COEFFICIENTS
DONEFLAG = 0
LASTFLAG = 0
FIRST = 1
LAST = 11
DO 5, WHILE (DONEFLAG.EQ.0)
IF(FIRST.EQ.LAST) LASTFLAG = 1
!DETERMINE WHERE TO CHECK
HALF=((LAST-FIRST+1)/2) + FIRST
!FOUND THE COEFFECIENTS
IF(SPEC.EQ.FIAJSP(HALF))THEN
ISPC = HALF
DONEFLAG=1
!MOVE DOWN THE LIST
ELSEIF(SPEC.GT.FIAJSP(HALF))THEN
FIRST = HALF
!MOVE UP THE LIST
ELSEIF(SPEC.LT.FIAJSP(HALF))THEN
LAST = HALF - 1
ENDIF
!DID NOT FIND A MATCH
IF(LASTFLAG.EQ.1 .AND. DONEFLAG.EQ.0)THEN
FC = 80
RETURN
ENDIF
5 CONTINUE
C END BINARY SEARCH
200 IFCDBH = (D - 1.0) / 10.0 + 1.0
IF(IFCDBH .LT. 1) IFCDBH=1
IF(D.GT.40.9) IFCDBH=5
IF(IFOR.EQ.4) THEN
FC = MALHFC(ISPC,IFCDBH)
ELSEIF(IFOR.EQ.7) THEN
FC = OCHOFC(ISPC,IFCDBH)
ELSEIF(IFOR.EQ.14) THEN
FC = UMATFC(ISPC,IFCDBH)
ELSE
FC = WLWHFC(ISPC,IFCDBH)
ENDIF
C
RETURN
END
C*************************************************************
C*************************************************************
SUBROUTINE FORMCL_CA(SPEC,IFOR,D,FC)
C----------
C **FORMCL--CA DATE OF LAST REVISION: 08/27/99
C----------
CHARACTER*3 FIAJSP(49),SPEC
REAL D
INTEGER ROGRFC(49,5),SISKFC(49,5),FC,IFCDBH,ISPC,IFOR
INTEGER DONEFLAG,LASTFLAG,FIRST,LAST,HALF
C----------
C FOREST ORDER: (IFOR)
C 10=ROGUE RIVER(610) 11=SISKIYOU(611)
C
C
C SPECIES ORDER:
C 1=PC 2=IC 3=RC 4=WF 5=RF 6=SH 7=DF 8=WH 9=MH 10=WB
C 11=KP 12=LP 13=CP 14=LM 15=JP 16=SP 17=WP 18=PP 19=MP 20=GP
C 21=JU 22=BR 23=GS 24=PY 25=OS 26=LO 27=CY 28=BL 29=EO 30=WO
C 31=BO 32=VO 33=IO 34=BM 35=BU 36=RA 37=MA 38=GC 39=DG 40=OA
C 41=WN 42=TO 43=SY 44=AS 45=CW 46=WI 47=CN 48=CL 49=OH
DATA FIAJSP /
& '001','004','015','020','021','041','064','081','092','101',
& '103','108','109','113','116','117','119','122','124','127',
& '202','212','231','242','251','263','264','312','330','351',
& '361','431','492','542','600','631','730','746','747','801',
& '805','807','811','815','818','821','839','920','981'/
C----------
C ROGUE RIVER FORM CLASS VALUES
C----------
DATA ROGRFC/
& 70, 70, 78, 70, 77, 70, 70, 69, 76, 75,
& 70, 70, 70, 70, 76, 77, 77, 76, 70, 70,
& 77, 70, 72, 70, 70, 74, 71, 72, 70, 72,
& 70, 70, 69, 72, 70, 72, 70, 72, 72, 70,
& 69, 70, 70, 66, 72, 70, 70, 72, 70,
C
& 70, 70, 78, 70, 77, 70, 70, 69, 76, 75,
& 70, 70, 70, 70, 72, 77, 77, 76, 70, 70,
& 77, 70, 72, 70, 70, 74, 71, 72, 70, 72,
& 70, 70, 69, 72, 70, 72, 70, 72, 72, 70,
& 69, 70, 70, 66, 72, 70, 70, 72, 70,
C
& 70, 70, 77, 70, 75, 70, 70, 67, 74, 73,
& 68, 68, 70, 70, 70, 75, 75, 74, 70, 70,
& 75, 70, 72, 70, 70, 72, 70, 72, 70, 72,
& 70, 70, 69, 72, 70, 72, 70, 72, 72, 70,
& 69, 70, 70, 66, 72, 70, 70, 72, 70,
C
& 70, 70, 75, 70, 73, 70, 70, 65, 73, 72,
& 66, 66, 70, 70, 68, 73, 73, 71, 70, 70,
& 74, 70, 72, 70, 70, 70, 68, 72, 70, 72,
& 70, 70, 69, 72, 70, 72, 70, 72, 72, 70,
& 69, 70, 70, 66, 72, 70, 70, 72, 70,
C
& 70, 70, 71, 70, 71, 70, 70, 63, 72, 71,
& 66, 66, 70, 70, 66, 70, 72, 69, 70, 70,
& 71, 70, 72, 70, 70, 69, 66, 72, 70, 72,
& 70, 70, 69, 72, 70, 72, 70, 72, 72, 70,
& 69, 70, 70, 66, 72, 70, 70, 72, 70/
C----------
C SISKIYOU FORM CLASS VALUES
C----------
DATA SISKFC/
& 74, 70, 80, 75, 82, 77, 74, 66, 76, 74,
& 78, 78, 74, 74, 76, 78, 78, 76, 74, 74,
& 76, 74, 65, 71, 70, 84, 76, 72, 70, 74,
& 72, 70, 72, 72, 70, 74, 70, 70, 75, 70,
& 70, 70, 70, 70, 72, 70, 70, 75, 70,
C
& 74, 70, 80, 75, 82, 77, 74, 70, 76, 74,
& 78, 78, 74, 74, 72, 78, 78, 76, 74, 74,
& 76, 74, 65, 71, 70, 84, 76, 72, 70, 74,
& 72, 70, 72, 72, 70, 74, 70, 70, 75, 70,
& 70, 70, 70, 70, 72, 70, 70, 75, 70,
C
& 74, 70, 78, 75, 80, 75, 74, 70, 76, 74,
& 78, 78, 74, 74, 72, 78, 78, 76, 74, 74,
& 74, 74, 65, 71, 70, 82, 73, 72, 70, 74,
& 72, 70, 72, 72, 70, 74, 70, 70, 75, 70,
& 70, 70, 70, 70, 72, 70, 70, 75, 70,
C
& 72, 70, 76, 74, 78, 71, 72, 68, 74, 72,
& 76, 74, 72, 72, 68, 75, 74, 74, 72, 72,
& 74, 72, 65, 69, 70, 80, 72, 72, 70, 74,
& 72, 70, 72, 72, 70, 74, 70, 70, 72, 70,
& 70, 70, 70, 70, 72, 70, 70, 72, 70,
C
& 72, 70, 75, 74, 76, 70, 72, 66, 72, 72,
& 72, 74, 72, 72, 68, 74, 73, 72, 72, 72,
& 72, 72, 65, 68, 70, 78, 70, 72, 70, 74,
& 72, 70, 72, 72, 70, 74, 70, 70, 72, 70,
& 70, 70, 70, 70, 72, 70, 70, 72, 70/
C----------
C FOR REGION 6 FORESTS, LOAD THE FORM CLASS USING TABLE VALUES.
C IF A FORM CLASS HAS BEEN ENTERED VIA KEYWORD, USE IT INSTEAD.
C----------
C BINARY SEARCH FOR CORRECT COEFFICIENTS
DONEFLAG = 0
LASTFLAG = 0
FIRST = 1
LAST = 49
DO 5, WHILE (DONEFLAG.EQ.0)
IF(FIRST.EQ.LAST) LASTFLAG = 1
!DETERMINE WHERE TO CHECK
HALF=((LAST-FIRST+1)/2) + FIRST
!FOUND THE COEFFECIENTS
IF(SPEC.EQ.FIAJSP(HALF))THEN
ISPC = HALF
DONEFLAG=1
!MOVE DOWN THE LIST
ELSEIF(SPEC.GT.FIAJSP(HALF))THEN
FIRST = HALF
!MOVE UP THE LIST
ELSEIF(SPEC.LT.FIAJSP(HALF))THEN
LAST = HALF - 1
ENDIF
!DID NOT FIND A MATCH
IF(LASTFLAG.EQ.1 .AND. DONEFLAG.EQ.0)THEN
FC = 80
RETURN
ENDIF
5 CONTINUE
C END BINARY SEARCH
200 IFCDBH = (D - 1.0) / 10.0 + 1.0
IF(IFCDBH .LT. 1) IFCDBH=1
IF(D.GT.40.9) IFCDBH=5
IF(IFOR.EQ.10) THEN
FC = ROGRFC(ISPC,IFCDBH)
ELSEIF(IFOR.EQ.11) THEN
FC = SISKFC(ISPC,IFCDBH)
ELSE
FC = 80.
ENDIF
C
RETURN
END
C*************************************************************
C*************************************************************
SUBROUTINE FORMCL_EC(SPEC,IFOR,D,FC)
C----------
C **FORMCL--EC DATE OF LAST REVISION: 08/13/96
C----------
CHARACTER*3 FIAJSP(11),SPEC
REAL D
INTEGER OKANFC(11,5),WENAFC(11,5),FC,IFCDBH,ISPC,IFOR
INTEGER DONEFLAG,LASTFLAG,FIRST,LAST,HALF
C----------
C FOREST ORDER: (IFOR)
C 8=OKANOGAN(608)
C 17=WENATCHEE(617) 5=OKANOGAN (TONASKET RD) (699)
C
C SPECIES ORDER: (ISPC)
C 1=WP 2=WL 3=DF 4=SF 5=RC 6=GF 7=LP 8=ES 9=AF 10=PP 11=MH/OT
DATA FIAJSP /'011','017','019','073','093','108','119','122',
& '202','242','999'/
C----------
C OKANOGAN FORM CLASS VALUES
C----------
DATA OKANFC/
& 82, 76, 84, 78, 82, 85, 78, 78, 72, 75, 75,
& 82, 78, 84, 78, 82, 85, 80, 80, 72, 75, 78,
& 82, 77, 85, 78, 83, 85, 80, 81, 73, 72, 79,
& 84, 76, 85, 73, 86, 85, 82, 82, 75, 68, 79,
& 84, 76, 85, 73, 86, 85, 80, 84, 75, 61, 78/
C----------
C WENATCHEE FORM CLASS VALUES
C----------
DATA WENAFC/
& 85, 78, 76, 77, 79, 82, 83, 77, 75, 69, 82,
& 86, 79, 77, 78, 80, 82, 84, 78, 76, 70, 82,
& 84, 79, 78, 79, 80, 82, 84, 81, 75, 70, 82,
& 86, 79, 76, 80, 82, 82, 85, 81, 76, 68, 80,
& 86, 80, 77, 80, 82, 82, 84, 80, 73, 70, 80/
C----------
C FOR REGION 6 FORESTS, LOAD THE FORM CLASS USING TABLE VALUES.
C IF A FORM CLASS HAS BEEN ENTERED VIA KEYWORD, USE IT INSTEAD.
C----------
C BINARY SEARCH FOR CORRECT COEFFICIENTS
DONEFLAG = 0
LASTFLAG = 0
FIRST = 1
LAST = 11
DO 5, WHILE (DONEFLAG.EQ.0)
IF(FIRST.EQ.LAST) LASTFLAG = 1
!DETERMINE WHERE TO CHECK
HALF=((LAST-FIRST+1)/2) + FIRST
!FOUND THE COEFFECIENTS
IF(SPEC.EQ.FIAJSP(HALF))THEN
ISPC = HALF
DONEFLAG=1
!MOVE DOWN THE LIST
ELSEIF(SPEC.GT.FIAJSP(HALF))THEN
FIRST = HALF
!MOVE UP THE LIST
ELSEIF(SPEC.LT.FIAJSP(HALF))THEN
LAST = HALF - 1
ENDIF
!DID NOT FIND A MATCH
IF(LASTFLAG.EQ.1 .AND. DONEFLAG.EQ.0)THEN
FC = 80
RETURN
ENDIF
5 CONTINUE
C END BINARY SEARCH
200 IFCDBH = (D - 1.0) / 10.0 + 1.0
IF(IFCDBH .LT. 1) IFCDBH=1
IF(D.GT.40.9) IFCDBH=5
IF(IFOR.EQ.8) THEN
FC = OKANFC(ISPC,IFCDBH)
ELSE
FC = WENAFC(ISPC,IFCDBH)
ENDIF
C
RETURN
END
C*************************************************************
C*************************************************************
SUBROUTINE FORMCL_NI(SPEC,IFOR,D,FC)
C----------
C **FORMCL--NI DATE OF LAST REVISION: 08/13/96
C----------
CHARACTER*3 FIAJSP(11),SPEC
REAL D
INTEGER COLVFC(11,5),FC,IFCDBH,ISPC,IFOR
INTEGER DONEFLAG,LASTFLAG,FIRST,LAST,HALF
C----------
C FOREST ORDER: (IFOR)
C 5=COLVILLE(621)
C
C SPECIES ORDER: (ISPC)
C 1=WP 2=L 3=DF 4=GF 5=WH 6=C 7=LP 8=S 9=AF 10=PP 11=OT
DATA FIAJSP /'017','019','073','093','108','119','122','202',
> '242','263','999'/
C----------
C COLVILLE FORM CLASS VALUES
C----------
DATA COLVFC/
& 76, 78, 78, 77, 80, 78, 78, 78, 64, 76, 75,
& 78, 76, 78, 79, 82, 80, 80, 76, 65, 78, 78,
& 77, 74, 80, 80, 82, 80, 80, 75, 66, 80, 79,
& 76, 74, 80, 80, 80, 82, 82, 74, 66, 80, 79,
& 76, 74, 80, 81, 80, 80, 80, 74, 66, 82, 78/
C----------
C FOR REGION 6 FOREST, LOAD THE FORM CLASS USING TABLE VALUES.
C IF A FORM CLASS HAS BEEN ENTERED VIA KEYWORD, USE IT INSTEAD.
C
C REGION 1 VOLUME ROUTINES DON'T USE FORM CLASS.
C----------
C BINARY SEARCH FOR CORRECT COEFFICIENTS
DONEFLAG = 0
LASTFLAG = 0
FIRST = 1
LAST = 11
DO 5, WHILE (DONEFLAG.EQ.0)
IF(FIRST.EQ.LAST) LASTFLAG = 1
!DETERMINE WHERE TO CHECK
HALF=((LAST-FIRST+1)/2) + FIRST
!FOUND THE COEFFECIENTS
IF(SPEC.EQ.FIAJSP(HALF))THEN
ISPC = HALF
DONEFLAG=1
!MOVE DOWN THE LIST
ELSEIF(SPEC.GT.FIAJSP(HALF))THEN
FIRST = HALF
!MOVE UP THE LIST
ELSEIF(SPEC.LT.FIAJSP(HALF))THEN
LAST = HALF - 1
ENDIF
!DID NOT FIND A MATCH
IF(LASTFLAG.EQ.1 .AND. DONEFLAG.EQ.0)THEN
FC = 80
RETURN
ENDIF
5 CONTINUE
C END BINARY SEARCH
200 IFCDBH = (D - 1.0) / 10.0 + 1.0
IF(IFCDBH .LT. 1) IFCDBH=1
IF(D.GT.40.9) IFCDBH=5
FC = COLVFC(ISPC,IFCDBH)
C
RETURN
END
C*************************************************************
C*************************************************************
SUBROUTINE FORMCL_PN(SPEC,IFOR,D,FC)
C----------
C **FORMCL--PN DATE OF LAST REVISION: 09/10/99
C----------
CHARACTER*3 FIAJSP(39),SPEC
REAL D
INTEGER OLYMFC(39,5),SIUSFC(39,5),BLM708(39),BLM709(39)
INTEGER BLM712(39),FC,IFCDBH,ISPC,IFOR
INTEGER DONEFLAG,LASTFLAG,FIRST,LAST,HALF
C----------
C FOREST ORDER: (IFOR)
C 1=OLYMPIC(609) 2=SIUSLAW(612) 3=QUINAULT(800) 4=BLM SALAM (708)
C 5=BLM EUGENE (709) 6=BLM COOS BAY (712)
C
C SPECIES ORDER: (ISPC)
C 1=SF 2=WF 3=GF 4=AF 5=RF 6= 7=NF 8=YC 9=IC 10=ES
C 11=LP 12=JP 13=SP 14=WP 15=PP 16=DF 17=RW 18=RC 19=WH 20=MH
C 21=BM 22=RA 23=WA 24=PB 25=GC 26=AS 27=CW 28=WO 29=J 30=LL
C 31=WB 32=KP 33=PY 34=DG 35=HT 36=CH 37=WI 38= 39=OT
DATA FIAJSP/' ','011','015','017','019','020','022','042','060',
& '072','081','093','098','101','103','108','116','117','119',
& '122','202','211','231','242','263','264','312','351','352',
& '376','431','492','500','746','747','764','815','920','999'/
C----------
C OLYMPIC FORM CLASS VALUES (ALSO USE FOR QUINAULT)
C----------
DATA OLYMFC/
& 74, 86, 86, 78, 86, 75, 78, 81, 60, 75, 66, 80, 80, 82, 82, 82,
& 75, 72, 86, 76, 75, 75, 56, 80, 87, 87, 74, 74, 70, 70, 75, 70,
& 70, 75, 74, 74, 70, 75, 74,
C
& 74, 86, 86, 76, 86, 75, 78, 81, 60, 75, 67, 82, 80, 82, 82, 82,
& 75, 74, 86, 76, 75, 75, 60, 80, 87, 87, 74, 74, 70, 70, 75, 70,
& 70, 75, 74, 74, 70, 75, 74,
C
& 74, 85, 85, 76, 85, 75, 78, 81, 60, 75, 68, 84, 80, 82, 82, 82,
& 75, 75, 82, 77, 76, 75, 60, 79, 85, 85, 74, 75, 70, 70, 75, 70,
& 70, 75, 74, 75, 70, 75, 74,
C
& 74, 81, 81, 74, 81, 74, 78, 81, 60, 74, 67, 84, 80, 82, 82, 83,
& 74, 75, 82, 77, 77, 74, 60, 78, 85, 85, 74, 75, 70, 70, 75, 70,
& 70, 75, 74, 75, 70, 75, 74,
C
& 74, 81, 81, 74, 81, 74, 78, 81, 60, 74, 66, 84, 80, 82, 82, 82,
& 74, 78, 82, 78, 78, 74, 60, 78, 84, 84, 74, 75, 70, 70, 75, 70,
& 70, 75, 74, 75, 70, 75, 74/
C----------
C SIUSLAW FORM CLASS VALUES
C----------
DATA SIUSFC/
& 74, 84, 86, 78, 82, 75, 78, 72, 60, 75, 66, 80, 80, 82, 82, 80,
& 75, 72, 84, 76, 67, 75, 56, 58, 68, 76, 74, 74, 70, 70, 75, 70,
& 70, 75, 74, 74, 70, 75, 74,
C
& 74, 82, 86, 76, 82, 75, 78, 71, 60, 75, 67, 82, 80, 82, 82, 80,
& 75, 74, 82, 76, 69, 75, 60, 59, 72, 75, 74, 74, 70, 70, 75, 70,
& 70, 75, 74, 74, 70, 75, 74,
C
& 74, 80, 84, 76, 80, 75, 78, 70, 60, 75, 68, 84, 80, 82, 82, 80,
& 75, 75, 80, 77, 74, 75, 60, 60, 75, 72, 74, 75, 70, 70, 75, 70,
& 70, 75, 74, 75, 70, 75, 74,
C
& 74, 80, 84, 74, 80, 74, 78, 70, 60, 74, 67, 84, 80, 82, 82, 80,
& 74, 75, 80, 77, 75, 74, 60, 62, 77, 70, 74, 75, 70, 70, 75, 70,
& 70, 75, 74, 75, 70, 75, 74,
C
& 74, 80, 82, 74, 80, 74, 78, 70, 60, 74, 66, 84, 80, 82, 82, 80,
& 74, 78, 78, 78, 75, 74, 60, 65, 80, 70, 74, 75, 70, 70, 75, 70,
& 70, 75, 74, 75, 70, 75, 74/
C
DATA BLM708 /
& 74, 84, 86, 84, 82, 75, 84, 73, 60, 75, 73, 77, 80, 82, 82, 68,
& 75, 75, 76, 82, 80, 75, 60, 76, 88, 72, 84, 88, 70, 70, 75, 70,
& 70, 75, 74, 75, 70, 75, 74/
C
DATA BLM709/
& 78, 82, 78, 82, 78, 78, 78, 78, 78, 78, 70, 78, 78, 78, 78, 78,
& 78, 72, 78, 70, 78, 78, 78, 72, 80, 78, 78, 80, 78, 78, 80, 78,
& 78, 78, 82, 78, 78, 78, 78/
C
DATA BLM712/
& 74, 80, 84, 86, 80, 75, 78, 70, 60, 75, 70, 72, 80, 82, 82, 80,
& 75, 76, 80, 80, 74, 75, 82, 70, 84, 72, 82, 82, 82, 70, 82, 70,
& 70, 75, 74, 86, 70, 75, 74/
C----------
C FOR REGION 6 FORESTS, LOAD THE FORM CLASS USING TABLE VALUES.
C IF A FORM CLASS HAS BEEN ENTERED VIA KEYWORD, USE IT INSTEAD.
C----------
C BINARY SEARCH FOR CORRECT COEFFICIENTS
DONEFLAG = 0
LASTFLAG = 0
FIRST = 1
LAST = 39
DO 5, WHILE (DONEFLAG.EQ.0)
IF(FIRST.EQ.LAST) LASTFLAG = 1
!DETERMINE WHERE TO CHECK
HALF=((LAST-FIRST+1)/2) + FIRST
!FOUND THE COEFFECIENTS
IF(SPEC.EQ.FIAJSP(HALF))THEN
ISPC = HALF
DONEFLAG=1
!MOVE DOWN THE LIST
ELSEIF(SPEC.GT.FIAJSP(HALF))THEN
FIRST = HALF
!MOVE UP THE LIST
ELSEIF(SPEC.LT.FIAJSP(HALF))THEN
LAST = HALF - 1
ENDIF
!DID NOT FIND A MATCH
IF(LASTFLAG.EQ.1 .AND. DONEFLAG.EQ.0)THEN
FC = 80
RETURN
ENDIF
5 CONTINUE
C END BINARY SEARCH
200 IFCDBH = (D - 1.0) / 10.0 + 1.0
IF(IFCDBH .LT. 1) IFCDBH=1
IF(D.GT.40.9) IFCDBH=5
IF(IFOR.EQ.9) THEN
FC = OLYMFC(ISPC,IFCDBH)
ELSE IF(IFOR.EQ.12)THEN
FC = SIUSFC(ISPC,IFCDBH)
ELSE IF(IFOR.EQ.708)THEN
FC = BLM708(ISPC)
ELSE IF(IFOR.EQ.709)THEN
FC = BLM709(ISPC)
ELSE
FC = BLM712(ISPC)
ENDIF
C
RETURN
END
C*************************************************************
C*************************************************************
SUBROUTINE FORMCL_SO(SPEC,IFOR,D,FC)
C----------
C **FORMCL--SO DATE OF LAST REVISION: 08/13/96
C----------
CHARACTER*3 FIAJSP(11),SPEC
REAL D
INTEGER DESHFC(11,5),FREMFC(11,5),WINEFC(11,5),FC,IFCDBH
INTEGER IFOR,ISPC
INTEGER DONEFLAG,LASTFLAG,FIRST,LAST,HALF
C----------
C FOREST ORDER: (IFOR)
C 1=DESCHUTES(601) 2=FREMONT(602) 3=WINEMA(620)
C
C SPECIES ORDER: (ISPC)
C 1=WP 2=SP 3=DF 4=WF 5=MH 6=IC 7=LP 8=ES 9=RF 10=PP 11=J/OT
DATA FIAJSP /'015','020','081','093','108','117','119','122',
& '202','264','999'/
C----------
C DESCHUTES FORM CLASS VALUES
C----------
DATA DESHFC/
& 80, 80, 65, 82, 82, 78, 80, 76, 80, 78, 60,
& 80, 80, 65, 82, 82, 78, 81, 76, 80, 78, 60,
& 78, 78, 65, 82, 82, 78, 81, 79, 78, 78, 60,
& 78, 78, 65, 82, 82, 80, 82, 80, 76, 76, 60,
& 76, 76, 65, 82, 82, 80, 82, 80, 76, 74, 60/
C----------
C FREMONT FORM CLASS VALUES
C----------
DATA FREMFC/
& 68, 66, 64, 77, 83, 70, 83, 70, 66, 64, 34,
& 76, 74, 66, 79, 82, 82, 82, 82, 68, 64, 48,
& 82, 80, 66, 80, 80, 82, 80, 82, 68, 66, 48,
& 83, 81, 66, 80, 80, 84, 80, 84, 68, 66, 50,
& 80, 78, 66, 81, 80, 78, 80, 80, 68, 66, 50/
C----------
C WINEMA FORM CLASS VALUES
C----------
DATA WINEFC/
& 76, 81, 62, 80, 83, 72, 78, 73, 78, 75, 60,
& 81, 81, 65, 80, 82, 76, 79, 78, 77, 78, 60,
& 78, 81, 64, 80, 80, 76, 80, 80, 75, 79, 60,
& 78, 78, 62, 79, 80, 77, 79, 80, 74, 79, 60,
& 76, 74, 62, 78, 80, 77, 78, 80, 73, 78, 60/
C----------
C FOR REGION 6 FORESTS, LOAD THE FORM CLASS USING TABLE VALUES.
C IF A FORM CLASS HAS BEEN ENTERED VIA KEYWORD, USE IT INSTEAD.
C----------
C BINARY SEARCH FOR CORRECT COEFFICIENTS
DONEFLAG = 0
LASTFLAG = 0
FIRST = 1
LAST = 11
DO 5, WHILE (DONEFLAG.EQ.0)
IF(FIRST.EQ.LAST) LASTFLAG = 1
!DETERMINE WHERE TO CHECK
HALF=((LAST-FIRST+1)/2) + FIRST
!FOUND THE COEFFECIENTS
IF(SPEC.EQ.FIAJSP(HALF))THEN
ISPC = HALF
DONEFLAG=1
!MOVE DOWN THE LIST
ELSEIF(SPEC.GT.FIAJSP(HALF))THEN
FIRST = HALF
!MOVE UP THE LIST
ELSEIF(SPEC.LT.FIAJSP(HALF))THEN
LAST = HALF - 1
ENDIF
!DID NOT FIND A MATCH
IF(LASTFLAG.EQ.1 .AND. DONEFLAG.EQ.0)THEN
FC = 80
RETURN
ENDIF
5 CONTINUE
C END BINARY SEARCH
200 IFCDBH = (D - 1.0) / 10.0 + 1.0
IF(IFCDBH .LT. 1) IFCDBH=1
IF(D.GT.40.9) IFCDBH=5
IF(IFOR.EQ.1) THEN
FC = DESHFC(ISPC,IFCDBH)
ELSEIF(IFOR.EQ.2) THEN
FC = FREMFC(ISPC,IFCDBH)
ELSE
FC = WINEFC(ISPC,IFCDBH)
ENDIF
C
RETURN
END
C*************************************************************
C*************************************************************
SUBROUTINE FORMCL_WC(SPEC,IFOR,D,FC)
C----------
C **FORMCL--WC DATE OF LAST REVISION: 09/10/99
C----------
CHARACTER*3 FIAJSP(39),SPEC
REAL D
INTEGER GIFPFC(39,5),MBSNFC(39,5),MTHDFC(39,5)
INTEGER UMPQFC(39,5),WILLFC(39,5),BLM710(39),BLM711(39)
INTEGER FC,IFCDBH,ISPC,IFOR
INTEGER DONEFLAG,LASTFLAG,FIRST,LAST,HALF
C----------
C FOREST ORDER: (IFOR)
C 1=GIFFORD PINCHOT(603) 2=MT BAKER/SNOQ(605) 3=MT HOOD(606)
C 5=UMPQUA(615) 6=WILLAMETTE(618)
C 9=BLM ROSEBURG(710)
C 10=BLM MEDFORD/LAKEVIEW(711)
C
C FOR VALUES NOT SUPPLIED BY BLM, USE THE FOLLOWING FOREST
C FORM CLASS VALUES FOR THE MIDDLE (21.0"-30.9") DBH RANGE:
C SALEM --- MT HOOD EUGENE --- WILLAMETTE
C ROSEBURG --- UMPQUA MEDFORD/LAKEVIEW --- ROGUE RIVER
C
C SPECIES ORDER: (ISPC)
C 1=SF 2=WF 3=GF 4=AF 5=RF 6= 7=NF 8=YC 9=IC 10=ES
C 11=LP 12=JP 13=SP 14=WP 15=PP 16=DF 17=RW 18=RC 19=WH 20=MH
C 21=BM 22=RA 23=WA 24=PB 25=GC 26=AS 27=CW 28=WO 29=J 30=LL
C 31=WB 32=KP 33=PY 34=DG 35=HT 36=CH 37=WI 38= 39=OT
DATA FIAJSP/' ',' ','011','015','017','019','020','022','042',
&'060','072','081','093','101','103','108','116','117','119','122',
&'202','211','231','242','263','264','312','351','352','376','431',
&'492','500','746','747','764','815','920','999'/
C----------
C GIFFORD PINCHOT FORM CLASS VALUES
C----------
DATA GIFPFC/
& 74, 80, 87, 86, 84, 80, 75, 84, 76, 60, 75,
& 66, 80, 82, 82, 82, 75, 72, 84, 76, 82, 75,
& 60, 70, 86, 82, 74, 74, 70, 70, 75, 74, 70,
& 75, 74, 74, 70, 75, 74,
C
& 74, 80, 87, 86, 84, 80, 75, 84, 76, 60, 75,
& 67, 80, 82, 82, 82, 75, 74, 84, 76, 82, 75,
& 60, 70, 86, 82, 74, 74, 70, 70, 75, 74, 70,
& 75, 74, 74, 70, 75, 74,
C
& 74, 80, 86, 84, 84, 80, 75, 84, 74, 60, 75,
& 68, 80, 82, 82, 82, 75, 75, 84, 78, 80, 75,
& 60, 68, 84, 82, 74, 74, 70, 70, 75, 74, 70,
& 75, 74, 74, 70, 75, 74,
C
& 74, 80, 84, 84, 84, 80, 74, 82, 72, 60, 74,
& 67, 78, 82, 82, 82, 74, 75, 82, 80, 79, 74,
& 60, 68, 84, 80, 74, 74, 70, 70, 75, 74, 70,
& 75, 74, 74, 70, 75, 74,
C
& 74, 80, 84, 82, 84, 80, 74, 82, 70, 60, 74,
& 66, 78, 82, 82, 82, 74, 78, 82, 82, 78, 74,
& 60, 68, 82, 80, 74, 74, 70, 70, 75, 74, 70,
& 75, 74, 74, 70, 75, 74/
C----------
C MOUNT BAKER / SNOQUALMIE FORM CLASS VALUES
C----------
DATA MBSNFC/
& 74, 80, 86, 86, 78, 86, 75, 78, 75, 60, 75,
& 66, 80, 82, 82, 82, 75, 72, 86, 76, 75, 75,
& 56, 75, 87, 87, 74, 74, 70, 70, 75, 70, 70,
& 75, 74, 74, 70, 75, 74,
C
& 74, 80, 86, 86, 76, 86, 75, 78, 75, 60, 75,
& 67, 82, 82, 82, 82, 75, 74, 86, 76, 75, 75,
& 60, 75, 87, 87, 74, 74, 70, 70, 75, 70, 70,
& 75, 74, 74, 70, 75, 74,
C
& 74, 80, 85, 85, 76, 85, 75, 78, 73, 60, 75,
& 68, 84, 82, 82, 82, 75, 75, 82, 77, 76, 75,
& 60, 73, 85, 85, 74, 75, 70, 70, 75, 70, 70,
& 75, 74, 75, 70, 75, 74,
C
& 74, 80, 81, 81, 74, 81, 74, 78, 70, 60, 74,
& 67, 84, 82, 82, 83, 74, 75, 82, 77, 77, 74,
& 60, 70, 85, 85, 74, 75, 70, 70, 75, 70, 70,
& 75, 74, 75, 70, 75, 74,
C
& 74, 80, 81, 81, 74, 81, 74, 78, 70, 60, 74,
& 66, 84, 82, 82, 82, 74, 78, 82, 78, 78, 74,
& 60, 70, 84, 84, 74, 75, 70, 70, 75, 70, 70,
& 75, 74, 75, 70, 75, 74/
C----------
C MOUNT HOOD FORM CLASS VALUES
C----------
DATA MTHDFC/
& 74, 80, 87, 88, 76, 84, 75, 78, 75, 60, 75,
& 75, 77, 82, 82, 76, 75, 72, 84, 79, 76, 75,
& 60, 75, 78, 72, 74, 74, 70, 70, 75, 70, 70,
& 75, 74, 74, 70, 75, 74,
C
& 74, 80, 87, 88, 72, 84, 75, 78, 75, 60, 75,
& 75, 77, 82, 82, 68, 75, 74, 76, 79, 82, 75,
& 60, 82, 74, 72, 74, 74, 70, 70, 75, 70, 70,
& 75, 74, 74, 70, 75, 74,
C
& 74, 80, 86, 86, 72, 82, 75, 78, 73, 60, 75,
& 73, 77, 82, 82, 68, 75, 75, 76, 82, 82, 75,
& 60, 82, 74, 72, 74, 75, 70, 70, 75, 70, 70,
& 75, 74, 75, 70, 75, 74,
C
& 74, 80, 84, 85, 72, 80, 74, 78, 70, 60, 74,
& 70, 77, 82, 82, 68, 74, 75, 76, 83, 82, 74,
& 60, 82, 74, 72, 74, 75, 70, 70, 75, 70, 70,
& 75, 74, 75, 70, 75, 74,
C
& 74, 80, 80, 80, 72, 75, 74, 78, 70, 60, 74,
& 70, 77, 82, 82, 68, 74, 78, 76, 82, 82, 74,
& 60, 82, 74, 72, 74, 75, 70, 70, 75, 70, 70,
& 75, 74, 75, 70, 75, 74/
C----------
C UMPQUA FORM CLASS VALUES
C----------
DATA UMPQFC/
& 70, 70, 83, 83, 83, 86, 83, 83, 62, 75, 75,
& 62, 86, 82, 82, 82, 77, 75, 78, 77, 77, 75,
& 70, 70, 87, 77, 75, 75, 70, 70, 75, 75, 70,
& 75, 75, 75, 70, 75, 70,
C
& 70, 70, 83, 83, 83, 83, 83, 83, 62, 75, 75,
& 62, 86, 82, 82, 82, 77, 75, 78, 77, 77, 75,
& 70, 70, 87, 77, 75, 75, 70, 70, 75, 75, 70,
& 75, 75, 75, 70, 75, 70,
C
& 70, 70, 81, 81, 81, 81, 83, 81, 65, 75, 75,
& 65, 86, 82, 82, 82, 78, 78, 78, 78, 76, 75,
& 70, 68, 87, 76, 75, 75, 70, 70, 75, 75, 70,
& 75, 75, 75, 70, 75, 70,
C
& 70, 70, 81, 81, 81, 81, 82, 81, 67, 74, 74,
& 67, 84, 82, 82, 82, 80, 76, 78, 80, 74, 74,
& 70, 68, 87, 74, 75, 75, 70, 70, 75, 75, 70,
& 75, 75, 75, 70, 75, 70,
C
& 70, 70, 80, 80, 80, 81, 80, 80, 67, 74, 74,
& 67, 84, 82, 82, 82, 80, 74, 76, 80, 74, 74,
& 70, 68, 87, 74, 75, 75, 70, 70, 75, 75, 70,
& 75, 75, 75, 70, 75, 70/
C----------
C WILLAMETTE FORM CLASS VALUES
C----------
DATA WILLFC/
& 74, 80, 69, 86, 69, 66, 75, 69, 56, 60, 75,
& 56, 70, 82, 82, 70, 75, 70, 70, 70, 65, 75,
& 56, 56, 68, 66, 66, 68, 70, 70, 75, 70, 70,
& 75, 68, 74, 70, 75, 74,
C
& 74, 80, 78, 86, 78, 72, 75, 78, 66, 60, 75,
& 64, 83, 82, 82, 83, 75, 75, 82, 73, 75, 75,
& 60, 66, 78, 72, 70, 75, 70, 70, 75, 70, 70,
& 75, 84, 74, 70, 75, 74,
C
& 74, 80, 78, 84, 78, 74, 75, 78, 68, 60, 75,
& 66, 83, 82, 82, 83, 75, 78, 81, 74, 72, 75,
& 60, 68, 76, 74, 70, 75, 70, 70, 75, 70, 70,
& 75, 82, 75, 70, 75, 74,
C
& 74, 80, 80, 84, 78, 74, 74, 80, 68, 60, 74,
& 66, 82, 82, 82, 80, 74, 79, 81, 75, 72, 74,
& 60, 68, 76, 74, 70, 75, 70, 70, 75, 70, 70,
& 75, 82, 75, 70, 75, 74,
C
& 74, 80, 80, 82, 78, 74, 74, 80, 68, 60, 74,
& 66, 82, 82, 82, 80, 74, 80, 80, 75, 72, 74,
& 60, 68, 76, 74, 74, 75, 70, 70, 75, 70, 70,
& 75, 82, 75, 70, 75, 74/
C
DATA BLM710/
& 76, 76, 82, 76, 80, 82, 76, 76, 70, 76, 76,
& 66, 76, 80, 80, 80, 80, 80, 80, 80, 72, 76,
& 76, 72, 82, 76, 82, 82, 76, 76, 76, 76, 76,
& 76, 76, 76, 76, 76, 76/
C
DATA BLM711/
& 70, 70, 74, 78, 77, 75, 78, 75, 67, 70, 70,
& 66, 74, 73, 68, 68, 70, 76, 76, 80, 76, 70,
& 72, 70, 78, 70, 72, 72, 72, 70, 72, 69, 70,
& 72, 72, 68, 66, 72, 70/
C----------
C FOR REGION 6 FORESTS, LOAD THE FORM CLASS USING TABLE VALUES.
C IF A FORM CLASS HAS BEEN ENTERED VIA KEYWORD, USE IT INSTEAD.
C----------
C BINARY SEARCH FOR CORRECT COEFFICIENTS
DONEFLAG = 0
LASTFLAG = 0
FIRST = 1
LAST = 39
DO 5, WHILE (DONEFLAG.EQ.0)
IF(FIRST.EQ.LAST) LASTFLAG = 1
!DETERMINE WHERE TO CHECK
HALF=((LAST-FIRST+1)/2) + FIRST
!FOUND THE COEFFECIENTS
IF(SPEC.EQ.FIAJSP(HALF))THEN
ISPC = HALF
DONEFLAG=1
!MOVE DOWN THE LIST
ELSEIF(SPEC.GT.FIAJSP(HALF))THEN
FIRST = HALF
!MOVE UP THE LIST
ELSEIF(SPEC.LT.FIAJSP(HALF))THEN
LAST = HALF - 1
ENDIF
!DID NOT FIND A MATCH
IF(LASTFLAG.EQ.1 .AND. DONEFLAG.EQ.0)THEN
FC = 80
RETURN
ENDIF
5 CONTINUE
C END BINARY SEARCH
200 IFCDBH = (D - 1.0) / 10.0 + 1.0
IF(IFCDBH .LT. 1) IFCDBH=1
IF(D.GT.40.9) IFCDBH=5
IF(IFOR.EQ.3) THEN
FC = GIFPFC(ISPC,IFCDBH)
ELSEIF(IFOR.EQ.5) THEN
FC = MBSNFC(ISPC,IFCDBH)
ELSEIF(IFOR.EQ.6) THEN
FC = MTHDFC(ISPC,IFCDBH)
ELSEIF(IFOR.EQ.15) THEN
FC = UMPQFC(ISPC,IFCDBH)
ELSEIF(IFOR.EQ.18) THEN
FC = WILLFC(ISPC,IFCDBH)
ELSEIF(IFOR.EQ.710) THEN
FC = BLM710(ISPC)
ELSE
FC = BLM711(ISPC)
ENDIF
C
RETURN
END