FV3 Bundle
gnssro_mod_constants.F90
Go to the documentation of this file.
1 !==========================================================================
3 !==========================================================================
4 
5 use kinds
6 implicit none
7 public :: gnssro_ref_constants
8 real(kind_real), parameter, public :: zero = 0.0_kind_real
9 real(kind_real), parameter, public :: one = 1.0_kind_real
10 real(kind_real), parameter, public :: two = 2.0_kind_real
11 real(kind_real), parameter, public :: half = 0.5_kind_real
12 real(kind_real), parameter, public :: rad2deg = 57.29577954572 ! copy from fv3jedi_constants.f90
13 real(kind_real), parameter, public :: deg2rad = 0.01745329251
14 real(kind_real), parameter, public :: grav = 9.80665e+0_kind_real
15 real(kind_real), parameter, public :: t0c = 2.7315e+2_kind_real ! temperature at zero celsius (K)
16 real(kind_real), parameter, public :: rd = 2.8705e2_kind_real
17 real(kind_real), parameter, public :: rv = 4.6150e2_kind_real
18 real(kind_real), parameter, public :: rd_over_rv = rd/rv
19 real(kind_real), parameter, public :: rv_over_rd = rv/rd
20 real(kind_real), parameter, public :: rd_over_g = rd/grav
21 real(kind_real), public :: n_a, n_b,n_c
22 
23 contains
24 subroutine gnssro_ref_constants(use_compress)
25 implicit none
26 logical,intent(in) :: use_compress
27 ! cucurull 2010, Healy 2011
28 if (use_compress) then
29  ! Constants for gpsro refractivity (Rueger 2002)
30  n_a = 77.6890_kind_real
31  n_b = 3.75463e5_kind_real
32  n_c = 71.2952_kind_real
33 else
34  ! Constants for gpsro refractivity (Bevis et al 1994)
35  n_a = 77.60_kind_real
36  n_b = 3.739e5_kind_real
37  n_c = 70.4_kind_real
38 endif
39 
40 n_c = n_c - n_a
41 return
42 
43 end subroutine gnssro_ref_constants
44 
45 end module gnssro_mod_constants
46 
real(fp), parameter, public zero
real(kind_real), parameter, public rv
real(kind_real), parameter, public half
real(kind_real), parameter, public rd
real(kind_real), parameter, public rad2deg
real(kind_real), parameter, public deg2rad
real(kind_real), parameter, public rd_over_rv
real(kind_real), parameter, public rv_over_rd
real(fp), parameter, public one
real(kind_real), public n_c
subroutine, public gnssro_ref_constants(use_compress)
real(fp), parameter, public two
real(kind_real), parameter, public t0c
real, parameter, public grav
Acceleration due to gravity [m/s^2].
Definition: constants.F90:76
real(kind_real), public n_b
real(kind_real), parameter, public rd_over_g
real(kind_real), public n_a