{"action":"created","comment":{"url":"https://api.github.com/repos/gammapy/gammapy/pulls/comments/66587831","id":66587831,"diff_hunk":"@@ -63,3 +63,72 @@ The sky map can be easily displayed with an image viewer, by calling ``skymap.sh\n         counts = SkyMap.read(filename)\n         counts.name = 'Counts'\n         counts.show()\n+\n+\n+Working with the cutout and paste method\n+----------------------------------------\n+\n+The `~gammapy.image.SkyMap` class offers `.paste()` and `.cutout()`","path":"docs/image/skymaps.rst","position":9,"original_position":9,"commit_id":"1f7ecce0da8fd2cfa8cc140d27b678ffa8b0977c","original_commit_id":"1f7ecce0da8fd2cfa8cc140d27b678ffa8b0977c","user":{"login":"adonath","id":3715928,"avatar_url":"https://avatars.githubusercontent.com/u/3715928?v=3","gravatar_id":"","url":"https://api.github.com/users/adonath","html_url":"https://github.com/adonath","followers_url":"https://api.github.com/users/adonath/followers","following_url":"https://api.github.com/users/adonath/following{/other_user}","gists_url":"https://api.github.com/users/adonath/gists{/gist_id}","starred_url":"https://api.github.com/users/adonath/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adonath/subscriptions","organizations_url":"https://api.github.com/users/adonath/orgs","repos_url":"https://api.github.com/users/adonath/repos","events_url":"https://api.github.com/users/adonath/events{/privacy}","received_events_url":"https://api.github.com/users/adonath/received_events","type":"User","site_admin":false},"body":"I didn't want to use mark up ticks in the header, but in the first sentence `.paste()` and `.cutout()` are linked.","created_at":"2016-06-10T09:48:03Z","updated_at":"2016-06-10T09:48:03Z","html_url":"https://github.com/gammapy/gammapy/pull/559#discussion_r66587831","pull_request_url":"https://api.github.com/repos/gammapy/gammapy/pulls/559","_links":{"self":{"href":"https://api.github.com/repos/gammapy/gammapy/pulls/comments/66587831"},"html":{"href":"https://github.com/gammapy/gammapy/pull/559#discussion_r66587831"},"pull_request":{"href":"https://api.github.com/repos/gammapy/gammapy/pulls/559"}}},"pull_request":{"url":"https://api.github.com/repos/gammapy/gammapy/pulls/559","id":73056114,"html_url":"https://github.com/gammapy/gammapy/pull/559","diff_url":"https://github.com/gammapy/gammapy/pull/559.diff","patch_url":"https://github.com/gammapy/gammapy/pull/559.patch","issue_url":"https://api.github.com/repos/gammapy/gammapy/issues/559","number":559,"state":"open","locked":false,"title":"Add paste, cutout and look_up methods to SkyMap class","user":{"login":"adonath","id":3715928,"avatar_url":"https://avatars.githubusercontent.com/u/3715928?v=3","gravatar_id":"","url":"https://api.github.com/users/adonath","html_url":"https://github.com/adonath","followers_url":"https://api.github.com/users/adonath/followers","following_url":"https://api.github.com/users/adonath/following{/other_user}","gists_url":"https://api.github.com/users/adonath/gists{/gist_id}","starred_url":"https://api.github.com/users/adonath/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adonath/subscriptions","organizations_url":"https://api.github.com/users/adonath/orgs","repos_url":"https://api.github.com/users/adonath/repos","events_url":"https://api.github.com/users/adonath/events{/privacy}","received_events_url":"https://api.github.com/users/adonath/received_events","type":"User","site_admin":false},"body":"This PR adds `cutout()`, `paste()` and `lookup_max()` methods to the `SkyMap` class and removes it from `gammapy.image.utils`","created_at":"2016-06-08T14:26:01Z","updated_at":"2016-06-10T09:48:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4c6004f4183359f32b4334428b64ca5877506aec","assignee":{"login":"cdeil","id":852409,"avatar_url":"https://avatars.githubusercontent.com/u/852409?v=3","gravatar_id":"","url":"https://api.github.com/users/cdeil","html_url":"https://github.com/cdeil","followers_url":"https://api.github.com/users/cdeil/followers","following_url":"https://api.github.com/users/cdeil/following{/other_user}","gists_url":"https://api.github.com/users/cdeil/gists{/gist_id}","starred_url":"https://api.github.com/users/cdeil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cdeil/subscriptions","organizations_url":"https://api.github.com/users/cdeil/orgs","repos_url":"https://api.github.com/users/cdeil/repos","events_url":"https://api.github.com/users/cdeil/events{/privacy}","received_events_url":"https://api.github.com/users/cdeil/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/gammapy/gammapy/milestones/7","html_url":"https://github.com/gammapy/gammapy/milestones/0.5","labels_url":"https://api.github.com/repos/gammapy/gammapy/milestones/7/labels","id":1275561,"number":7,"title":"0.5","description":"","creator":{"login":"cdeil","id":852409,"avatar_url":"https://avatars.githubusercontent.com/u/852409?v=3","gravatar_id":"","url":"https://api.github.com/users/cdeil","html_url":"https://github.com/cdeil","followers_url":"https://api.github.com/users/cdeil/followers","following_url":"https://api.github.com/users/cdeil/following{/other_user}","gists_url":"https://api.github.com/users/cdeil/gists{/gist_id}","starred_url":"https://api.github.com/users/cdeil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cdeil/subscriptions","organizations_url":"https://api.github.com/users/cdeil/orgs","repos_url":"https://api.github.com/users/cdeil/repos","events_url":"https://api.github.com/users/cdeil/events{/privacy}","received_events_url":"https://api.github.com/users/cdeil/received_events","type":"User","site_admin":false},"open_issues":76,"closed_issues":36,"state":"open","created_at":"2015-08-27T09:29:48Z","updated_at":"2016-06-10T08:13:22Z","due_on":"2016-07-06T22:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/gammapy/gammapy/pulls/559/commits","review_comments_url":"https://api.github.com/repos/gammapy/gammapy/pulls/559/comments","review_comment_url":"https://api.github.com/repos/gammapy/gammapy/pulls/comments{/number}","comments_url":"https://api.github.com/repos/gammapy/gammapy/issues/559/comments","statuses_url":"https://api.github.com/repos/gammapy/gammapy/statuses/1f7ecce0da8fd2cfa8cc140d27b678ffa8b0977c","head":{"label":"adonath:paste_method_for_skymap_class","ref":"paste_method_for_skymap_class","sha":"1f7ecce0da8fd2cfa8cc140d27b678ffa8b0977c","user":{"login":"adonath","id":3715928,"avatar_url":"https://avatars.githubusercontent.com/u/3715928?v=3","gravatar_id":"","url":"https://api.github.com/users/adonath","html_url":"https://github.com/adonath","followers_url":"https://api.github.com/users/adonath/followers","following_url":"https://api.github.com/users/adonath/following{/other_user}","gists_url":"https://api.github.com/users/adonath/gists{/gist_id}","starred_url":"https://api.github.com/users/adonath/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adonath/subscriptions","organizations_url":"https://api.github.com/users/adonath/orgs","repos_url":"https://api.github.com/users/adonath/repos","events_url":"https://api.github.com/users/adonath/events{/privacy}","received_events_url":"https://api.github.com/users/adonath/received_events","type":"User","site_admin":false},"repo":{"id":10124106,"name":"gammapy","full_name":"adonath/gammapy","owner":{"login":"adonath","id":3715928,"avatar_url":"https://avatars.githubusercontent.com/u/3715928?v=3","gravatar_id":"","url":"https://api.github.com/users/adonath","html_url":"https://github.com/adonath","followers_url":"https://api.github.com/users/adonath/followers","following_url":"https://api.github.com/users/adonath/following{/other_user}","gists_url":"https://api.github.com/users/adonath/gists{/gist_id}","starred_url":"https://api.github.com/users/adonath/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adonath/subscriptions","organizations_url":"https://api.github.com/users/adonath/orgs","repos_url":"https://api.github.com/users/adonath/repos","events_url":"https://api.github.com/users/adonath/events{/privacy}","received_events_url":"https://api.github.com/users/adonath/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/adonath/gammapy","description":"TeV gamma-ray astronomy high-level data analysis method demo","fork":true,"url":"https://api.github.com/repos/adonath/gammapy","forks_url":"https://api.github.com/repos/adonath/gammapy/forks","keys_url":"https://api.github.com/repos/adonath/gammapy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/adonath/gammapy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/adonath/gammapy/teams","hooks_url":"https://api.github.com/repos/adonath/gammapy/hooks","issue_events_url":"https://api.github.com/repos/adonath/gammapy/issues/events{/number}","events_url":"https://api.github.com/repos/adonath/gammapy/events","assignees_url":"https://api.github.com/repos/adonath/gammapy/assignees{/user}","branches_url":"https://api.github.com/repos/adonath/gammapy/branches{/branch}","tags_url":"https://api.github.com/repos/adonath/gammapy/tags","blobs_url":"https://api.github.com/repos/adonath/gammapy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/adonath/gammapy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/adonath/gammapy/git/refs{/sha}","trees_url":"https://api.github.com/repos/adonath/gammapy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/adonath/gammapy/statuses/{sha}","languages_url":"https://api.github.com/repos/adonath/gammapy/languages","stargazers_url":"https://api.github.com/repos/adonath/gammapy/stargazers","contributors_url":"https://api.github.com/repos/adonath/gammapy/contributors","subscribers_url":"https://api.github.com/repos/adonath/gammapy/subscribers","subscription_url":"https://api.github.com/repos/adonath/gammapy/subscription","commits_url":"https://api.github.com/repos/adonath/gammapy/commits{/sha}","git_commits_url":"https://api.github.com/repos/adonath/gammapy/git/commits{/sha}","comments_url":"https://api.github.com/repos/adonath/gammapy/comments{/number}","issue_comment_url":"https://api.github.com/repos/adonath/gammapy/issues/comments{/number}","contents_url":"https://api.github.com/repos/adonath/gammapy/contents/{+path}","compare_url":"https://api.github.com/repos/adonath/gammapy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/adonath/gammapy/merges","archive_url":"https://api.github.com/repos/adonath/gammapy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/adonath/gammapy/downloads","issues_url":"https://api.github.com/repos/adonath/gammapy/issues{/number}","pulls_url":"https://api.github.com/repos/adonath/gammapy/pulls{/number}","milestones_url":"https://api.github.com/repos/adonath/gammapy/milestones{/number}","notifications_url":"https://api.github.com/repos/adonath/gammapy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/adonath/gammapy/labels{/name}","releases_url":"https://api.github.com/repos/adonath/gammapy/releases{/id}","deployments_url":"https://api.github.com/repos/adonath/gammapy/deployments","created_at":"2013-05-17T13:38:01Z","updated_at":"2015-07-30T13:58:02Z","pushed_at":"2016-06-09T17:15:23Z","git_url":"git://github.com/adonath/gammapy.git","ssh_url":"git@github.com:adonath/gammapy.git","clone_url":"https://github.com/adonath/gammapy.git","svn_url":"https://github.com/adonath/gammapy","homepage":"https://tevpy.readthedocs.org/","size":5943,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"gammapy:master","ref":"master","sha":"c6908662c4d98380b9e32b701864d5daafb1601e","user":{"login":"gammapy","id":852764,"avatar_url":"https://avatars.githubusercontent.com/u/852764?v=3","gravatar_id":"","url":"https://api.github.com/users/gammapy","html_url":"https://github.com/gammapy","followers_url":"https://api.github.com/users/gammapy/followers","following_url":"https://api.github.com/users/gammapy/following{/other_user}","gists_url":"https://api.github.com/users/gammapy/gists{/gist_id}","starred_url":"https://api.github.com/users/gammapy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gammapy/subscriptions","organizations_url":"https://api.github.com/users/gammapy/orgs","repos_url":"https://api.github.com/users/gammapy/repos","events_url":"https://api.github.com/users/gammapy/events{/privacy}","received_events_url":"https://api.github.com/users/gammapy/received_events","type":"Organization","site_admin":false},"repo":{"id":10073640,"name":"gammapy","full_name":"gammapy/gammapy","owner":{"login":"gammapy","id":852764,"avatar_url":"https://avatars.githubusercontent.com/u/852764?v=3","gravatar_id":"","url":"https://api.github.com/users/gammapy","html_url":"https://github.com/gammapy","followers_url":"https://api.github.com/users/gammapy/followers","following_url":"https://api.github.com/users/gammapy/following{/other_user}","gists_url":"https://api.github.com/users/gammapy/gists{/gist_id}","starred_url":"https://api.github.com/users/gammapy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gammapy/subscriptions","organizations_url":"https://api.github.com/users/gammapy/orgs","repos_url":"https://api.github.com/users/gammapy/repos","events_url":"https://api.github.com/users/gammapy/events{/privacy}","received_events_url":"https://api.github.com/users/gammapy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/gammapy/gammapy","description":"A Python package for gamma-ray astronomy","fork":false,"url":"https://api.github.com/repos/gammapy/gammapy","forks_url":"https://api.github.com/repos/gammapy/gammapy/forks","keys_url":"https://api.github.com/repos/gammapy/gammapy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gammapy/gammapy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gammapy/gammapy/teams","hooks_url":"https://api.github.com/repos/gammapy/gammapy/hooks","issue_events_url":"https://api.github.com/repos/gammapy/gammapy/issues/events{/number}","events_url":"https://api.github.com/repos/gammapy/gammapy/events","assignees_url":"https://api.github.com/repos/gammapy/gammapy/assignees{/user}","branches_url":"https://api.github.com/repos/gammapy/gammapy/branches{/branch}","tags_url":"https://api.github.com/repos/gammapy/gammapy/tags","blobs_url":"https://api.github.com/repos/gammapy/gammapy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gammapy/gammapy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gammapy/gammapy/git/refs{/sha}","trees_url":"https://api.github.com/repos/gammapy/gammapy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gammapy/gammapy/statuses/{sha}","languages_url":"https://api.github.com/repos/gammapy/gammapy/languages","stargazers_url":"https://api.github.com/repos/gammapy/gammapy/stargazers","contributors_url":"https://api.github.com/repos/gammapy/gammapy/contributors","subscribers_url":"https://api.github.com/repos/gammapy/gammapy/subscribers","subscription_url":"https://api.github.com/repos/gammapy/gammapy/subscription","commits_url":"https://api.github.com/repos/gammapy/gammapy/commits{/sha}","git_commits_url":"https://api.github.com/repos/gammapy/gammapy/git/commits{/sha}","comments_url":"https://api.github.com/repos/gammapy/gammapy/comments{/number}","issue_comment_url":"https://api.github.com/repos/gammapy/gammapy/issues/comments{/number}","contents_url":"https://api.github.com/repos/gammapy/gammapy/contents/{+path}","compare_url":"https://api.github.com/repos/gammapy/gammapy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gammapy/gammapy/merges","archive_url":"https://api.github.com/repos/gammapy/gammapy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gammapy/gammapy/downloads","issues_url":"https://api.github.com/repos/gammapy/gammapy/issues{/number}","pulls_url":"https://api.github.com/repos/gammapy/gammapy/pulls{/number}","milestones_url":"https://api.github.com/repos/gammapy/gammapy/milestones{/number}","notifications_url":"https://api.github.com/repos/gammapy/gammapy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gammapy/gammapy/labels{/name}","releases_url":"https://api.github.com/repos/gammapy/gammapy/releases{/id}","deployments_url":"https://api.github.com/repos/gammapy/gammapy/deployments","created_at":"2013-05-15T07:50:40Z","updated_at":"2016-04-21T13:35:29Z","pushed_at":"2016-06-10T09:42:07Z","git_url":"git://github.com/gammapy/gammapy.git","ssh_url":"git@github.com:gammapy/gammapy.git","clone_url":"https://github.com/gammapy/gammapy.git","svn_url":"https://github.com/gammapy/gammapy","homepage":"https://gammapy.readthedocs.org/","size":6481,"stargazers_count":22,"watchers_count":22,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":42,"mirror_url":null,"open_issues_count":150,"forks":42,"open_issues":150,"watchers":22,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/gammapy/gammapy/pulls/559"},"html":{"href":"https://github.com/gammapy/gammapy/pull/559"},"issue":{"href":"https://api.github.com/repos/gammapy/gammapy/issues/559"},"comments":{"href":"https://api.github.com/repos/gammapy/gammapy/issues/559/comments"},"review_comments":{"href":"https://api.github.com/repos/gammapy/gammapy/pulls/559/comments"},"review_comment":{"href":"https://api.github.com/repos/gammapy/gammapy/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/gammapy/gammapy/pulls/559/commits"},"statuses":{"href":"https://api.github.com/repos/gammapy/gammapy/statuses/1f7ecce0da8fd2cfa8cc140d27b678ffa8b0977c"}}}}
{"actor":{"display_login":"adonath"}}