pygmi.raster.normalisation#

Raster normalisation routine.

Classes#

Normalisation

Class Normalisation GUI.

Functions#

datacommon(data, tmp1, tmp2)

Variables used in the process routine.

norm(data, ntype)

Normalise data.

Module Contents#

class pygmi.raster.normalisation.Normalisation(parent=None)#

Bases: pygmi.misc.BasicModule

Class Normalisation GUI.

Parameters:

parent (parent, optional) – Reference to the parent routine. The default is None.

setupui()#

Set up UI.

Return type:

None.

settings(nodialog=False)#

Entry point into item.

Parameters:

nodialog (bool, optional) – Run settings without a dialog. The default is False.

Returns:

True if successful, False otherwise.

Return type:

bool

saveproj()#

Save project data from class.

Return type:

None.

pygmi.raster.normalisation.datacommon(data, tmp1, tmp2)#

Variables used in the process routine.

Parameters:
  • data (pygmi.raster.datatypes.Data.) – PyGMI raster dataset.

  • tmp1 (float) – Parameter 1. Can be min, mean or median.

  • tmp2 (float) – Parameter 2. Can be range, std, or mad.

Returns:

  • data (pygmi.raster.datatypes.Data) – PyGMI raster dataset.

  • transform (numpy array.) – Transformation applied to data.

pygmi.raster.normalisation.norm(data, ntype)#

Normalise data.

Parameters:
  • data (list) – PyGMI Data in a list.

  • ntype (str) – Normalisation type.Can be ‘interval’, ‘mean’, ‘median’ or ‘8bit’.

Returns:

data – PyGMI Data in a list.

Return type:

list