GRRateGrid#

Subclass of pandas.DataFrame, storing the Gutenberg-Richter rate values for a spatial grid. Holds additional methods to work with this data structure.

Constructor#

GRRateGrid

A subclass of pandas DataFrame that represents a grid where for each grid cell, the GR parameters a, b, and mc and number_events are stored.

Modify GRRateGrid#

GRRateGrid.strip

Remove all columns except the required ones defined in _required_cols.

GRRateGrid.add_time_index

Create MultiIndex using starttime, optionally endtime and a cell number for each spatial block.

GRRateGrid.reindex_cell_id

If the RateGrid has a MultiIndex which includes cell_id as a level, this method will update the RateGrid's index to use unique cell_id values.