{"action":"opened","issue":{"url":"https://api.github.com/repos/SagemCassiopee/php-metar-decoder/issues/11","labels_url":"https://api.github.com/repos/SagemCassiopee/php-metar-decoder/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/SagemCassiopee/php-metar-decoder/issues/11/comments","events_url":"https://api.github.com/repos/SagemCassiopee/php-metar-decoder/issues/11/events","html_url":"https://github.com/SagemCassiopee/php-metar-decoder/issues/11","id":128232531,"number":11,"title":"Improved handling of items after a parsing error","user":{"login":"gpdawson","id":47431,"avatar_url":"https://avatars.githubusercontent.com/u/47431?v=3","gravatar_id":"","url":"https://api.github.com/users/gpdawson","html_url":"https://github.com/gpdawson","followers_url":"https://api.github.com/users/gpdawson/followers","following_url":"https://api.github.com/users/gpdawson/following{/other_user}","gists_url":"https://api.github.com/users/gpdawson/gists{/gist_id}","starred_url":"https://api.github.com/users/gpdawson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gpdawson/subscriptions","organizations_url":"https://api.github.com/users/gpdawson/orgs","repos_url":"https://api.github.com/users/gpdawson/repos","events_url":"https://api.github.com/users/gpdawson/events{/privacy}","received_events_url":"https://api.github.com/users/gpdawson/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-01-22T19:59:20Z","updated_at":"2016-01-22T19:59:20Z","closed_at":null,"body":"\"KQER 162300Z AUTO 19001KT 8000 /CLR M05/M08 / RMK A02 TSNO\"\r\n\r\nThe above metar code understandably fails on the cloud cover item due to spurious / as well as missing pressure data, but then also fails to recognise the temperature data, even though that element is formatted correctly, and is easily decoded manually by a human reader. \r\n\r\nIt would be nice if a failure to find a correctly formatted field didn't prevent later items being correctly parsed e.g. resume processing immediately after the first failed group rather than assuming that failure.\r\n\r\nThe online parser returns the following data for this metar code. Also I'm not sure why the decoding_exceptions array is empty despite the fact that the invalid format messages are displayed.\r\n\r\nInvalid format:\r\nBad format for clouds information, on chunk \"/CLR M05/M08 / RMK A02 TSNO\"\r\nAtmospheric pressure not found, on chunk \"/CLR M05/M08 / RMK A02 TSNO\"\r\n\r\n object(DecodedMetar) \r\n[\r\n    \"raw_metar\"             => string(59) \"KQER 162300Z AUTO 19001KT 8000 /CLR M05/M08 / RMK A02 TSNO \"\r\n    \"decoding_exceptions\"   => array(0)\r\n    \"type\"                  => NULL\r\n    \"icao\"                  => string(4) \"KQER\"\r\n    \"day\"                   => int(16)\r\n    \"time\"                  => string(9) \"23:00 UTC\"\r\n    \"status\"                => string(4) \"AUTO\"\r\n    \"surface_wind\"          =>  object(SurfaceWind) \r\n        [\r\n            \"SurfaceWind:mean_direction\"       =>  object(Value) \r\n            \"SurfaceWind:variable_direction\"   => bool(false)\r\n            \"SurfaceWind:mean_speed\"           =>  object(Value) \r\n            \"SurfaceWind:speed_variations\"     => NULL\r\n            \"SurfaceWind:direction_variations\" => NULL\r\n        ]\r\n    \"visibility\"            =>  object(Visibility) \r\n        [\r\n            \"Visibility:visibility\"        =>  object(Value) \r\n            \"Visibility:minimum\"           => NULL\r\n            \"Visibility:minimum_direction\" => NULL\r\n        ]\r\n    \"cavok\"                 => bool(false)\r\n    \"runways_visual_range\"  => NULL\r\n    \"present_weather\"       => array(0)\r\n    \"clouds\"                => NULL\r\n    \"air_temperature\"       => NULL\r\n    \"dew_point_temperature\" => NULL\r\n    \"pressure\"              => NULL\r\n    \"recent_weather\"        => NULL\r\n    \"windshear_all_runways\" => NULL\r\n    \"windshear_runways\"     => NULL\r\n]"}}