Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement zscale stretch #4773

Closed
astrofrog opened this issue Apr 12, 2016 · 6 comments
Closed

Implement zscale stretch #4773

astrofrog opened this issue Apr 12, 2016 · 6 comments

Comments

@astrofrog
Copy link
Member

See this thread for details on how to implement this. If I understand correctly, this should be implemented as an interval class since it should ultimately return a min/max for scaling.

@saimn
Copy link
Contributor

saimn commented Apr 12, 2016

We use an implementation of zscale which can be found at several places (used also in Ginga) but seems to be based on the one of stsci_python/numdisplay:
https://trac.stsci.edu/ssb/stsci_python/browser/stsci_python/trunk/numdisplay/lib/stsci/numdisplay/zscale.py?rev=19347
So I guess this code could be used in Astropy (and moved to an interval class), as numdisplay's license is BSD ?

@astrofrog
Copy link
Member Author

@saimn - yes, since the licenses are compatible that would be an option!

@pllim
Copy link
Member

pllim commented Apr 12, 2016

c/c @parejkoj

@parejkoj
Copy link
Contributor

I have an implementation from @ctslater already checked in to the lupton_rgb branch I'm working on (where I needed this):

https://github.com/parejkoj/astropy/blob/luptonRGB/astropy/visualization/lupton_rgb.py#L38

@saimn
Copy link
Contributor

saimn commented May 11, 2016

@astrofrog - Can be closed.

@astrofrog
Copy link
Member Author

Thanks!

@astrofrog astrofrog reopened this May 11, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants