Skip to content

Commit

Permalink
improve heat index docs in README
Browse files Browse the repository at this point in the history
  • Loading branch information
cdzombak committed Jul 18, 2024
1 parent 39b467f commit b0565e7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
12 changes: 5 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,11 @@ These functions return [`ErrInputRange`](https://pkg.go.dev/github.com/cdzombak/

[`HeatIndexWarningF()`](https://pkg.go.dev/github.com/cdzombak/libwx#HeatIndexWarningF) and [`HeatIndexWarningC()`](https://pkg.go.dev/github.com/cdzombak/libwx#HeatIndexWarningC) provide a warning level based on the heat index. These warning levels are based on the NOAA's heat index table:

```go
HeatIndexWarningNone
HeatIndexWarningCaution
HeatIndexWarningExtremeCaution
HeatIndexWarningDanger
HeatIndexWarningExtremeDanger
```
- `HeatIndexWarningNone` indicates the heat index does not warrant elevated caution.
- `HeatIndexWarningCaution` indicates fatigue is possible with prolonged exposure and activity. Continuing activity could result in heat cramps.
- `HeatIndexWarningExtremeCaution` indicates heat cramps and heat exhaustion are possible. Continuing activity could result in heat stroke.
- `HeatIndexWarningDanger` indicates heat cramps and heat exhaustion are likely; heat stroke is probable with continued activity.
- `HeatIndexWarningExtremeDanger` indicates heat stroke is imminent.

### Distance types & conversions

Expand Down
2 changes: 1 addition & 1 deletion temperature_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const (
HeatIndexWarningCaution
// HeatIndexWarningExtremeCaution indicates heat cramps and heat exhaustion are possible. Continuing activity could result in heat stroke.
HeatIndexWarningExtremeCaution
// HeatIndexWarningDangerindicates heat cramps and heat exhaustion are likely; heat stroke is probable with continued activity.
// HeatIndexWarningDanger indicates heat cramps and heat exhaustion are likely; heat stroke is probable with continued activity.
HeatIndexWarningDanger
// HeatIndexWarningExtremeDanger indicates heat stroke is imminent.
HeatIndexWarningExtremeDanger
Expand Down

0 comments on commit b0565e7

Please sign in to comment.