<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>Hi,</p>
<p>You can find an example in
<a class="moz-txt-link-freetext" href="http://docs.astropy.org/en/stable/visualization/normalization.html#intervals-and-normalization">http://docs.astropy.org/en/stable/visualization/normalization.html#intervals-and-normalization</a>
with MinMaxInterval, and the same apply to ZScaleInterval and
other Interval classes:<br>
</p>
<p>from astropy.visualization import ZScaleInterval<br>
a = np.random.rand(100,100)<br>
interval = ZScaleInterval()<br>
interval.get_limits(a)<br>
</p>
<p>Cheers,</p>
<p>Simon<br>
</p>
<br>
<div class="moz-cite-prefix">Le 15/11/2016 à 02:47, Gabriel Perren a
écrit :<br>
</div>
<blockquote
cite="mid:CALBDAwCT8E9PLmPGU=wJ-WySJpi0xxz0EV7R6kTKZ-UAeESgFQ@mail.gmail.com"
type="cite">
<div dir="ltr">Hi,<br>
<br>
I'd like to use the ZScaleInterval class (<a
moz-do-not-send="true"
href="http://docs.astropy.org/en/stable/api/astropy.visualization.ZScaleInterval.html">http://docs.astropy.org/en/stable/api/astropy.visualization.ZScaleInterval.html</a>)
to calculate the (zmin,zmax) values to display a .fits file. I
couldn't find any example anywhere.
<div><br>
</div>
<div>Cheers,</div>
<div>Gabriel</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
AstroPy mailing list
<a class="moz-txt-link-abbreviated" href="mailto:AstroPy@scipy.org">AstroPy@scipy.org</a>
<a class="moz-txt-link-freetext" href="https://mail.scipy.org/mailman/listinfo/astropy">https://mail.scipy.org/mailman/listinfo/astropy</a>
</pre>
</blockquote>
<br>
</body>
</html>