SABER
tools_const.F90
Go to the documentation of this file.
1 !----------------------------------------------------------------------
2 ! Module: tools_const
3 !> Define usual constants and missing values
4 ! Author: Benjamin Menetrier
5 ! Licensing: this code is distributed under the CeCILL-C license
6 ! Copyright © 2015-... UCAR, CERFACS, METEO-FRANCE and IRIT
7 !----------------------------------------------------------------------
8 module tools_const
9 
10 use tools_kinds, only: kind_real
11 
12 implicit none
13 
14 real(kind_real),parameter :: pi = acos(-1.0_kind_real) ! Pi
15 real(kind_real),parameter :: deg2rad = pi/180.0_kind_real ! Degree to radian
16 real(kind_real),parameter :: rad2deg = 180.0_kind_real/pi ! Radian to degree
17 real(kind_real),parameter :: req = 6371229.0_kind_real ! Earth radius (in m)
18 real(kind_real),parameter :: reqkm = 6371.229_kind_real ! Earth radius (in km)
19 real(kind_real),parameter :: ps = 101325.0_kind_real ! Reference surface pressure (in Pa)
20 
21 private
22 public :: pi,deg2rad,rad2deg,req,reqkm,ps
23 
24 end module tools_const
tools_const
Define usual constants and missing values.
Definition: tools_const.F90:8
tools_kinds
Kinds definition.
Definition: tools_kinds.F90:8
tools_const::ps
real(kind_real), parameter, public ps
Definition: tools_const.F90:19
tools_const::req
real(kind_real), parameter, public req
Definition: tools_const.F90:17
tools_const::rad2deg
real(kind_real), parameter, public rad2deg
Definition: tools_const.F90:16
tools_const::deg2rad
real(kind_real), parameter, public deg2rad
Definition: tools_const.F90:15
tools_const::reqkm
real(kind_real), parameter, public reqkm
Definition: tools_const.F90:18
tools_const::pi
real(kind_real), parameter, public pi
Definition: tools_const.F90:14
tools_kinds::kind_real
integer, parameter, public kind_real
Definition: tools_kinds.F90:18