{"action":"closed","issue":{"url":"https://api.github.com/repos/metno/esd/issues/220","repository_url":"https://api.github.com/repos/metno/esd","labels_url":"https://api.github.com/repos/metno/esd/issues/220/labels{/name}","comments_url":"https://api.github.com/repos/metno/esd/issues/220/comments","events_url":"https://api.github.com/repos/metno/esd/issues/220/events","html_url":"https://github.com/metno/esd/issues/220","id":238907840,"number":220,"title":"NCEP/NCAR Re-analysis - bug in retrieve()","user":{"login":"bczernecki","id":8086055,"avatar_url":"https://avatars2.githubusercontent.com/u/8086055?v=4","gravatar_id":"","url":"https://api.github.com/users/bczernecki","html_url":"https://github.com/bczernecki","followers_url":"https://api.github.com/users/bczernecki/followers","following_url":"https://api.github.com/users/bczernecki/following{/other_user}","gists_url":"https://api.github.com/users/bczernecki/gists{/gist_id}","starred_url":"https://api.github.com/users/bczernecki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bczernecki/subscriptions","organizations_url":"https://api.github.com/users/bczernecki/orgs","repos_url":"https://api.github.com/users/bczernecki/repos","events_url":"https://api.github.com/users/bczernecki/events{/privacy}","received_events_url":"https://api.github.com/users/bczernecki/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2017-06-27T16:22:11Z","updated_at":"2017-08-22T14:11:54Z","closed_at":"2017-08-22T14:11:54Z","body":"Dear Kajsa, Rasmus and Abdelkader, \r\n\r\nToday I've found a very strange behaviour of retrieve function while importing NCEP/NCAR monthly re-analysis. Briefly speaking - there are some problems related with importing standard calendar to zoo-class.\r\n\r\n```\r\ndownload.file(\"ftp://ftp.cdc.noaa.gov/Datasets/ncep.reanalysis.derived/surface/slp.mon.mean.nc\", destfile=\"slp.nc\") # monthly SLP given by NCEP/NCAR re-analysis\r\nncepncar <- retrieve(\"slp.nc\")\r\n\r\n# it's definitely sth wrong with Dates...\r\ntable(month(index(ncepncar)))\r\n\r\n# 1  2  3  4  5  6  7  8  9 10 11 12 \r\n# 70 70 32 63 65 68 69 69 92 96 69 70 \r\n\r\n# but, it can be solved manually:\r\nindex(ncepncar) <- seq.Date(from=as.Date(\"1948-01-01\"), to=range(index(ncepncar))[2], by=\"month\")\r\n\r\n```\r\n\r\nBest,\r\nBartek"}}
{"actor":{"display_login":"bczernecki"}}