{"action":"created","issue":{"url":"https://api.github.com/repos/rabernat/floater/issues/14","repository_url":"https://api.github.com/repos/rabernat/floater","labels_url":"https://api.github.com/repos/rabernat/floater/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/rabernat/floater/issues/14/comments","events_url":"https://api.github.com/repos/rabernat/floater/issues/14/events","html_url":"https://github.com/rabernat/floater/pull/14","id":191184573,"number":14,"title":"hexagonal tiling with mask development ","user":{"login":"nathanieltarshish","id":20796154,"avatar_url":"https://avatars.githubusercontent.com/u/20796154?v=3","gravatar_id":"","url":"https://api.github.com/users/nathanieltarshish","html_url":"https://github.com/nathanieltarshish","followers_url":"https://api.github.com/users/nathanieltarshish/followers","following_url":"https://api.github.com/users/nathanieltarshish/following{/other_user}","gists_url":"https://api.github.com/users/nathanieltarshish/gists{/gist_id}","starred_url":"https://api.github.com/users/nathanieltarshish/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nathanieltarshish/subscriptions","organizations_url":"https://api.github.com/users/nathanieltarshish/orgs","repos_url":"https://api.github.com/users/nathanieltarshish/repos","events_url":"https://api.github.com/users/nathanieltarshish/events{/privacy}","received_events_url":"https://api.github.com/users/nathanieltarshish/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2016-11-23T04:03:29Z","updated_at":"2016-11-28T16:27:46Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/rabernat/floater/pulls/14","html_url":"https://github.com/rabernat/floater/pull/14","diff_url":"https://github.com/rabernat/floater/pull/14.diff","patch_url":"https://github.com/rabernat/floater/pull/14.patch"},"body":""},"comment":{"url":"https://api.github.com/repos/rabernat/floater/issues/comments/263318279","html_url":"https://github.com/rabernat/floater/pull/14#issuecomment-263318279","issue_url":"https://api.github.com/repos/rabernat/floater/issues/14","id":263318279,"user":{"login":"rabernat","id":1197350,"avatar_url":"https://avatars.githubusercontent.com/u/1197350?v=3","gravatar_id":"","url":"https://api.github.com/users/rabernat","html_url":"https://github.com/rabernat","followers_url":"https://api.github.com/users/rabernat/followers","following_url":"https://api.github.com/users/rabernat/following{/other_user}","gists_url":"https://api.github.com/users/rabernat/gists{/gist_id}","starred_url":"https://api.github.com/users/rabernat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rabernat/subscriptions","organizations_url":"https://api.github.com/users/rabernat/orgs","repos_url":"https://api.github.com/users/rabernat/repos","events_url":"https://api.github.com/users/rabernat/events{/privacy}","received_events_url":"https://api.github.com/users/rabernat/received_events","type":"User","site_admin":false},"created_at":"2016-11-28T16:27:46Z","updated_at":"2016-11-28T16:27:46Z","body":"> However, I am not aware of any ocean models that output the land/sea mask in a dictionary format,\r\n\r\nAll I am saying is that the user wrap the necessary fields in a dictionary and pass it to FloatSet. It would look like this\r\n\r\n```python\r\nmodel_grid = {'lon': xc, 'lat': yc, 'land_mask': mask}\r\nfs = FloatSet(model_grid, floats_per_cell=10)\r\n```\r\n\r\nThe advantage of this approach is that, via [duck typing](https://en.wikipedia.org/wiki/Duck_typing), ``model_grid`` could also be a netCDF4 dataset or xarray dataset.\r\n\r\nA dedicated class just to hold those variables seems like a classic case of unnecessary objectification:\r\nhttp://stackoverflow.com/questions/4045161/python-should-i-use-a-class-or-dictionary"}}
{"actor":{"display_login":"rabernat"}}