-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathSF_corr.f
43 lines (39 loc) · 1.33 KB
/
SF_corr.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
!== last modified 09-14-2007
FUNCTION SF_CORR(JSP,geosub,TOTALH,HI,HJ)
C INTERNAL ROUTINES:
C COR_C2
C COR_OT
C COR_BH
C COR_WS
C
c given 2 heights (hi and hj), estimate the correlation of the
c errors in the corresponding dib's
character*2 geosub
INTEGER JSP
REAL TOTALH,HI,HJ,SF_CORR,COR_C2,COR_BH,COR_OT,COR_WS,cor_ak
if ( JSP.ge. 11 .and. jsp.le. 21 ) then
SF_CORR = COR_C2(JSP,geosub,TOTALH,HI, HJ)
RETURN
else if(JSP.eq.22) then
SF_CORR=COR_BH(TOTALH,HI,HJ)
RETURN
else if(JSP.GE.23 .AND. JSP.LE.30) then
SF_CORR=COR_OT(JSP,TOTALH,HI,HJ)
RETURN
else if(JSP.GE.31 .AND. JSP.LE.36) then
SF_CORR=COR_AK(JSP,TOTALH,HI,HJ)
RETURN
else if( JSP.eq.1) then
C SF_CORR=CORRH(HI,HJ)
RETURN
else if ( JSP.eq.2) then
C SF_CORR=CORRD(HI,HJ)
RETURN
else if (JSP.GE.3 .AND. JSP.LE.5) then
SF_CORR=COR_WS(JSP,TOTALH,HI,HJ)
RETURN
endif
c WRITE(*,11)
c11 format(' FUNCTION CORR GIVEN INVALID SPECIES. STOP')
RETURN
END