pygmi.raster.show_table#
Routine which displays a table graphically with various statistics.
Classes#
Show a summary of basic stats. |
|
Show a summary of basic statistics. |
Functions#
|
Calculate statistics. |
|
Save tabular data. |
Module Contents#
- class pygmi.raster.show_table.BasicStats(parent=None)#
Bases:
pygmi.misc.ContextModuleShow a summary of basic stats.
- Parameters:
parent – Reference to the parent routine. The default is None.
- setupui()#
Set up UI.
- combo()#
Combo.
- run()#
Entry point into the routine, used to run context menu item.
- 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 tabledattmp (
list) – List of arrays containing statistics.
- Return type:
tuple[list, list, list]
- class pygmi.raster.show_table.ClusterStats(parent=None)#
Bases:
pygmi.misc.ContextModuleShow a summary of basic statistics.
- Parameters:
parent – Reference to the parent routine. The default is None.
- setupui()#
Set up UI.
- combo()#
Combo.
- 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.