{"action":"opened","issue":{"url":"https://api.github.com/repos/dankelley/oce/issues/594","labels_url":"https://api.github.com/repos/dankelley/oce/issues/594/labels{/name}","comments_url":"https://api.github.com/repos/dankelley/oce/issues/594/comments","events_url":"https://api.github.com/repos/dankelley/oce/issues/594/events","html_url":"https://github.com/dankelley/oce/issues/594","id":59806223,"number":594,"title":"read.oce() error in array","user":{"login":"JeroenDeBisschop","id":11312035,"avatar_url":"https://avatars.githubusercontent.com/u/11312035?v=3","gravatar_id":"","url":"https://api.github.com/users/JeroenDeBisschop","html_url":"https://github.com/JeroenDeBisschop","followers_url":"https://api.github.com/users/JeroenDeBisschop/followers","following_url":"https://api.github.com/users/JeroenDeBisschop/following{/other_user}","gists_url":"https://api.github.com/users/JeroenDeBisschop/gists{/gist_id}","starred_url":"https://api.github.com/users/JeroenDeBisschop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JeroenDeBisschop/subscriptions","organizations_url":"https://api.github.com/users/JeroenDeBisschop/orgs","repos_url":"https://api.github.com/users/JeroenDeBisschop/repos","events_url":"https://api.github.com/users/JeroenDeBisschop/events{/privacy}","received_events_url":"https://api.github.com/users/JeroenDeBisschop/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-04T14:40:05Z","updated_at":"2015-03-04T14:40:05Z","closed_at":null,"body":"I am using the oce package for ADCP (ENS) files, but I keep getting this error when I try to read the files:\r\n\r\nread.oce(\"UW2015-02000_000000.ENS\")\r\nError in array(dim = c(profilesToRead, numberOfCells, numberOfBeams)) :\r\n  negative length vectors are not allowed\r\nIn addition: Warning messages:\r\n1: In scan(file, what = \"char\", sep = \"\\n\", n = 1, quiet = TRUE) :\r\n  embedded nul(s) found in input\r\n2: In scan(file, what = \"char\", sep = \"\\n\", skip = 1, n = 1, quiet = TRUE,  :\r\n  embedded nul(s) found in input\r\n3: In decodeHeaderRDI(buf, debug = debug - 1) :\r\n  unexpected length 53 of fixed-leader-data header; expecting 50 for 'surveyor' or 59 for 'workhorse'.\r\n\r\nCan this be a problem due to an outdated version of the package or compatibility issues with the ENS files? Thanks in advance!"}}