{"action":"opened","issue":{"url":"https://api.github.com/repos/geowurster/Geoprocessing-Examples/issues/3","labels_url":"https://api.github.com/repos/geowurster/Geoprocessing-Examples/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/geowurster/Geoprocessing-Examples/issues/3/comments","events_url":"https://api.github.com/repos/geowurster/Geoprocessing-Examples/issues/3/events","html_url":"https://github.com/geowurster/Geoprocessing-Examples/issues/3","id":59830712,"number":3,"title":"Segment statistics","user":{"login":"geowurster","id":2676083,"avatar_url":"https://avatars.githubusercontent.com/u/2676083?v=3","gravatar_id":"","url":"https://api.github.com/users/geowurster","html_url":"https://github.com/geowurster","followers_url":"https://api.github.com/users/geowurster/followers","following_url":"https://api.github.com/users/geowurster/following{/other_user}","gists_url":"https://api.github.com/users/geowurster/gists{/gist_id}","starred_url":"https://api.github.com/users/geowurster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geowurster/subscriptions","organizations_url":"https://api.github.com/users/geowurster/orgs","repos_url":"https://api.github.com/users/geowurster/repos","events_url":"https://api.github.com/users/geowurster/events{/privacy}","received_events_url":"https://api.github.com/users/geowurster/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"geowurster","id":2676083,"avatar_url":"https://avatars.githubusercontent.com/u/2676083?v=3","gravatar_id":"","url":"https://api.github.com/users/geowurster","html_url":"https://github.com/geowurster","followers_url":"https://api.github.com/users/geowurster/followers","following_url":"https://api.github.com/users/geowurster/following{/other_user}","gists_url":"https://api.github.com/users/geowurster/gists{/gist_id}","starred_url":"https://api.github.com/users/geowurster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geowurster/subscriptions","organizations_url":"https://api.github.com/users/geowurster/orgs","repos_url":"https://api.github.com/users/geowurster/repos","events_url":"https://api.github.com/users/geowurster/events{/privacy}","received_events_url":"https://api.github.com/users/geowurster/received_events","type":"User","site_admin":false},"milestone":null,"comments":0,"created_at":"2015-03-04T17:22:32Z","updated_at":"2015-03-04T17:22:32Z","closed_at":null,"body":"Given an array-like object and matching 2d array with labels, compute the stats for each label.\r\n\r\n1. Convert all sub-arrays to masked if not already (need to preserve any existing masks)\r\n2. Loop over unique label values\r\n3. Create a new mask from existing array mask and any label value that is not equal to what is currently being processed\r\n4. Compute metrics just like zonal statistics"}}