chgres_cube
1.12.0
|
Utilities for use when reading grib2 data. More...
Public Member Functions | |
subroutine, public | convert_omega (omega, p, t, q, clb, cub) |
Convert omega to vertical velocity. More... | |
elemental real function, public | fpvsnew (t) |
Compute saturation vapor pressure. More... | |
subroutine, public | rh2spfh (rh_sphum, p, t) |
Convert relative humidity to specific humidity. More... | |
subroutine, public | rh2spfh_gfs (rh_sphum, p, t) |
Convert relative humidity to specific humidity (GFS formula) Calculation of saturation water vapor pressure is based on GFS function fvpsnew (Phillips 1982). More... | |
Utilities for use when reading grib2 data.
This module contains routines to:
George Gayno NCEP/EMC
Definition at line 12 of file grib2_util.F90.
subroutine, public grib2_util::convert_omega | ( | real(esmf_kind_r8), dimension(:,:,:), pointer | omega, |
real(esmf_kind_r8), dimension(:,:,:), pointer | p, | ||
real(esmf_kind_r8), dimension(:,:,:), pointer | t, | ||
real(esmf_kind_r8), dimension(:,:,:), pointer | q, | ||
integer, dimension(3) | clb, | ||
integer, dimension(3) | cub | ||
) |
Convert omega to vertical velocity.
[in,out] | omega | on input, vertical velocity on output |
[in] | p | pressure |
[in] | t | temperature |
[in] | q | specific humidity |
[in] | clb | lower bounds of indices processed by this mpi task |
[in] | cub | upper bounds of indices processed by this mpi task |
Definition at line 217 of file grib2_util.F90.
Referenced by atm_input_data::read_input_atm_grib2_file().
elemental real function, public grib2_util::fpvsnew | ( | real(esmf_kind_r8), intent(in) | t | ) |
Compute saturation vapor pressure.
[in] | t | temperature in Kelvin |
Definition at line 135 of file grib2_util.F90.
Referenced by rh2spfh_gfs().
subroutine, public grib2_util::rh2spfh | ( | real(esmf_kind_r4), dimension(i_input,j_input), intent(inout) | rh_sphum, |
real(esmf_kind_r8), intent(in) | p, | ||
real(esmf_kind_r8), dimension(i_input,j_input), intent(in) | t | ||
) |
Convert relative humidity to specific humidity.
Calculation of saturation water vapor pressure is based on Brock and Richardson 2001 (Meterological Measurement Systems, p. 86, equation 5.1)
[in,out] | rh_sphum | rel humidity (%) on input. spec hum (kg/kg) on output. |
[in] | p | pressure in Pa |
[in] | t | temperature |
Definition at line 37 of file grib2_util.F90.
Referenced by atm_input_data::read_input_atm_grib2_file().
subroutine, public grib2_util::rh2spfh_gfs | ( | real(esmf_kind_r4), dimension(i_input,j_input), intent(inout) | rh_sphum, |
real(esmf_kind_r8), intent(in) | p, | ||
real(esmf_kind_r8), dimension(i_input,j_input), intent(in) | t | ||
) |
Convert relative humidity to specific humidity (GFS formula) Calculation of saturation water vapor pressure is based on GFS function fvpsnew (Phillips 1982).
The model does account for the variation of the latent heat of condensation with temperature. A linear interpolation is done between values in a calculated lookup table. Ice and water are considered separately. This option provides a consistent conversion for GFS grib2 data to be ingested.
[in,out] | rh_sphum | rel humidity on input. spec hum on output. |
[in] | p | pressure in Pa |
[in] | t | temperature |
Definition at line 80 of file grib2_util.F90.
References fpvsnew().
Referenced by atm_input_data::read_input_atm_grib2_file().