{"action":"created","issue":{"url":"https://api.github.com/repos/astropy/astropy/issues/5535","repository_url":"https://api.github.com/repos/astropy/astropy","labels_url":"https://api.github.com/repos/astropy/astropy/issues/5535/labels{/name}","comments_url":"https://api.github.com/repos/astropy/astropy/issues/5535/comments","events_url":"https://api.github.com/repos/astropy/astropy/issues/5535/events","html_url":"https://github.com/astropy/astropy/pull/5535","id":193012399,"number":5535,"title":"WIP: Add classes to build RGB images based on Lupton et al. (2004)","user":{"login":"parejkoj","id":1606089,"avatar_url":"https://avatars.githubusercontent.com/u/1606089?v=3","gravatar_id":"","url":"https://api.github.com/users/parejkoj","html_url":"https://github.com/parejkoj","followers_url":"https://api.github.com/users/parejkoj/followers","following_url":"https://api.github.com/users/parejkoj/following{/other_user}","gists_url":"https://api.github.com/users/parejkoj/gists{/gist_id}","starred_url":"https://api.github.com/users/parejkoj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/parejkoj/subscriptions","organizations_url":"https://api.github.com/users/parejkoj/orgs","repos_url":"https://api.github.com/users/parejkoj/repos","events_url":"https://api.github.com/users/parejkoj/events{/privacy}","received_events_url":"https://api.github.com/users/parejkoj/received_events","type":"User","site_admin":false},"labels":[{"id":145666575,"url":"https://api.github.com/repos/astropy/astropy/labels/Enhancement","name":"Enhancement","color":"fad8c7","default":false},{"id":168752043,"url":"https://api.github.com/repos/astropy/astropy/labels/visualization","name":"visualization","color":"c7def8","default":false},{"id":373761720,"url":"https://api.github.com/repos/astropy/astropy/labels/Work%20in%20progress","name":"Work in progress","color":"f9d0c4","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2016-12-02T01:47:31Z","updated_at":"2016-12-03T00:06:48Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/astropy/astropy/pulls/5535","html_url":"https://github.com/astropy/astropy/pull/5535","diff_url":"https://github.com/astropy/astropy/pull/5535.diff","patch_url":"https://github.com/astropy/astropy/pull/5535.patch"},"body":"This code implements the [Lupton et al. (2004) algorithm](http://adsabs.harvard.edu/abs/2004PASP..116..133L) for RGB image stacks, to make optimally colored images from 3 separate bands. Not all functionality is implemented (some LSST C++ code for better interpolation over saturated pixels will need to be ported eventually), but the code has been used by a few different people to make color JPEGs and PNGs from 1-3 FITS images.\r\n\r\nYet to do:\r\n * I still need to convert the code to use astropy's new `interval.ZScaleInterval` in place of `ZScaleMapping`.\r\n * Many of the tests just run the code and check that a file was generated, they don't actually check the contents of the generated image. We could do so, but there's not an independent set of images to check against, so the best I can think is to generate some images and save those as a baseline to test against. Whether that's necessary for incorporation into astropy, I don't know.\r\n * Convert `replaceSaturatedPixels` from `lsst::afw::display`. This should probably be a future feature: it's going to be a bit of work to convert that C++ into relatively fast python.\r\n\r\nThis code was pulled from lsst.afw.display."},"comment":{"url":"https://api.github.com/repos/astropy/astropy/issues/comments/264595894","html_url":"https://github.com/astropy/astropy/pull/5535#issuecomment-264595894","issue_url":"https://api.github.com/repos/astropy/astropy/issues/5535","id":264595894,"user":{"login":"bsipocz","id":6788290,"avatar_url":"https://avatars.githubusercontent.com/u/6788290?v=3","gravatar_id":"","url":"https://api.github.com/users/bsipocz","html_url":"https://github.com/bsipocz","followers_url":"https://api.github.com/users/bsipocz/followers","following_url":"https://api.github.com/users/bsipocz/following{/other_user}","gists_url":"https://api.github.com/users/bsipocz/gists{/gist_id}","starred_url":"https://api.github.com/users/bsipocz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bsipocz/subscriptions","organizations_url":"https://api.github.com/users/bsipocz/orgs","repos_url":"https://api.github.com/users/bsipocz/repos","events_url":"https://api.github.com/users/bsipocz/events{/privacy}","received_events_url":"https://api.github.com/users/bsipocz/received_events","type":"User","site_admin":false},"created_at":"2016-12-03T00:06:48Z","updated_at":"2016-12-03T00:06:48Z","body":"@parejkoj - High level docs would mean to add it to somewhere here: http://docs.astropy.org/en/latest/visualization/index.html#astropy-visualization, possibly as a sub page, with a paragraph and at least one example. "}}
{"actor":{"display_login":"bsipocz"}}