csep.core.catalogs.CSEPCatalog.filter_spatial

CSEPCatalog.filter_spatial(region=None, update_stats=False, in_place=True)

Removes events outside of the region. This takes some time and should be used sparingly. Typically for isolating a region near the mainshock or inside a testing region. This should not be used to create gridded style data sets.

Parameters:
  • region – csep.utils.spatial.Region

  • update_stats (bool) – if true will update catalog statistics

  • in_place (bool) – if false, will create a new instance of the catalog preserving state

Returns:

self