Replies: 15 comments
-
The short and detailed forecast are derived from algorithms based on NWS directives. There is no simple list of output values, and the output may change without notice from quality improvements. Will you provide more details on the intended use of a list? Perhaps we can find a substitute or consider options for future enhancements. |
Beta Was this translation helpful? Give feedback.
-
I am trying to apply a certain icon based on the short forecast. I only have 10 basic icons and therefore need to match up all the different conditions to an appropriate icon. |
Beta Was this translation helpful? Give feedback.
-
A keyable forecast value is a common request, so I pinned the question. The short answer is that is not possible, but the team is aware of the popularity of this feature. I'll bring it up for discussion again to see if we can move it forward. |
Beta Was this translation helpful? Give feedback.
-
I've been slowly compiling a list of conditions in https://github.com/albertyw/codemancer/blob/master/codemancer/js/weather.js#L10-L42. Conditions are oftentimes preceded by a descriptor, which I strip out when converting it into an icon. |
Beta Was this translation helpful? Give feedback.
-
@scadergit I maybe missing this somewhere, but it would be nice to have quantitive values exposed to derive the different weather states instead of relying on string enums, especially when those values get concatenated into a long string in the short and long description. The only alternative at this moment is writing regex's to extract values or relying on descriptive string values like @albertyw . For instance, the documentation says when the precipitation probability is 20 percent, the expression of uncertainty is "slight chance" and equivalent areal modifier is "widely scattered." Is it not possible to expose / normalize those values where you'd have something like this at the forecast level...
That would make it a breeze with some simple equality checks. We can already do this for wind speed. Thanks! |
Beta Was this translation helpful? Give feedback.
-
@jwdinker The forecast endpoint was developed two years ago as MVP to replicate the JSON provided by MapClick on the current version of forecast. The raw gridpoint data was exposed knowing this limitation, and there are plans (towards your suggestion) to ehance the forecast endpoint once it gets priority again. |
Beta Was this translation helpful? Give feedback.
-
@scadergit Makes sense. I appreciate the explanation. |
Beta Was this translation helpful? Give feedback.
-
Just curious but why is a keyable forecast value not possible? |
Beta Was this translation helpful? Give feedback.
-
@MachineThing Sorry, I meant not possible yet. As noted just above, the forecast endpoint has not seen updates in some time, and will be improved once priority allows us to do so. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the quick reply! |
Beta Was this translation helpful? Give feedback.
-
The full list can be found here under “weather-summary” https://graphical.weather.gov/xml/xml_fields_icon_weather_conditions.php |
Beta Was this translation helpful? Give feedback.
-
Is there a list for all the possible conditions for the {
"coverage": "slight_chance",
"weather": "rain_showers",
"intensity": "light",
} |
Beta Was this translation helpful? Give feedback.
-
There is, actually. We've been working on updating the OpenAPI definition for API that will be included in our next release. This is the working schema for the weather layer values:
Note this is subject to change before release, as I might have missed something. |
Beta Was this translation helpful? Give feedback.
-
@StephenClouse This is great! Thank you. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Is there a list of all possible values for certain variables, such as the short forecast one from this endpoint?
https://api.weather.gov/gridpoints/TOP/31,80/forecast
Beta Was this translation helpful? Give feedback.
All reactions