{"action":"opened","issue":{"url":"https://api.github.com/repos/Unidata/netcdf-c/issues/373","repository_url":"https://api.github.com/repos/Unidata/netcdf-c","labels_url":"https://api.github.com/repos/Unidata/netcdf-c/issues/373/labels{/name}","comments_url":"https://api.github.com/repos/Unidata/netcdf-c/issues/373/comments","events_url":"https://api.github.com/repos/Unidata/netcdf-c/issues/373/events","html_url":"https://github.com/Unidata/netcdf-c/issues/373","id":211523094,"number":373,"title":"nccopy variable subsetting via OPeNDAP and global variables","user":{"login":"dblodgett-usgs","id":1492803,"avatar_url":"https://avatars3.githubusercontent.com/u/1492803?v=3","gravatar_id":"","url":"https://api.github.com/users/dblodgett-usgs","html_url":"https://github.com/dblodgett-usgs","followers_url":"https://api.github.com/users/dblodgett-usgs/followers","following_url":"https://api.github.com/users/dblodgett-usgs/following{/other_user}","gists_url":"https://api.github.com/users/dblodgett-usgs/gists{/gist_id}","starred_url":"https://api.github.com/users/dblodgett-usgs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dblodgett-usgs/subscriptions","organizations_url":"https://api.github.com/users/dblodgett-usgs/orgs","repos_url":"https://api.github.com/users/dblodgett-usgs/repos","events_url":"https://api.github.com/users/dblodgett-usgs/events{/privacy}","received_events_url":"https://api.github.com/users/dblodgett-usgs/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-03-02T21:27:33Z","updated_at":"2017-03-02T21:27:33Z","closed_at":null,"body":"OSX 10.12\r\nnetCDF library version 4.4.1.1 of Feb 23 2017 13:31:18 (Homebrewed)\r\n\r\nWhen I do: `$ nccopy https://cida.usgs.gov/thredds/dodsC/new_gmo?longitude[0:1:461],latitude[0:1:221],time[0:1:22644] out.nc`\r\n\r\nI get:\r\n```\r\n$ ncdump -h out.nc \r\nnetcdf out {\r\ndimensions:\r\n\tlatitude = 222 ;\r\n\tlongitude = 462 ;\r\n\ttime = 22645 ;\r\nvariables:\r\n\tfloat longitude(longitude) ;\r\n\t\tlongitude:long_name = \"Longitude\" ;\r\n\t\tlongitude:units = \"degrees_east\" ;\r\n\t\tlongitude:standard_name = \"longitude\" ;\r\n\t\tlongitude:axis = \"X\" ;\r\n\t\tlongitude:bounds = \"longitude_bnds\" ;\r\n\tfloat latitude(latitude) ;\r\n\t\tlatitude:long_name = \"Latitude\" ;\r\n\t\tlatitude:units = \"degrees_north\" ;\r\n\t\tlatitude:standard_name = \"latitude\" ;\r\n\t\tlatitude:axis = \"Y\" ;\r\n\t\tlatitude:bounds = \"latitude_bnds\" ;\r\n\tdouble time(time) ;\r\n\t\ttime:units = \"days since 1940-01-01 00:00:00\" ;\r\n\t\ttime:calendar = \"standard\" ;\r\n\r\n// global attributes: \r\n// (expected global attributes removed to be concise)\r\n\t\t:pr.units = \"mm/d\" ;\r\n\t\t:pr._FillValue = 1.e+20f ;\r\n\t\t:pr.long_name = \"Precipitation\" ;\r\n\t\t:tas.units = \"C\" ;\r\n\t\t:tas._FillValue = 1.e+20f ;\r\n\t\t:tas.long_name = \"Average Temperature\" ;\r\n\t\t:tasmax.units = \"C\" ;\r\n\t\t:tasmax._FillValue = 1.e+20f ;\r\n\t\t:tasmax.long_name = \"Maximum Temperature\" ;\r\n\t\t:tasmin.units = \"C\" ;\r\n\t\t:tasmin._FillValue = 1.e+20f ;\r\n\t\t:tasmin.long_name = \"Minimum Temperature\" ;\r\n\t\t:wind.units = \"m/s\" ;\r\n\t\t:wind.axis = \"TYX\" ;\r\n\t\t:wind.missing_value = 1.00000002004088e+20 ;\r\n\t\t:wind.associate = \"time latitude longitude\" ;\r\n\t\t:wind.long_name = \"Wind Speed\" ;\r\n}\r\n```\r\n\r\nShould the variables and attributes that were not requested be showing up as global attributes? Adding the -v or -V options with those variables listed doesn't affect the output."}}
{"actor":{"display_login":"dblodgett-usgs"}}