This MODULE contains two SUBROUTINEs that calculate the specific humidity at saturation as a function of air pressure and temperature.
The two SUBROUTINEs differ only in that qsatfjh operates on an array whereas qsatfjh2 operates on single element REALs.
Warning: qsatfjh2 is redundant and the code should be changed to only use qsatfjh.
This SUBROUTINE evaluates the specific humidity (water vapour mixing ratio) at saturation (in kgkg), at a given air temperature (in C) and air pressure (in hPa) for an array of size mp.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | mp |
size of array of land points (-) |
||
real, | intent(out) | :: | var(mp) |
specific humidity at saturation (kgkg) |
||
real, | intent(in) | :: | CRMH2O | |||
real, | intent(in) | :: | CRMAIR | |||
real, | intent(in) | :: | CTETENA | |||
real, | intent(in) | :: | CTETENB | |||
real, | intent(in) | :: | CTETENC | |||
real, | intent(in) | :: | tair(mp) |
air temperature (C) |
||
real, | intent(in) | :: | pmb(mp) |
This SUBROUTINE evaluates the specific humidity (water vapour mixing ratio) at saturation (in kgkg), at a given air temperature (in C) and air pressure (in hPa).
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real, | intent(out) | :: | var |
specific humidity at saturation (kgkg) |
||
real, | intent(in) | :: | CRMH2O | |||
real, | intent(in) | :: | CRMAIR | |||
real, | intent(in) | :: | CTETENA | |||
real, | intent(in) | :: | CTETENB | |||
real, | intent(in) | :: | CTETENC | |||
real, | intent(in) | :: | tair |
air temperature (C), |
||
real, | intent(in) | :: | pmb |
surface air pressure (hPa) |