ZScaleInterval¶
-
class
astropy.visualization.
ZScaleInterval
(nsamples=1000, contrast=0.25, max_reject=0.5, min_npixels=5, krej=2.5, max_iterations=5)[source] [edit on github]¶ Bases:
astropy.visualization.BaseInterval
Interval based on IRAF’s zscale.
http://iraf.net/forum/viewtopic.php?showtopic=134139
Parameters: image : array_like
Input array.
nsamples : int, optional
Number of points in array to sample for determining scaling factors. Default to 1000.
contrast : float, optional
Scaling factor (between 0 and 1) for determining min and max. Larger values increase the difference between min and max values used for display. Default to 0.25.
max_reject : float, optional
If more than
max_reject * npixels
pixels are rejected, then the returned values are the min and max of the data. Default to 0.5.min_npixels : int, optional
If less than
min_npixels
pixels are rejected, then the returned values are the min and max of the data. Default to 5.krej : float, optional
Number of sigma used for the rejection. Default to 2.5.
max_iterations : int, optional
Maximum number of iterations for the rejection. Default to 5.
Methods Summary
get_limits
(values)Methods Documentation
-
get_limits
(values)[source] [edit on github]¶
-