csep.core.catalogs.CSEPCatalog.filter

CSEPCatalog.filter(statements=None, in_place=True)

Filters the catalog based on statements. This function takes about 60% of the run-time for processing UCERF3-ETAS simulations, so likely all other simulations. Implementations should try and limit how often this function will be called.

Parameters
  • statements (str, iter) – logical statements to evaluate, e.g., [‘magnitude > 4.0’, ‘year >= 1995’]

  • in_place (bool) – return new instance of catalog

Returns

instance of AbstractBaseCatalog, so that this function can be chained.

Return type

self