obsplus.events.pd module¶
Module for generating a pandas dataframe from an obspy events.
- obsplus.events.pd.amplitudes_to_dataframe(cat_or_event)[source]¶
Given a catalog or event, return a dataframe of amplitudes
- obsplus.events.pd.arrivals_to_dataframe(cat_or_event)[source]¶
Given a catalog or event, return a dataframe of arrivals
- obsplus.events.pd.event_to_dataframe(cat_or_event)[source]¶
Given a catalog or event, return a DataFrame summary.
Notes
Because of the complexity of obspy catalog and event objects, this extractor makes some assumptions to determine the appropriate information to include.
These assumptions are as follows:
The origin information is based on the preferred origin, or the last origin attached to the event if the preferred origin is not set.
The event description uses the first object in the list of event descriptions.
The magnitude information is based on the preferred magnitude. Additionally, it will look for the latest magnitudes with a magnitude of “MD”, “ML”, and “MW” magnitudes and report those magnitudes.
For the origin quality information, specifically the associated and used phase counts, the information attached to origin’s OriginQuality object. If this information is not available, it will attempt to estimate this by counting the number of P and S picks and arrivals attached to the event/origin.
The updated time is the latest of all creation times attached to an object, while the reported creation time, author, and agency id are all based on the Event object itself.
- obsplus.events.pd.magnitudes_to_dataframe(cat_or_event)[source]¶
Given a catalog or event, return a dataframe of magnitudes