wmo-im / iwxxm

XML schema and Schematron for aviation weather data exchange
https://old.wmo.int/wiswiki/tiki-index.php%3Fpage=TT-AvXML
48 stars 22 forks source link

extremeClockwiseWindDirection/extremeCounterClockwiseWindDirection ambiguity #123

Closed braeckel closed 5 years ago

braeckel commented 6 years ago

This is a formalization of an issue reported by Kyran Dollard earlier this year. Kyran's original comments follow.

========

The IWXXM METAR elements pertaining to variation in wind direction (included if criteria are met):- <iwxxm:extremeClockwiseWindDirection ...> <iwxxm:extremeCounterClockwiseWindDirection ...>

have the potential to be misinterpreted - when doing a conversion from TAC and therefore possibly in a downstream application?

I say this because: (a) I have already seen a 'ROC translation service' and a 'commercial demo converter' do the opposite to each other during a conversion process, e.g. TAC has: 11005KT 070V130 etc and e.g.

ROC translation service produces this in the XML:

<iwxxm:extremeClockwiseWindDirection uom="deg">130.0</iwxxm:extremeClockwiseWindDirection>
<iwxxm:extremeCounterClockwiseWindDirection uom="deg">70.0</iwxxm:extremeCounterClockwiseWindDirection>

but Commercial demo converter s/w produces:

<iwxxm:extremeClockwiseWindDirection uom="deg">70</iwxxm:extremeClockwiseWindDirection>
<iwxxm:extremeCounterClockwiseWindDirection uom="deg">130</iwxxm:extremeCounterClockwiseWindDirection>

(b) the WMO 306 FM-15 definition for dndndnVdxdxdx (15.5.3) says " the observed two extreme directions between which the wind has varied shall be given for dndndnVdxdxdx in clockwise order" ...but the IWXXM 2.1 schema elements and their definitions would seem to imply the opposite sequence order(going by the ROC example)?

(c) finally a human (even an application programmer!) might be inclined to view the variation simply like this:

dndndnVdxdxdx e.g. 070V130 in METAR

=> Wind dir varying between these 2 directions… 70 degs and 'Clockwise'? from this value? ? until 130 degs -i.e. 'CounterClockwise' value? =

Basically, I wonder if the IWXXM schema definitions for these elements could be improved OR the sequence order changed so as to avoid any such misinterpretation?

========

Two fixes may be appropriate:

  1. Reverse the current order of extremeClockwiseWindDirection and extremeCounterClockwiseWindDirection
  2. Update the schema documentation on one or both of these elements to clarify the appropriate usage

There does seem room for ambiguity with these two elements. I prefer option 2 as it would be a straightforward change with no significant backwards compatibility implications.

blchoy commented 6 years ago

I am in favour of (2) as the ordering of XML elements does not necessarily align with the ordering of components in a TAC message but the entity/concept they represents. Perhaps something to add in the TAC-to-XML guidance too?

blchoy commented 5 years ago

This is fixed in 3.0.0RC2.