geocat.comp.meteorology._heat_index#
- geocat.comp.meteorology._heat_index(temperature, relative_humidity, alternate_coeffs=False)#
Compute the ‘heat index’ as calculated by the National Weather Service.
Internal function for heat_index
- Parameters:
temperature (
numpy.ndarray
) – temperature(s) in Fahrenheitrelative_humidity (
numpy.ndarray
,xarray.DataArray
,list
,float
) – relative humidity as a percentage. Must be the same shape astemperature
alternate_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 (
numpy.ndarray
) – Calculated heat index. Same shape astemperature