-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ad8a3e3
commit 1e40124
Showing
1 changed file
with
18 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,24 @@ | ||
## Reference for conversion to specific humidity | ||
|
||
Td=d2m-273.15; % K to deg C | ||
|
||
p=msl./100; % Pa to mb | ||
|
||
e = 6.112.*exp((17.67.*Td)./(Td + 243.5)); | ||
|
||
q = (0.622 .* e)./(p - (0.378 .* e)); | ||
|
||
% https://www.eol.ucar.edu/projects/ceop/dm/documents/refdata_report/eqns.html | ||
% (Bolton 1980) | ||
% where: | ||
% e = vapor pressure in mb; | ||
% Td = dew point in deg C; | ||
% p = surface pressure in mb; | ||
% q = specific humidity in kg/kg. | ||
% | ||
% (Note the final specific humidity units are in g/kg = (kg/kg)*1000.0) | ||
https://www.eol.ucar.edu/projects/ceop/dm/documents/refdata_report/eqns.html | ||
|
||
(Bolton 1980) | ||
where: | ||
|
||
e = vapor pressure in mb; | ||
|
||
Td = dew point in deg C; | ||
|
||
p = surface pressure in mb; | ||
|
||
q = specific humidity in kg/kg. | ||
|
||
(Note the final specific humidity units are in g/kg = (kg/kg)*1000.0) |