pygmi.pfmod.show_table#

Routine which displays a table graphically with various stats.

Classes#

BasicStats3D

Show a summary of basic stats.

Functions#

basicstats3d_calc(lmod)

Calculate statistics.

savetable(ofile, bands, cols, data)

Save tabular data.

Module Contents#

class pygmi.pfmod.show_table.BasicStats3D(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.pfmod.show_table.basicstats3d_calc(lmod)#

Calculate statistics.

Parameters:

lmod (PyGMI LithModel.) – PyGMI lithology model.

Returns:

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

  • cols (list) – Columns for the table

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

pygmi.pfmod.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.