class craftutils.observation.image.LogStretch(astropy.visualization.stretch.BaseStretch)

A log stretch.

The stretch is given by:

\[y = \frac{\log{(a x + 1)}}{\log{(a + 1)}}\]

Parameters

afloat

The a parameter used in the above formula. a must be greater than 0. Default is 1000.

Public members

LogStretch(a=1000.0)

Initialize self. See help(type(self)) for accurate signature.

__call__(values, clip=True, out=None, invalid=None)

Transform values using this stretch.

Properties

property inverse

A stretch object that performs the inverse operation.