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

Guidance on implementing TAF/METAR as per IWXXM 3.0 #204

Closed nishithjain closed 4 years ago

nishithjain commented 4 years ago

Hello All,

I am currently working on a migration of TAF to IWXXM 3.0 and getting many errors when I do validation using the schematron and schema files of IWXXM 3.0 I am new to this domain and need help in understanding the error messages and fixing them.

Error messages got when validated against schematron: TAF.TAF-7: in a non-empty baseForecast wxxm:surfaceWind is mandatory

TAF.TAF-8: In a non-empty baseForecast when @cloudAndVisibilityOK is false prevailingVisibility and cloud are mandatory

MeteorologicalAerodromeForecast iwxxm:weather elements should be a member of http://codes.wmo.int/49-2/AerodromePresentOrForecastWeather

Also when I validate the TAF example file (https://schemas.wmo.int/iwxxm/3.0/examples/taf-A5-1.xml) against the schematron, I do get the following error... MeteorologicalAerodromeForecast iwxxm:weather elements should be a member of http://codes.wmo.int/49-2/AerodromePresentOrForecastWeather

blchoy commented 4 years ago

Thank you. Please provide feedback to or raise your question in Google group cbs-tt-avxml@wmo.int.

With regard to the validation error you have encountered with taf-A5-1.xml, I just double confirmed it works fine with my Oxygen XML Editor. May I ask before you run the schematron rules have you downloaded all the necessary RDF files from the WMO Codes Registry? There is a script in https://github.com/wmo-im/iwxxm/blob/master/bin/codeListsToSchematron.py which can help you download all the files in one go.

blchoy commented 4 years ago

Here nothing further so closing.