{"action":"created","issue":{"url":"https://api.github.com/repos/sunpy/sunpy/issues/1606","repository_url":"https://api.github.com/repos/sunpy/sunpy","labels_url":"https://api.github.com/repos/sunpy/sunpy/issues/1606/labels{/name}","comments_url":"https://api.github.com/repos/sunpy/sunpy/issues/1606/comments","events_url":"https://api.github.com/repos/sunpy/sunpy/issues/1606/events","html_url":"https://github.com/sunpy/sunpy/pull/1606","id":115942238,"number":1606,"title":"Superpixel method now respects the map mask property and allows for arbitrary superpixel dimensions","user":{"login":"wafels","id":983575,"avatar_url":"https://avatars.githubusercontent.com/u/983575?v=3","gravatar_id":"","url":"https://api.github.com/users/wafels","html_url":"https://github.com/wafels","followers_url":"https://api.github.com/users/wafels/followers","following_url":"https://api.github.com/users/wafels/following{/other_user}","gists_url":"https://api.github.com/users/wafels/gists{/gist_id}","starred_url":"https://api.github.com/users/wafels/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wafels/subscriptions","organizations_url":"https://api.github.com/users/wafels/orgs","repos_url":"https://api.github.com/users/wafels/repos","events_url":"https://api.github.com/users/wafels/events{/privacy}","received_events_url":"https://api.github.com/users/wafels/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/sunpy/sunpy/labels/[Review]","name":"[Review]","color":"fad8c7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-09T19:01:51Z","updated_at":"2016-03-14T17:21:12Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/sunpy/sunpy/pulls/1606","html_url":"https://github.com/sunpy/sunpy/pull/1606","diff_url":"https://github.com/sunpy/sunpy/pull/1606.diff","patch_url":"https://github.com/sunpy/sunpy/pull/1606.patch"},"body":"This is a solution to #1536.\r\nPreviously, the superpixel map method did not take account of the mask, if it was present.  This PR ensures that the mask is respected when calculating superpixels.  The API has also changed slightly so that a function is passed into superpixel to define how the superpixel is calculated from the original pixels.  This permits other functions (such as numpy.prod) to be passed in by the user without having to change the code.\r\n\r\nThe existing superpixel method creates a new map from the original map with new pixels formed by summing m by n contiguous original pixels.  If the original map was of size M by N then the old version of the superpixel method required that M/m and N/n be integers.  The new superpixel method lifts this restriction.  Note that if M/m (or N/n) is not an integer, then the new map does not span the same physical extent as the original map.  An offset keyword is provided to allow the user to offset the new map relative to the original map to the extent allowed by requested superpixel size."},"comment":{"url":"https://api.github.com/repos/sunpy/sunpy/issues/comments/196420908","html_url":"https://github.com/sunpy/sunpy/pull/1606#issuecomment-196420908","issue_url":"https://api.github.com/repos/sunpy/sunpy/issues/1606","id":196420908,"user":{"login":"Cadair","id":1391051,"avatar_url":"https://avatars.githubusercontent.com/u/1391051?v=3","gravatar_id":"","url":"https://api.github.com/users/Cadair","html_url":"https://github.com/Cadair","followers_url":"https://api.github.com/users/Cadair/followers","following_url":"https://api.github.com/users/Cadair/following{/other_user}","gists_url":"https://api.github.com/users/Cadair/gists{/gist_id}","starred_url":"https://api.github.com/users/Cadair/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Cadair/subscriptions","organizations_url":"https://api.github.com/users/Cadair/orgs","repos_url":"https://api.github.com/users/Cadair/repos","events_url":"https://api.github.com/users/Cadair/events{/privacy}","received_events_url":"https://api.github.com/users/Cadair/received_events","type":"User","site_admin":false},"created_at":"2016-03-14T17:21:12Z","updated_at":"2016-03-14T17:21:12Z","body":":+1: "}}