{"action":"created","comment":{"url":"https://api.github.com/repos/jeff-regier/KillerAsteroids.jl/pulls/comments/39225189","id":39225189,"diff_hunk":"@@ -0,0 +1,39 @@\n+using FITSIO\n+\n+function wise_psf(band; sidelen=-1)\n+\n+  # don't believe any sensible normalization is in place, need to fix that ...","path":"src/wise_psf.jl","position":5,"original_position":5,"commit_id":"e4d5d2076477a939a9a3cbd95dc0025d682029c9","original_commit_id":"e4d5d2076477a939a9a3cbd95dc0025d682029c9","user":{"login":"ameisner","id":3253317,"avatar_url":"https://avatars.githubusercontent.com/u/3253317?v=3","gravatar_id":"","url":"https://api.github.com/users/ameisner","html_url":"https://github.com/ameisner","followers_url":"https://api.github.com/users/ameisner/followers","following_url":"https://api.github.com/users/ameisner/following{/other_user}","gists_url":"https://api.github.com/users/ameisner/gists{/gist_id}","starred_url":"https://api.github.com/users/ameisner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ameisner/subscriptions","organizations_url":"https://api.github.com/users/ameisner/orgs","repos_url":"https://api.github.com/users/ameisner/repos","events_url":"https://api.github.com/users/ameisner/events{/privacy}","received_events_url":"https://api.github.com/users/ameisner/received_events","type":"User","site_admin":false},"body":"I think there are several possibilities. One way to normalize the PSFs would be to make each PSF have a value of 1 in it's central pixel. Or we could make the sum of the pixels within a certain aperture be 1. Or we could add a keyword argument(s) to allow the user to specify a certain multiplicative scaling of the PSF.","created_at":"2015-09-10T23:02:48Z","updated_at":"2015-09-10T23:02:48Z","html_url":"https://github.com/jeff-regier/KillerAsteroids.jl/pull/1#discussion_r39225189","pull_request_url":"https://api.github.com/repos/jeff-regier/KillerAsteroids.jl/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/jeff-regier/KillerAsteroids.jl/pulls/comments/39225189"},"html":{"href":"https://github.com/jeff-regier/KillerAsteroids.jl/pull/1#discussion_r39225189"},"pull_request":{"href":"https://api.github.com/repos/jeff-regier/KillerAsteroids.jl/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/jeff-regier/KillerAsteroids.jl/pulls/1","id":44636466,"html_url":"https://github.com/jeff-regier/KillerAsteroids.jl/pull/1","diff_url":"https://github.com/jeff-regier/KillerAsteroids.jl/pull/1.diff","patch_url":"https://github.com/jeff-regier/KillerAsteroids.jl/pull/1.patch","issue_url":"https://api.github.com/repos/jeff-regier/KillerAsteroids.jl/issues/1","number":1,"state":"closed","locked":false,"title":"first pass at WISE PSF rendering code","user":{"login":"ameisner","id":3253317,"avatar_url":"https://avatars.githubusercontent.com/u/3253317?v=3","gravatar_id":"","url":"https://api.github.com/users/ameisner","html_url":"https://github.com/ameisner","followers_url":"https://api.github.com/users/ameisner/followers","following_url":"https://api.github.com/users/ameisner/following{/other_user}","gists_url":"https://api.github.com/users/ameisner/gists{/gist_id}","starred_url":"https://api.github.com/users/ameisner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ameisner/subscriptions","organizations_url":"https://api.github.com/users/ameisner/orgs","repos_url":"https://api.github.com/users/ameisner/repos","events_url":"https://api.github.com/users/ameisner/events{/privacy}","received_events_url":"https://api.github.com/users/ameisner/received_events","type":"User","site_admin":false},"body":"Hi Jeff,\r\n\r\nHere's my first pass at a WISE PSF rendering routine. I'm still just starting to learn Julia, so there's definitely a lot of room for improvement and clean-up. But, even as-is, wise_psf.jl will return a cutout of the WISE PSF in the desired band and with a user-specified side length in pixels.\r\n\r\nFeel free to make your own modifications to the new file wise_psf.jl once it's in the master repo. Also, if the src/ subdirectory wasn't the right place for me to put this new code, let me know and I'll put it somewhere else. Thanks very much.\r\n\r\n-Aaron","created_at":"2015-09-10T07:37:54Z","updated_at":"2015-09-10T23:02:48Z","closed_at":"2015-09-10T19:51:10Z","merged_at":"2015-09-10T19:51:10Z","merge_commit_sha":"8efcb8cbd1b07aae77e2742908eb1b5aa0ece54c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/jeff-regier/KillerAsteroids.jl/pulls/1/commits","review_comments_url":"https://api.github.com/repos/jeff-regier/KillerAsteroids.jl/pulls/1/comments","review_comment_url":"https://api.github.com/repos/jeff-regier/KillerAsteroids.jl/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jeff-regier/KillerAsteroids.jl/issues/1/comments","statuses_url":"https://api.github.com/repos/jeff-regier/KillerAsteroids.jl/statuses/e4d5d2076477a939a9a3cbd95dc0025d682029c9","head":{"label":"ameisner:wise_psf","ref":"wise_psf","sha":"e4d5d2076477a939a9a3cbd95dc0025d682029c9","user":{"login":"ameisner","id":3253317,"avatar_url":"https://avatars.githubusercontent.com/u/3253317?v=3","gravatar_id":"","url":"https://api.github.com/users/ameisner","html_url":"https://github.com/ameisner","followers_url":"https://api.github.com/users/ameisner/followers","following_url":"https://api.github.com/users/ameisner/following{/other_user}","gists_url":"https://api.github.com/users/ameisner/gists{/gist_id}","starred_url":"https://api.github.com/users/ameisner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ameisner/subscriptions","organizations_url":"https://api.github.com/users/ameisner/orgs","repos_url":"https://api.github.com/users/ameisner/repos","events_url":"https://api.github.com/users/ameisner/events{/privacy}","received_events_url":"https://api.github.com/users/ameisner/received_events","type":"User","site_admin":false},"repo":{"id":42229336,"name":"KillerAsteroids.jl","full_name":"ameisner/KillerAsteroids.jl","owner":{"login":"ameisner","id":3253317,"avatar_url":"https://avatars.githubusercontent.com/u/3253317?v=3","gravatar_id":"","url":"https://api.github.com/users/ameisner","html_url":"https://github.com/ameisner","followers_url":"https://api.github.com/users/ameisner/followers","following_url":"https://api.github.com/users/ameisner/following{/other_user}","gists_url":"https://api.github.com/users/ameisner/gists{/gist_id}","starred_url":"https://api.github.com/users/ameisner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ameisner/subscriptions","organizations_url":"https://api.github.com/users/ameisner/orgs","repos_url":"https://api.github.com/users/ameisner/repos","events_url":"https://api.github.com/users/ameisner/events{/privacy}","received_events_url":"https://api.github.com/users/ameisner/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ameisner/KillerAsteroids.jl","description":"Detects asteroids that might kill us","fork":true,"url":"https://api.github.com/repos/ameisner/KillerAsteroids.jl","forks_url":"https://api.github.com/repos/ameisner/KillerAsteroids.jl/forks","keys_url":"https://api.github.com/repos/ameisner/KillerAsteroids.jl/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ameisner/KillerAsteroids.jl/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ameisner/KillerAsteroids.jl/teams","hooks_url":"https://api.github.com/repos/ameisner/KillerAsteroids.jl/hooks","issue_events_url":"https://api.github.com/repos/ameisner/KillerAsteroids.jl/issues/events{/number}","events_url":"https://api.github.com/repos/ameisner/KillerAsteroids.jl/events","assignees_url":"https://api.github.com/repos/ameisner/KillerAsteroids.jl/assignees{/user}","branches_url":"https://api.github.com/repos/ameisner/KillerAsteroids.jl/branches{/branch}","tags_url":"https://api.github.com/repos/ameisner/KillerAsteroids.jl/tags","blobs_url":"https://api.github.com/repos/ameisner/KillerAsteroids.jl/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ameisner/KillerAsteroids.jl/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ameisner/KillerAsteroids.jl/git/refs{/sha}","trees_url":"https://api.github.com/repos/ameisner/KillerAsteroids.jl/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ameisner/KillerAsteroids.jl/statuses/{sha}","languages_url":"https://api.github.com/repos/ameisner/KillerAsteroids.jl/languages","stargazers_url":"https://api.github.com/repos/ameisner/KillerAsteroids.jl/stargazers","contributors_url":"https://api.github.com/repos/ameisner/KillerAsteroids.jl/contributors","subscribers_url":"https://api.github.com/repos/ameisner/KillerAsteroids.jl/subscribers","subscription_url":"https://api.github.com/repos/ameisner/KillerAsteroids.jl/subscription","commits_url":"https://api.github.com/repos/ameisner/KillerAsteroids.jl/commits{/sha}","git_commits_url":"https://api.github.com/repos/ameisner/KillerAsteroids.jl/git/commits{/sha}","comments_url":"https://api.github.com/repos/ameisner/KillerAsteroids.jl/comments{/number}","issue_comment_url":"https://api.github.com/repos/ameisner/KillerAsteroids.jl/issues/comments{/number}","contents_url":"https://api.github.com/repos/ameisner/KillerAsteroids.jl/contents/{+path}","compare_url":"https://api.github.com/repos/ameisner/KillerAsteroids.jl/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ameisner/KillerAsteroids.jl/merges","archive_url":"https://api.github.com/repos/ameisner/KillerAsteroids.jl/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ameisner/KillerAsteroids.jl/downloads","issues_url":"https://api.github.com/repos/ameisner/KillerAsteroids.jl/issues{/number}","pulls_url":"https://api.github.com/repos/ameisner/KillerAsteroids.jl/pulls{/number}","milestones_url":"https://api.github.com/repos/ameisner/KillerAsteroids.jl/milestones{/number}","notifications_url":"https://api.github.com/repos/ameisner/KillerAsteroids.jl/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ameisner/KillerAsteroids.jl/labels{/name}","releases_url":"https://api.github.com/repos/ameisner/KillerAsteroids.jl/releases{/id}","created_at":"2015-09-10T07:27:36Z","updated_at":"2015-09-10T07:27:36Z","pushed_at":"2015-09-10T22:56:02Z","git_url":"git://github.com/ameisner/KillerAsteroids.jl.git","ssh_url":"git@github.com:ameisner/KillerAsteroids.jl.git","clone_url":"https://github.com/ameisner/KillerAsteroids.jl.git","svn_url":"https://github.com/ameisner/KillerAsteroids.jl","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"Julia","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":"jeff-regier:master","ref":"master","sha":"950cf97fa68cb2bd0ed66b9d1a8bdb75def2272c","user":{"login":"jeff-regier","id":8953355,"avatar_url":"https://avatars.githubusercontent.com/u/8953355?v=3","gravatar_id":"","url":"https://api.github.com/users/jeff-regier","html_url":"https://github.com/jeff-regier","followers_url":"https://api.github.com/users/jeff-regier/followers","following_url":"https://api.github.com/users/jeff-regier/following{/other_user}","gists_url":"https://api.github.com/users/jeff-regier/gists{/gist_id}","starred_url":"https://api.github.com/users/jeff-regier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeff-regier/subscriptions","organizations_url":"https://api.github.com/users/jeff-regier/orgs","repos_url":"https://api.github.com/users/jeff-regier/repos","events_url":"https://api.github.com/users/jeff-regier/events{/privacy}","received_events_url":"https://api.github.com/users/jeff-regier/received_events","type":"User","site_admin":false},"repo":{"id":41893389,"name":"KillerAsteroids.jl","full_name":"jeff-regier/KillerAsteroids.jl","owner":{"login":"jeff-regier","id":8953355,"avatar_url":"https://avatars.githubusercontent.com/u/8953355?v=3","gravatar_id":"","url":"https://api.github.com/users/jeff-regier","html_url":"https://github.com/jeff-regier","followers_url":"https://api.github.com/users/jeff-regier/followers","following_url":"https://api.github.com/users/jeff-regier/following{/other_user}","gists_url":"https://api.github.com/users/jeff-regier/gists{/gist_id}","starred_url":"https://api.github.com/users/jeff-regier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeff-regier/subscriptions","organizations_url":"https://api.github.com/users/jeff-regier/orgs","repos_url":"https://api.github.com/users/jeff-regier/repos","events_url":"https://api.github.com/users/jeff-regier/events{/privacy}","received_events_url":"https://api.github.com/users/jeff-regier/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jeff-regier/KillerAsteroids.jl","description":"Detects asteroids that might kill us","fork":false,"url":"https://api.github.com/repos/jeff-regier/KillerAsteroids.jl","forks_url":"https://api.github.com/repos/jeff-regier/KillerAsteroids.jl/forks","keys_url":"https://api.github.com/repos/jeff-regier/KillerAsteroids.jl/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jeff-regier/KillerAsteroids.jl/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jeff-regier/KillerAsteroids.jl/teams","hooks_url":"https://api.github.com/repos/jeff-regier/KillerAsteroids.jl/hooks","issue_events_url":"https://api.github.com/repos/jeff-regier/KillerAsteroids.jl/issues/events{/number}","events_url":"https://api.github.com/repos/jeff-regier/KillerAsteroids.jl/events","assignees_url":"https://api.github.com/repos/jeff-regier/KillerAsteroids.jl/assignees{/user}","branches_url":"https://api.github.com/repos/jeff-regier/KillerAsteroids.jl/branches{/branch}","tags_url":"https://api.github.com/repos/jeff-regier/KillerAsteroids.jl/tags","blobs_url":"https://api.github.com/repos/jeff-regier/KillerAsteroids.jl/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jeff-regier/KillerAsteroids.jl/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jeff-regier/KillerAsteroids.jl/git/refs{/sha}","trees_url":"https://api.github.com/repos/jeff-regier/KillerAsteroids.jl/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jeff-regier/KillerAsteroids.jl/statuses/{sha}","languages_url":"https://api.github.com/repos/jeff-regier/KillerAsteroids.jl/languages","stargazers_url":"https://api.github.com/repos/jeff-regier/KillerAsteroids.jl/stargazers","contributors_url":"https://api.github.com/repos/jeff-regier/KillerAsteroids.jl/contributors","subscribers_url":"https://api.github.com/repos/jeff-regier/KillerAsteroids.jl/subscribers","subscription_url":"https://api.github.com/repos/jeff-regier/KillerAsteroids.jl/subscription","commits_url":"https://api.github.com/repos/jeff-regier/KillerAsteroids.jl/commits{/sha}","git_commits_url":"https://api.github.com/repos/jeff-regier/KillerAsteroids.jl/git/commits{/sha}","comments_url":"https://api.github.com/repos/jeff-regier/KillerAsteroids.jl/comments{/number}","issue_comment_url":"https://api.github.com/repos/jeff-regier/KillerAsteroids.jl/issues/comments{/number}","contents_url":"https://api.github.com/repos/jeff-regier/KillerAsteroids.jl/contents/{+path}","compare_url":"https://api.github.com/repos/jeff-regier/KillerAsteroids.jl/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jeff-regier/KillerAsteroids.jl/merges","archive_url":"https://api.github.com/repos/jeff-regier/KillerAsteroids.jl/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jeff-regier/KillerAsteroids.jl/downloads","issues_url":"https://api.github.com/repos/jeff-regier/KillerAsteroids.jl/issues{/number}","pulls_url":"https://api.github.com/repos/jeff-regier/KillerAsteroids.jl/pulls{/number}","milestones_url":"https://api.github.com/repos/jeff-regier/KillerAsteroids.jl/milestones{/number}","notifications_url":"https://api.github.com/repos/jeff-regier/KillerAsteroids.jl/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jeff-regier/KillerAsteroids.jl/labels{/name}","releases_url":"https://api.github.com/repos/jeff-regier/KillerAsteroids.jl/releases{/id}","created_at":"2015-09-04T02:07:03Z","updated_at":"2015-09-04T03:08:16Z","pushed_at":"2015-09-10T22:58:58Z","git_url":"git://github.com/jeff-regier/KillerAsteroids.jl.git","ssh_url":"git@github.com:jeff-regier/KillerAsteroids.jl.git","clone_url":"https://github.com/jeff-regier/KillerAsteroids.jl.git","svn_url":"https://github.com/jeff-regier/KillerAsteroids.jl","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"Julia","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jeff-regier/KillerAsteroids.jl/pulls/1"},"html":{"href":"https://github.com/jeff-regier/KillerAsteroids.jl/pull/1"},"issue":{"href":"https://api.github.com/repos/jeff-regier/KillerAsteroids.jl/issues/1"},"comments":{"href":"https://api.github.com/repos/jeff-regier/KillerAsteroids.jl/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/jeff-regier/KillerAsteroids.jl/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/jeff-regier/KillerAsteroids.jl/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jeff-regier/KillerAsteroids.jl/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/jeff-regier/KillerAsteroids.jl/statuses/e4d5d2076477a939a9a3cbd95dc0025d682029c9"}}}}