{"action":"created","issue":{"url":"https://api.github.com/repos/ARPA-SIMC/dballe/issues/75","repository_url":"https://api.github.com/repos/ARPA-SIMC/dballe","labels_url":"https://api.github.com/repos/ARPA-SIMC/dballe/issues/75/labels{/name}","comments_url":"https://api.github.com/repos/ARPA-SIMC/dballe/issues/75/comments","events_url":"https://api.github.com/repos/ARPA-SIMC/dballe/issues/75/events","html_url":"https://github.com/ARPA-SIMC/dballe/issues/75","id":192628348,"number":75,"title":"setting setcontextana() and varlist do not get constant station data","user":{"login":"pat1","id":3214854,"avatar_url":"https://avatars.githubusercontent.com/u/3214854?v=3","gravatar_id":"","url":"https://api.github.com/users/pat1","html_url":"https://github.com/pat1","followers_url":"https://api.github.com/users/pat1/followers","following_url":"https://api.github.com/users/pat1/following{/other_user}","gists_url":"https://api.github.com/users/pat1/gists{/gist_id}","starred_url":"https://api.github.com/users/pat1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pat1/subscriptions","organizations_url":"https://api.github.com/users/pat1/orgs","repos_url":"https://api.github.com/users/pat1/repos","events_url":"https://api.github.com/users/pat1/events{/privacy}","received_events_url":"https://api.github.com/users/pat1/received_events","type":"User","site_admin":false},"labels":[{"id":244486572,"url":"https://api.github.com/repos/ARPA-SIMC/dballe/labels/bug","name":"bug","color":"e99695","default":true},{"id":369777931,"url":"https://api.github.com/repos/ARPA-SIMC/dballe/labels/devel%20blocking","name":"devel blocking","color":"fbca04","default":false}],"state":"closed","locked":false,"assignee":{"login":"spanezz","id":1324501,"avatar_url":"https://avatars.githubusercontent.com/u/1324501?v=3","gravatar_id":"","url":"https://api.github.com/users/spanezz","html_url":"https://github.com/spanezz","followers_url":"https://api.github.com/users/spanezz/followers","following_url":"https://api.github.com/users/spanezz/following{/other_user}","gists_url":"https://api.github.com/users/spanezz/gists{/gist_id}","starred_url":"https://api.github.com/users/spanezz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spanezz/subscriptions","organizations_url":"https://api.github.com/users/spanezz/orgs","repos_url":"https://api.github.com/users/spanezz/repos","events_url":"https://api.github.com/users/spanezz/events{/privacy}","received_events_url":"https://api.github.com/users/spanezz/received_events","type":"User","site_admin":false},"assignees":[{"login":"spanezz","id":1324501,"avatar_url":"https://avatars.githubusercontent.com/u/1324501?v=3","gravatar_id":"","url":"https://api.github.com/users/spanezz","html_url":"https://github.com/spanezz","followers_url":"https://api.github.com/users/spanezz/followers","following_url":"https://api.github.com/users/spanezz/following{/other_user}","gists_url":"https://api.github.com/users/spanezz/gists{/gist_id}","starred_url":"https://api.github.com/users/spanezz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spanezz/subscriptions","organizations_url":"https://api.github.com/users/spanezz/orgs","repos_url":"https://api.github.com/users/spanezz/repos","events_url":"https://api.github.com/users/spanezz/events{/privacy}","received_events_url":"https://api.github.com/users/spanezz/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2016-11-30T17:26:23Z","updated_at":"2016-12-07T17:24:30Z","closed_at":"2016-12-07T17:24:30Z","body":"loading file in memdb and try to get constant station data with filters do not return data.\r\nThis is the trace:\r\n\r\n\r\n```\r\n// ** Execution begins **\r\nauto_ptr<DB> db0(DB::connect_from_url(\"mem:\"));\r\nDbAPI dbapi0(*db0, \"write\", \"write\", \"write\");\r\ndbapi0.messages_open_input(\"vol7d_dballe_test2.bufr\", \"r\", BUFR, true);\r\nires = dbapi0.messages_read_next();\r\nwassert(actual(ires) == 1);\r\nires = dbapi0.messages_read_next();\r\nwassert(actual(ires) == 1);\r\nires = dbapi0.messages_read_next();\r\nwassert(actual(ires) == 1);\r\nires = dbapi0.messages_read_next();\r\nwassert(actual(ires) == 1);\r\nires = dbapi0.messages_read_next();\r\nwassert(actual(ires) == 1);\r\nires = dbapi0.messages_read_next();\r\nwassert(actual(ires) == 0);\r\ndbapi0.unsetall();\r\ndbapi0.unset(\"lat\");\r\ndbapi0.unset(\"lon\");\r\ndbapi0.unset(\"ident\");\r\ndbapi0.unset(\"mobile\");\r\ndbapi0.setc(\"rep_memo\", \"temp\");\r\ndbapi0.unset(\"var\");\r\ndbapi0.unset(\"limit\");\r\ndbapi0.unset(\"priority\");\r\ndbapi0.unset(\"priomin\");\r\ndbapi0.unset(\"priomax\");\r\ndbapi0.unset(\"latmin\");\r\ndbapi0.unset(\"lonmin\");\r\ndbapi0.unset(\"latmax\");\r\ndbapi0.unset(\"lonmax\");\r\ndbapi0.unset(\"ana_filter\");\r\ndbapi0.unset(\"data_filter\");\r\ndbapi0.unset(\"attr_filter\");\r\ndbapi0.unset(\"query\");\r\ndbapi0.setcontextana();\r\ndbapi0.setc(\"varlist\", \"B07001\");\r\ndbapi0.unset(\"*varlist\");\r\nires = dbapi0.voglioquesto();\r\nwassert(actual(ires) == 0);\r\n```\r\n\r\nThis is the head of dump:\r\n```\r\n#0 BUFR message: 1000 bytes, origin 255:255, category 0 2:255:101, bufr edition 4, tables 13:0, subsets 1, values: 375/584:\r\nSubset 0:\r\n001001 WMO BLOCK NUMBER(NUMERIC): 16\r\n001002 WMO STATION NUMBER(NUMERIC): 144\r\n002011 RADIOSONDE TYPE(CODE TABLE): (undef)\r\n002012 RADIOSONDE COMPUTATIONAL METHOD(CODE TABLE): (undef)\r\n004001 YEAR(YEAR): 2006\r\n004002 MONTH(MONTH): 7\r\n004003 DAY(DAY): 10\r\n004004 HOUR(HOUR): 12\r\n004005 MINUTE(MINUTE): 0\r\n005001 LATITUDE (HIGH ACCURACY)(DEGREE): 44.65000\r\n006001 LONGITUDE (HIGH ACCURACY)(DEGREE): 11.61667\r\n007001 HEIGHT OF STATION (SEE NOTE 1)(M): 10\r\n020010 CLOUD COVER (TOTAL)(%): (undef)\r\n008002 VERTICAL SIGNIFICANCE (SURFACE OBSERVATIONS)(CODE TABLE): (undef)\r\n020011 CLOUD AMOUNT(CODE TABLE): (undef)\r\n020013 HEIGHT OF BASE OF CLOUD(M): (undef)\r\n020012 CLOUD TYPE(CODE TABLE): (undef)\r\n020012 CLOUD TYPE(CODE TABLE): (undef)\r\n020012 CLOUD TYPE(CODE TABLE): (undef)\r\n031001 DELAYED DESCRIPTOR REPLICATION FACTOR(NUMERIC): 80\r\n007004 PRESSURE(PA): 102100\r\n008001 VERTICAL SOUNDING SIGNIFICANCE(FLAG TABLE): 0\r\n010003 GEOPOTENTIAL(M**2/S**2): (undef)\r\n012001 TEMPERATURE/DRY-BULB TEMPERATURE(K): 304.2\r\n012003 DEW-POINT TEMPERATURE(K): 291.2\r\n011001 WIND DIRECTION(DEGREE TRUE): 105\r\n011002 WIND SPEED(M/S): 1.5\r\n007004 PRESSURE(PA): 100000\r\n008001 VERTICAL SOUNDING SIGNIFICANCE(FLAG TABLE): 0\r\n010003 GEOPOTENTIAL(M**2/S**2): 1900\r\n012001 TEMPERATURE/DRY-BULB TEMPERATURE(K): 301.6\r\n012003 DEW-POINT TEMPERATURE(K): 289.6\r\n011001 WIND DIRECTION(DEGREE TRUE): 35\r\n011002 WIND SPEED(M/S): 2.6\r\n007004 PRESSURE(PA): 98600\r\n008001 VERTICAL SOUNDING SIGNIFICANCE(FLAG TABLE): 0\r\n010003 GEOPOTENTIAL(M**2/S**2): (undef)\r\n012001 TEMPERATURE/DRY-BULB TEMPERATURE(K): 299.8\r\n012003 DEW-POINT TEMPERATURE(K): 288.8\r\n011001 WIND DIRECTION(DEGREE TRUE): (undef)\r\n```\r\n[vol7d_dballe_test2.bufr.gz](https://github.com/ARPA-SIMC/dballe/files/622584/vol7d_dballe_test2.bufr.gz)\r\n"},"comment":{"url":"https://api.github.com/repos/ARPA-SIMC/dballe/issues/comments/265512371","html_url":"https://github.com/ARPA-SIMC/dballe/issues/75#issuecomment-265512371","issue_url":"https://api.github.com/repos/ARPA-SIMC/dballe/issues/75","id":265512371,"user":{"login":"spanezz","id":1324501,"avatar_url":"https://avatars.githubusercontent.com/u/1324501?v=3","gravatar_id":"","url":"https://api.github.com/users/spanezz","html_url":"https://github.com/spanezz","followers_url":"https://api.github.com/users/spanezz/followers","following_url":"https://api.github.com/users/spanezz/following{/other_user}","gists_url":"https://api.github.com/users/spanezz/gists{/gist_id}","starred_url":"https://api.github.com/users/spanezz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spanezz/subscriptions","organizations_url":"https://api.github.com/users/spanezz/orgs","repos_url":"https://api.github.com/users/spanezz/repos","events_url":"https://api.github.com/users/spanezz/events{/privacy}","received_events_url":"https://api.github.com/users/spanezz/received_events","type":"User","site_admin":false},"created_at":"2016-12-07T17:24:30Z","updated_at":"2016-12-07T17:24:30Z","body":"The height for TEMP messages is imported as B07030 instead of B07001.\r\n\r\nYou can check what would get imported by using `dbamsg dump --interpreted`:\r\n```\r\n$ dbamsg dump --interpreted vol7d_dballe_test2.bufr |grep HEIGHT\r\n007030 HEIGHT OF STATION GROUND ABOVE MEAN SEA LEVEL (SEE NOTE 3)(M): 10.0\r\n007030 HEIGHT OF STATION GROUND ABOVE MEAN SEA LEVEL (SEE NOTE 3)(M): 10.0\r\n007030 HEIGHT OF STATION GROUND ABOVE MEAN SEA LEVEL (SEE NOTE 3)(M): 10.0\r\n007030 HEIGHT OF STATION GROUND ABOVE MEAN SEA LEVEL (SEE NOTE 3)(M): 10.0\r\n007030 HEIGHT OF STATION GROUND ABOVE MEAN SEA LEVEL (SEE NOTE 3)(M): 10.0\r\n```"}}
{"actor":{"display_login":"spanezz"}}