geocat.comp.meteorology._xheat_index
geocat.comp.meteorology._xheat_index#
- geocat.comp.meteorology._xheat_index(temperature, relative_humidity, alternate_coeffs=False)#
Compute the ‘heat index’ as calculated by the National Weather Service.
Internal function for heat_index for dask
- Parameters
temperature (
xarray.DataArray
) – temperature(s) in Fahrenheitrelative_humidity (
xarray.DataArray
) – relative humidity as a percentage. Must be the same shape as temperaturealternate_coeffs (
bool
, optional) – flag to use alternate set of coefficients appropriate for temperatures from 70F to 115F and humidities between 0% and 80%
- Returns
heatindex (
xarray.DataArray
) – Calculated heat index. Same shape as temperatureeqtype (
int
) – version of equations used, for xarray attrs output