Crates.io | nws-forecast-zones |
lib.rs | nws-forecast-zones |
version | 0.3.0 |
source | src |
created_at | 2022-05-14 23:26:30.591358 |
updated_at | 2022-05-24 02:40:00.629811 |
description | NWS public forecast zones |
homepage | |
repository | https://github.com/eminence/nws-data-parsing |
max_upload_size | |
id | 586808 |
size | 3,132,514 |
This crate contains information on the NWS Public Forecast Zones. A forecast zone is, to quote NWS:
The NWS issues forecasts and some watches and warnings for public zones which usually are the same as counties but in many cases are subsets of counties. Counties are subset into zones to allow for more accurate forecasts because of the differences in weather within a county due to such things as elevation or proximity to large bodies of water.
This crate has an enum that represents all 3882 zones. It can also parse a range of forecast zones, like this:
MAZ017>019-RIZ001>003
These ranges are very common in NWS text products. The parsed range can be used to test if a specific zone is part of the range or not.
The nws-forecast-zones library is licensed under the MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
This crate uses data published from NWS, but is otherwise unaffiliated with the National Weather Service, and is not an official NWS library.