Published package / CLIR
us.nws.heat_index
v0.1.0Индекс жары NWS: формула Ротфуса (фрагмент) и классификация с числовыми границами по странице офиса NWS Amarillo
A package can be printed as a standalone module in a general-purpose language that answers without the rules engine: an answer and its status, with no proof, hashes or canonical document. Everything on this page comes from the generation plan built with the index; the gallery computes nothing of its own.
Generation plan
The plan builds: the package can be printed as a module.
- plan format
- law-backend-plan/0.7
- capabilities
- base layer only
Checked against package scenarios
Not checked: the package scenarios have not been run against generated modules. A plan that builds does not yet show that the answers coincide.
Target languages
bslcsdarterlexgojavaktluaphppyrbrsscalaswiftts
./law dev backend corpus/clir/us-nws-heat-index.lawir.json --target ts --target py --target go --out DIR
Module interface
Questions are public relations with a producing rule; inputs are the facts a question reads. Function names follow the language: ask_… in Python, ask.… in TypeScript, Ask… in Go.
Questions · 5
| Name | Parameters | Meaning | Reads | Sources |
|---|---|---|---|---|
| class_from_f | enum, dec | class open upwards from this heat index value | no inputs | |
| class_range_f | enum, dec, dec | inclusive heat index range of a class, degrees Fahrenheit | no inputs | |
| dangerous_heat_disorders_from_f | dec | heat indices meeting or exceeding this value can lead to dangerous heat disorders with prolonged exposure or physical activity | no inputs | |
| full_sunshine_adds_up_to_f | dec | exposure to direct sunlight can increase the heat index by up to this many degrees | no inputs | |
| index_applies_to_shade | the heat index values are for shady locations | no inputs |