SeisCat API
Start here to navigate the SeisCat source code.
seiscat
Main script for seiscat.
- copyright:
2022-2023 Claudio Satriano <satriano@ipgp.fr>
- license:
GNU General Public License v3.0 or later (https://www.gnu.org/licenses/gpl-3.0-standalone.html)
fdsnws
FDSN webservices functions for seiscat.
- copyright:
2022-2023 Claudio Satriano <satriano@ipgp.fr>
- license:
GNU General Public License v3.0 or later (https://www.gnu.org/licenses/gpl-3.0-standalone.html)
- class seiscat.fdsnws.QueryArgs(config, suffix, first_query)[source]
Bases:
objectBuild query arguments for FDSN client.
db
Database functions for seiscat.
- copyright:
2022-2023 Claudio Satriano <satriano@ipgp.fr>
- license:
GNU General Public License v3.0 or later (https://www.gnu.org/licenses/gpl-3.0-standalone.html)
- seiscat.db.check_db_exists(config, initdb)[source]
Check if database file exists.
- Parameters:
config – config object
initdb – if True, create new database file
- seiscat.db.get_catalog_stats(config)[source]
Get a string with catalog statistics.
- Parameters:
config – config object
- Returns:
string with catalog statistics
- seiscat.db.read_events_from_db(config)[source]
Read events from database. Return a list of events.
- Parameters:
config – config object
- Returns:
list of events, each event is a dictionary
print
Printing functions for seiscat.
- copyright:
2022-2023 Claudio Satriano <satriano@ipgp.fr>
- license:
GNU General Public License v3.0 or later (https://www.gnu.org/licenses/gpl-3.0-standalone.html)
plot
Plotting functions for seiscat.
- copyright:
2022-2023 Claudio Satriano <satriano@ipgp.fr>
- license:
GNU General Public License v3.0 or later (https://www.gnu.org/licenses/gpl-3.0-standalone.html)
utils
Utility functions for seiscat.
- copyright:
2022-2023 Claudio Satriano <satriano@ipgp.fr>
- license:
GNU General Public License v3.0 or later (https://www.gnu.org/licenses/gpl-3.0-standalone.html)
- seiscat.utils.err_exit(msg)[source]
Print an error message and exit.
- Parameters:
msg – error message
- seiscat.utils.read_config(config_file, configspec=None)[source]
Read a config file.
- Parameters:
config_file – path to the config file
configspec – configspec object
- Returns:
config object