pygmi.raster.show_table#

Routine which displays a table graphically with various stats.

Classes#

BasicStats

Show a summary of basic stats.

ClusterStats

Show a summary of basic statistics.

Functions#

basicstats_calc(data)

Calculate statistics.

savetable(ofile, bands, cols, data)

Save tabular data.

Module Contents#

class pygmi.raster.show_table.BasicStats(parent=None)#

Bases: pygmi.misc.ContextModule

Show a summary of basic stats.

Parameters:

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

setupui()#

Set up UI.

Return type:

None.

combo()#

Combo.

Return type:

None.

run()#

Entry point into the routine, used to run context menu item.

Return type:

None.

save()#

Save Table.

Returns:

True if successful, False otherwise.

Return type:

bool

pygmi.raster.show_table.basicstats_calc(data)#

Calculate statistics.

Parameters:

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

Returns:

  • bands (list) – Band list, currently only ‘Data Column’

  • cols (list) – Columns for the table

  • dattmp (list) – List of arrays containing statistics.

class pygmi.raster.show_table.ClusterStats(parent=None)#

Bases: pygmi.misc.ContextModule

Show a summary of basic statistics.

Parameters:

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

setupui()#

Set up UI.

Return type:

None.

combo()#

Combo.

Return type:

None.

run()#

Entry point into the routine, used to run context menu item.

Returns:

True if successful, False otherwise.

Return type:

bool

save()#

Save Table.

Returns:

True if successful, False otherwise.

Return type:

bool

pygmi.raster.show_table.savetable(ofile, bands, cols, data)#

Save tabular data.

Parameters:
  • ofile (str) – Output file name.

  • bands (list) – List of bands.

  • cols (list) – List of column headings.

  • data (list) – List of arrays containing statistics.

Return type:

None.