[AstroPy] Example using ZScaleInterval?
Simon Conseil
simon at sconseil.fr
Tue Nov 15 05:22:21 EST 2016
Hi,
You can find an example in
http://docs.astropy.org/en/stable/visualization/normalization.html#intervals-and-normalization
with MinMaxInterval, and the same apply to ZScaleInterval and other
Interval classes:
from astropy.visualization import ZScaleInterval
a = np.random.rand(100,100)
interval = ZScaleInterval()
interval.get_limits(a)
Cheers,
Simon
Le 15/11/2016 à 02:47, Gabriel Perren a écrit :
> Hi,
>
> I'd like to use the ZScaleInterval class
> (http://docs.astropy.org/en/stable/api/astropy.visualization.ZScaleInterval.html)
> to calculate the (zmin,zmax) values to display a .fits file. I
> couldn't find any example anywhere.
>
> Cheers,
> Gabriel
>
>
> _______________________________________________
> AstroPy mailing list
> AstroPy at scipy.org
> https://mail.scipy.org/mailman/listinfo/astropy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/astropy/attachments/20161115/6d20af2e/attachment.html>
More information about the AstroPy
mailing list