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

IRAF z-scale #27

Open
mileslucas opened this issue Feb 27, 2020 · 1 comment · May be fixed by #28
Open

IRAF z-scale #27

mileslucas opened this issue Feb 27, 2020 · 1 comment · May be fixed by #28
Labels
good first issue Good for newcomers help wanted Extra attention is needed

Comments

@mileslucas
Copy link
Member

Everyone's favorite DS9/IRAF feature!

This feature would allow some way of defining the image scale according to IRAF's z-scale. This method requires some simple statistics and fitting and should return a minimum and maximum color.

Example Usage

using AstroImages
img = load("image.fits")
cmin, cmax = zscale(img, args...)

plot(img, cmin=cmin, cmax=cmax)

References

@giordano giordano added good first issue Good for newcomers help wanted Extra attention is needed labels Feb 27, 2020
Devagio added a commit to Devagio/AstroImages.jl that referenced this issue May 12, 2021
@Devagio Devagio linked a pull request May 12, 2021 that will close this issue
@mileslucas
Copy link
Member Author

mileslucas commented Mar 27, 2022

Hey, I realized I wrote this code a while back in the PlotUtils.jl repository, which allows using Plots.jl like

using Plots # Reexports PlotUtils
heatmap(transpose(img), clims=zscale)

I think we can copy a version of that here (although #2 would make this redundant), with improvements if any can be found.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants