{"action":"created","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.adp.rdi() \"array\" error due to negative `numberOfCells`","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":[{"url":"https://api.github.com/repos/dankelley/oce/labels/adp","name":"adp","color":"eb6420"},{"url":"https://api.github.com/repos/dankelley/oce/labels/OK?","name":"OK?","color":"f7c6c7"}],"state":"open","locked":false,"assignee":{"login":"dankelley","id":99469,"avatar_url":"https://avatars.githubusercontent.com/u/99469?v=3","gravatar_id":"","url":"https://api.github.com/users/dankelley","html_url":"https://github.com/dankelley","followers_url":"https://api.github.com/users/dankelley/followers","following_url":"https://api.github.com/users/dankelley/following{/other_user}","gists_url":"https://api.github.com/users/dankelley/gists{/gist_id}","starred_url":"https://api.github.com/users/dankelley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dankelley/subscriptions","organizations_url":"https://api.github.com/users/dankelley/orgs","repos_url":"https://api.github.com/users/dankelley/repos","events_url":"https://api.github.com/users/dankelley/events{/privacy}","received_events_url":"https://api.github.com/users/dankelley/received_events","type":"User","site_admin":false},"milestone":null,"comments":8,"created_at":"2015-03-04T14:40:05Z","updated_at":"2015-03-13T12:11:20Z","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\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!"},"comment":{"url":"https://api.github.com/repos/dankelley/oce/issues/comments/78942872","html_url":"https://github.com/dankelley/oce/issues/594#issuecomment-78942872","issue_url":"https://api.github.com/repos/dankelley/oce/issues/594","id":78942872,"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},"created_at":"2015-03-13T12:11:20Z","updated_at":"2015-03-13T12:11:20Z","body":"After building the package from source as you instructed, part of the problem seems to be resolved but I still get this error:\r\n\r\ndata<-read.adp.rdi(\"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 message:\r\nIn 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"}}