File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -238,7 +238,22 @@ def filter_catalog(
238238 max_depth = None ,
239239 region = None ,
240240 ) -> CSEPCatalog :
241+ """
242+ Wrapper for pyCSEP catalog filters, to constrain a catalog to a given time and magnitude
243+ range, as well to a spatial region.
244+
245+ Args:
246+ start_date (datetime.datetime): Initial datetime
247+ end_date (datetime.datetime): Final datetime
248+ min_mag (float): Minimum magnitude to filter
249+ max_mag (float): Maximum magnitude to filter
250+ min_depth (float): Minimum depth to filter (positive downwards from surface)
251+ max_depth (float): Maximum depth to filter (positive downwards from surface)
252+ region (csep.core.regions.CartesianGrid2D): Spatial domain to filter
241253
254+ Returns:
255+ Filtered catalog
256+ """
242257 filters = []
243258 if start_date :
244259 filters .append (
You can’t perform that action at this time.
0 commit comments