pygmi.seis.del_rec#

Delete SEISAN records.

Classes#

DeleteRecord

GUI to delete records.

Quarry

GUI to implement quarry event filtering.

Functions#

import_for_plots(ifile[, dind])

Import data to plot.

Module Contents#

class pygmi.seis.del_rec.DeleteRecord(parent=None)#

Bases: pygmi.misc.BasicModule

GUI to delete records.

Parameters:

parent (parent, optional) – Reference to the parent routine. The default is 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.

delrec(ifile)#

Delete record.

Parameters:

ifile (str) – Input filename.

Return type:

None.

class pygmi.seis.del_rec.Quarry(parent=None)#

Bases: pygmi.misc.BasicModule

GUI to implement quarry event filtering.

Parameters:

parent (parent, optional) – Reference to the parent routine. The default is 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.

calcrq2()#

Calculate the Rq value.

Returns:

newevents – New events

Return type:

list

calcrq2b()#

Calculate the Rq value.

Returns:

newevents – New events

Return type:

list

randrq(nmax, nstep, nrange, day)#

Calculate random Rq values.

Parameters:
  • nmax (int) – DESCRIPTION.

  • nstep (int) – DESCRIPTION.

  • nrange (list) – DESCRIPTION.

  • day (tuple) – DESCRIPTION.

Returns:

rperc – Percentiles

Return type:

list

randrqb(N1, day, num)#

Calculate random Rq values.

Parameters:
  • N1 (TYPE) – DESCRIPTION.

  • day (tuple) – DESCRIPTION.

  • num (int) – DESCRIPTION.

Returns:

rperc – Percentiles

Return type:

list

pygmi.seis.del_rec.import_for_plots(ifile, dind='R')#

Import data to plot.

Parameters:
  • ifile (str) – Input file name.

  • dind (str, optional) – Distance indicator. The default is ‘R’.

Returns:

datd – Output data.

Return type:

dictionary