{"action":"opened","issue":{"url":"https://api.github.com/repos/data-cube/agdc-v2/issues/7","labels_url":"https://api.github.com/repos/data-cube/agdc-v2/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/data-cube/agdc-v2/issues/7/comments","events_url":"https://api.github.com/repos/data-cube/agdc-v2/issues/7/events","html_url":"https://github.com/data-cube/agdc-v2/issues/7","id":105769481,"number":7,"title":"_gdfnetcdf.py - NetCDF - Set dimension issue","user":{"login":"didierearith","id":13464555,"avatar_url":"https://avatars.githubusercontent.com/u/13464555?v=3","gravatar_id":"","url":"https://api.github.com/users/didierearith","html_url":"https://github.com/didierearith","followers_url":"https://api.github.com/users/didierearith/followers","following_url":"https://api.github.com/users/didierearith/following{/other_user}","gists_url":"https://api.github.com/users/didierearith/gists{/gist_id}","starred_url":"https://api.github.com/users/didierearith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/didierearith/subscriptions","organizations_url":"https://api.github.com/users/didierearith/orgs","repos_url":"https://api.github.com/users/didierearith/repos","events_url":"https://api.github.com/users/didierearith/events{/privacy}","received_events_url":"https://api.github.com/users/didierearith/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-10T09:32:05Z","updated_at":"2015-09-10T09:32:05Z","closed_at":null,"body":"Dear Team,\r\n\r\nI found an issue in the 'set_dimension' function in _gdfnetcdf.py:\r\nI replaced\r\n                dimension_index_vector = np.around(np.arange(dimension_min, dimension_max, element_size), self.decimal_places)\r\n\r\nby\r\n\r\n                dimension_index_vector = np.around(np.linspace(dimension_min, dimension_max, dimension_config['dimension_elements']), self.decimal_places)\r\n\r\nbecause when using a non-integer step, such as 0.25, the results is often not be consistent. (the number of elements doesn't match the expected one, e.g. 1001 instead 1000).\r\n\r\nIt is better to use linspace for these cases.\r\n\r\nKind regards,\r\n\r\nDidier\r\n"}}