{"action":"created","issue":{"url":"https://api.github.com/repos/Unidata/netcdf-c/issues/725","repository_url":"https://api.github.com/repos/Unidata/netcdf-c","labels_url":"https://api.github.com/repos/Unidata/netcdf-c/issues/725/labels{/name}","comments_url":"https://api.github.com/repos/Unidata/netcdf-c/issues/725/comments","events_url":"https://api.github.com/repos/Unidata/netcdf-c/issues/725/events","html_url":"https://github.com/Unidata/netcdf-c/issues/725","id":283427298,"number":725,"title":"Nccopy ignores chunk spec when input is netcdf-4 contiguous","user":{"login":"Dave-Allured","id":16604083,"avatar_url":"https://avatars0.githubusercontent.com/u/16604083?v=4","gravatar_id":"","url":"https://api.github.com/users/Dave-Allured","html_url":"https://github.com/Dave-Allured","followers_url":"https://api.github.com/users/Dave-Allured/followers","following_url":"https://api.github.com/users/Dave-Allured/following{/other_user}","gists_url":"https://api.github.com/users/Dave-Allured/gists{/gist_id}","starred_url":"https://api.github.com/users/Dave-Allured/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dave-Allured/subscriptions","organizations_url":"https://api.github.com/users/Dave-Allured/orgs","repos_url":"https://api.github.com/users/Dave-Allured/repos","events_url":"https://api.github.com/users/Dave-Allured/events{/privacy}","received_events_url":"https://api.github.com/users/Dave-Allured/received_events","type":"User","site_admin":false},"labels":[{"id":269141915,"url":"https://api.github.com/repos/Unidata/netcdf-c/labels/area/netcdf4","name":"area/netcdf4","color":"fad8c7","default":false},{"id":283324315,"url":"https://api.github.com/repos/Unidata/netcdf-c/labels/area/utils","name":"area/utils","color":"fad8c7","default":false}],"state":"open","locked":false,"assignee":{"login":"WardF","id":4324946,"avatar_url":"https://avatars3.githubusercontent.com/u/4324946?v=4","gravatar_id":"","url":"https://api.github.com/users/WardF","html_url":"https://github.com/WardF","followers_url":"https://api.github.com/users/WardF/followers","following_url":"https://api.github.com/users/WardF/following{/other_user}","gists_url":"https://api.github.com/users/WardF/gists{/gist_id}","starred_url":"https://api.github.com/users/WardF/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WardF/subscriptions","organizations_url":"https://api.github.com/users/WardF/orgs","repos_url":"https://api.github.com/users/WardF/repos","events_url":"https://api.github.com/users/WardF/events{/privacy}","received_events_url":"https://api.github.com/users/WardF/received_events","type":"User","site_admin":false},"assignees":[{"login":"WardF","id":4324946,"avatar_url":"https://avatars3.githubusercontent.com/u/4324946?v=4","gravatar_id":"","url":"https://api.github.com/users/WardF","html_url":"https://github.com/WardF","followers_url":"https://api.github.com/users/WardF/followers","following_url":"https://api.github.com/users/WardF/following{/other_user}","gists_url":"https://api.github.com/users/WardF/gists{/gist_id}","starred_url":"https://api.github.com/users/WardF/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WardF/subscriptions","organizations_url":"https://api.github.com/users/WardF/orgs","repos_url":"https://api.github.com/users/WardF/repos","events_url":"https://api.github.com/users/WardF/events{/privacy}","received_events_url":"https://api.github.com/users/WardF/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/Unidata/netcdf-c/milestones/11","html_url":"https://github.com/Unidata/netcdf-c/milestone/11","labels_url":"https://api.github.com/repos/Unidata/netcdf-c/milestones/11/labels","id":3065045,"number":11,"title":"4.7.0","description":"NetCDF-C 4.7.0 Release\r\n","creator":{"login":"WardF","id":4324946,"avatar_url":"https://avatars3.githubusercontent.com/u/4324946?v=4","gravatar_id":"","url":"https://api.github.com/users/WardF","html_url":"https://github.com/WardF","followers_url":"https://api.github.com/users/WardF/followers","following_url":"https://api.github.com/users/WardF/following{/other_user}","gists_url":"https://api.github.com/users/WardF/gists{/gist_id}","starred_url":"https://api.github.com/users/WardF/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WardF/subscriptions","organizations_url":"https://api.github.com/users/WardF/orgs","repos_url":"https://api.github.com/users/WardF/repos","events_url":"https://api.github.com/users/WardF/events{/privacy}","received_events_url":"https://api.github.com/users/WardF/received_events","type":"User","site_admin":false},"open_issues":22,"closed_issues":2,"state":"open","created_at":"2018-01-25T23:03:12Z","updated_at":"2018-03-20T05:08:22Z","due_on":null,"closed_at":null},"comments":17,"created_at":"2017-12-20T02:08:24Z","updated_at":"2018-03-29T01:56:41Z","closed_at":null,"author_association":"NONE","body":"### Environment\r\n\r\nLinux and Mac, 64-bit\r\nVersion tested:  nccopy with netcdf-C 4.4.1.1, hdf5-1.10.1\r\n\r\n### Summary\r\n\r\nWhen using nccopy to convert a netcdf-4 file from contiguous to chunked, the chunk spec on the command line is ignored, and the output file contains invented chunk sizes.  IMO, nccopy is not working as advertised in this case.\r\n\r\nRemarkably, when the input file is chunked rather than contiguous, the command line chunk spec is respected.  (Example not shown.)\r\n\r\n### Steps to reproduce\r\n\r\nTest input file, 5.2 Mbytes:  [test31.contig.nc.gz](https://github.com/Unidata/netcdf-c/files/1573878/test31.contig.nc.gz)\r\n\r\nRun this command:\r\n\r\n```\r\nnccopy -d1 -c time/1,lat/180,lon/180 test31.contig.nc test33.chunked.nc\r\n```\r\n\r\nInput file header:\r\n\r\n```\r\nnetcdf test31.contig {\r\ndimensions:\r\n\ttime = 40 ;\r\n\tlat = 180 ;\r\n\tlon = 180 ;\r\nvariables:\r\n\tfloat x(time, lat, lon) ;\r\n\t\tx:_Storage = \"contiguous\" ;\r\n\t\tx:_Endianness = \"little\" ;\r\n\r\n// global attributes:\r\n\t\t:_NCProperties = \"version=1|netcdflibversion=4.4.1.1|hdf5libversion=1.10.1\" ;\r\n\t\t:_SuperblockVersion = 0 ;\r\n\t\t:_IsNetcdf4 = 1 ;\r\n\t\t:_Format = \"netCDF-4\" ;\r\n}\r\n```\r\n\r\nExpected output chunk sizes:\r\n\r\n```\r\n\t\tx:_ChunkSizes = 1, 180, 180 ;\r\n```\r\n\r\nActual result with unexpected chunk sizes:\r\n\r\n```netcdf test33.chunked {\r\ndimensions:\r\n\ttime = 40 ;\r\n\tlat = 180 ;\r\n\tlon = 180 ;\r\nvariables:\r\n\tfloat x(time, lat, lon) ;\r\n\t\tx:_Storage = \"chunked\" ;\r\n\t\tx:_ChunkSizes = 20, 90, 90 ;\r\n\t\tx:_DeflateLevel = 1 ;\r\n\t\tx:_Endianness = \"little\" ;\r\n\r\n// global attributes:\r\n\t\t:_NCProperties = \"version=1|netcdflibversion=4.4.1.1|hdf5libversion=1.10.1\" ;\r\n\t\t:_SuperblockVersion = 0 ;\r\n\t\t:_IsNetcdf4 = 1 ;\r\n\t\t:_Format = \"netCDF-4\" ;\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/Unidata/netcdf-c/issues/comments/377095533","html_url":"https://github.com/Unidata/netcdf-c/issues/725#issuecomment-377095533","issue_url":"https://api.github.com/repos/Unidata/netcdf-c/issues/725","id":377095533,"user":{"login":"czender","id":5597049,"avatar_url":"https://avatars0.githubusercontent.com/u/5597049?v=4","gravatar_id":"","url":"https://api.github.com/users/czender","html_url":"https://github.com/czender","followers_url":"https://api.github.com/users/czender/followers","following_url":"https://api.github.com/users/czender/following{/other_user}","gists_url":"https://api.github.com/users/czender/gists{/gist_id}","starred_url":"https://api.github.com/users/czender/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/czender/subscriptions","organizations_url":"https://api.github.com/users/czender/orgs","repos_url":"https://api.github.com/users/czender/repos","events_url":"https://api.github.com/users/czender/events{/privacy}","received_events_url":"https://api.github.com/users/czender/received_events","type":"User","site_admin":false},"created_at":"2018-03-29T01:56:41Z","updated_at":"2018-03-29T01:56:41Z","author_association":"NONE","body":"FYI that's pretty much what NCO does, AFAICT without re-reading the code."}}
{"actor":{"display_login":"czender"}}