UPP (develop)
Loading...
Searching...
No Matches
MSFPS.f
Go to the documentation of this file.
1
16
17! - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
25
26 SUBROUTINE msfps(LAT,TRUELAT1,MSF)
27
28
29! Computes the map scale factor for a Polar Stereographic grid at a given
30! latitude.
31
32 IMPLICIT NONE
33
34! Define some private constants
35!
36 REAL, PARAMETER :: pi = 3.1415927
37 REAL, PARAMETER :: rad_per_deg = pi / 180.
38
39 REAL, INTENT(IN) :: lat ! latitude where msf is requested
40 REAL, INTENT(IN) :: truelat1
41 REAL, INTENT(OUT) :: msf
42
43 REAL :: psi1, psix, pole
44
45 IF (truelat1 >= 0.) THEN
46 psi1 = (90. - truelat1) * rad_per_deg
47 pole =90.
48 ELSE
49 psi1 = (90. + truelat1) * rad_per_deg
50 pole = -90.
51 ENDIF
52
53 psix = (pole - lat)*rad_per_deg
54 msf = ((1.+cos(psi1))/(1.0 + cos(psix)))
55 RETURN
56
57 END SUBROUTINE msfps
58
subroutine msfps(lat, truelat1, msf)
msfps() computes the map scale factor for a polar stereographic grid at a give latitude.
Definition MSFPS.f:27