Gridpoints unit selection #388
-
Is your feature request related to a problem? Please describe.
It's also very clear from the values that the data was in °F in this case and converted to °C from the repeating decimal caused by the 5/9 conversion factor. Other paths further down the gridpoints chain allow the units to specified such as Describe the solution you'd like Describe alternatives you've considered Other comments |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Unfortunately this is not something we intend to change. The choice of SI units for the baseline data was a very deliberate design choice. We designed the API in part to serve as an interoperability service for data distribution to WMO nations, and so we limited its output to units defined in the WMO Codes Registry. This, as you might expect, limits itself to SI units along with a very narrow subset of non-SI units used in international aviation (such as knots and nautical miles). Non-WMO units are introduced only where there is literally no other alternative. The design was always to defer these conversions to the consuming client. In a few rare cases we do an internal conversion to a WMO-supported unit more convenient for end user consumption; for example, the MADIS service natively sends us observation temperatures in Kelvin and we convert these to degrees Celsius. In cases where units are natively US customary, such as the forecast grid data, these are converted to WMO-supported units for the reasons stated above. The units flag on the forecast endpoints is one of the rare exceptions. It affects only the human-readable textual forecast elements, and this exists only because there is no feasible way to export this functionality, as the textual output routines are currently proprietary to the National Weather Service. But this option does not alter the structured data for the reasons already stated. I hope this explains our stance and reasoning for the design, although I realize it's not the answer you're looking for. We still might rethink this at a later date, but it is a very low priority. The sourceUnit showing in the forecast grid output is a bug that we have fixed in an upcoming release; it is an option for our internal debugging that should not be appearing in production. |
Beta Was this translation helpful? Give feedback.
-
Excellent response. I completely understand. Can I recommend that when you're required to make these conversions to fit the WMO specification, such as the ones that I'm seeing on |
Beta Was this translation helpful? Give feedback.
Unfortunately this is not something we intend to change.
The choice of SI units for the baseline data was a very deliberate design choice. We designed the API in part to serve as an interoperability service for data distribution to WMO nations, and so we limited its output to units defined in the WMO Codes Registry. This, as you might expect, limits itself to SI units along with a very narrow subset of non-SI units used in international aviation (such as knots and nautical miles). Non-WMO units are introduced only where there is literally no other alternative. The design was always to defer these conversions to the consuming client.
In a few rare cases we do an internal conversion to a WM…