
Specific Humidity from Dew Point Temperature
hus_from_td.Rd
Specific Humidity from Dew Point Temperature
Note
#' air pressure variable should match the td correctly. If td is a three dimensional array on pressure levels [lon, lat, plev], pa values should the same on each [lon, lat] slice. See convert_plev_to_array.
In case you are using model levels, estimate pressure array beforehand.
Examples
data("ERA5_sfc")
t2d <- ERA5_sfc$t2d
sp <- ERA5_sfc$sp
res <- hus_from_td(t2d, sp)