seiscat 0.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- seiscat/__init__.py +3 -0
- seiscat/_version.py +21 -0
- seiscat/conf/configspec.conf +92 -0
- seiscat/configobj/__init__.py +2453 -0
- seiscat/configobj/_version.py +2 -0
- seiscat/configobj/validate.py +1474 -0
- seiscat/db.py +139 -0
- seiscat/fdsnws.py +157 -0
- seiscat/plot.py +211 -0
- seiscat/scripts/seiscat.py +85 -0
- seiscat/utils.py +132 -0
- seiscat-0.1.dist-info/LICENSE.txt +674 -0
- seiscat-0.1.dist-info/METADATA +129 -0
- seiscat-0.1.dist-info/RECORD +17 -0
- seiscat-0.1.dist-info/WHEEL +5 -0
- seiscat-0.1.dist-info/entry_points.txt +2 -0
- seiscat-0.1.dist-info/top_level.txt +1 -0
seiscat/__init__.py
ADDED
seiscat/_version.py
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
|
|
2
|
+
# This file was generated by 'versioneer.py' (0.19) from
|
|
3
|
+
# revision-control system data, or from the parent directory name of an
|
|
4
|
+
# unpacked source archive. Distribution tarballs contain a pre-generated copy
|
|
5
|
+
# of this file.
|
|
6
|
+
|
|
7
|
+
import json
|
|
8
|
+
|
|
9
|
+
version_json = '''
|
|
10
|
+
{
|
|
11
|
+
"date": "2023-06-19T16:31:15+0200",
|
|
12
|
+
"dirty": false,
|
|
13
|
+
"error": null,
|
|
14
|
+
"full-revisionid": "a4afb182ca082425186dff2611b293f7fc82063b",
|
|
15
|
+
"version": "0.1"
|
|
16
|
+
}
|
|
17
|
+
''' # END VERSION_JSON
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
def get_versions():
|
|
21
|
+
return json.loads(version_json)
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
# Configuration file for seiscat
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## SQLite database
|
|
5
|
+
## Event information is stored in a SQLite database, in a table named "events".
|
|
6
|
+
## The following fields will be created:
|
|
7
|
+
## - evid: event ID
|
|
8
|
+
## - time: event origin time (UTC date time)
|
|
9
|
+
## - lat: event latitude (decimal degrees)
|
|
10
|
+
## - lon: event longitude (decimal degrees)
|
|
11
|
+
## - depth: event depth (km, positive down)
|
|
12
|
+
## - mag: event magnitude (magnitude units)
|
|
13
|
+
## - mag_type: event magnitude type
|
|
14
|
+
# Database file name
|
|
15
|
+
db_file = string(default=seiscat.sqlite)
|
|
16
|
+
# List of extra fields to add to the database (not used by seiscat)
|
|
17
|
+
# ex.: extra_field_names = field1, field2, field3
|
|
18
|
+
extra_field_names = force_list(default=None)
|
|
19
|
+
# List of extra fields types (SQLite types)
|
|
20
|
+
# ex.: extra_field_types = TEXT, REAL, BOOLEAN
|
|
21
|
+
extra_field_types = force_list(default=None)
|
|
22
|
+
# List of extra fields default values (or None)
|
|
23
|
+
# ex.: extra_field_defaults = "", 0.0, False
|
|
24
|
+
extra_field_defaults = force_list(default=None)
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
## FDSN event webservice URL or shortcut
|
|
28
|
+
# It can be an ObsPy supported shortcut (ex., ISC, USGS, RESIF)
|
|
29
|
+
# or a full URL (ex., http://www.isc.ac.uk/fdsnws/event/1/)
|
|
30
|
+
fdsn_event_url = string(default=ISC)
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
## Event selection criteria
|
|
34
|
+
## Use "None" to signify no limit
|
|
35
|
+
# Start time for event selection (UTC date time or None)
|
|
36
|
+
# ex.: start_time = 2021-08-23T00:00:00
|
|
37
|
+
start_time = string(default=None)
|
|
38
|
+
# End time for event selection (UTC date time or None)
|
|
39
|
+
# ex.: end_time = 2021-08-24T00:00:00
|
|
40
|
+
end_time = string(default=None)
|
|
41
|
+
# Recheck period (string or None).
|
|
42
|
+
# Use a string with the format "X unit" where X is an integer and unit is
|
|
43
|
+
# one of the following: "days", "hours", "minutes", "seconds" (case insensitive
|
|
44
|
+
# and plural or singular).
|
|
45
|
+
# ex.: recheck_period = 1 day
|
|
46
|
+
# ex.: recheck_period = 10 hours
|
|
47
|
+
# This option is only used if end_time is None. Every time the program is run,
|
|
48
|
+
# it will check if new events have been added or if existing events have been
|
|
49
|
+
# updated during the recheck_period.
|
|
50
|
+
recheck_period = string(default=None)
|
|
51
|
+
# Geographic box selection (decimal degrees or None)
|
|
52
|
+
lat_min = float(min=-90, max=90, default=None)
|
|
53
|
+
lat_max = float(min=-90, max=90, default=None)
|
|
54
|
+
lon_min = float(min=-180, max=360, default=None)
|
|
55
|
+
lon_max = float(min=-180, max=360, default=None)
|
|
56
|
+
# Geographic circular selection.
|
|
57
|
+
# Note, this will override the box selection if both are specified
|
|
58
|
+
# Center of circular selection (decimal degrees or None)
|
|
59
|
+
lat0 = float(min=-90, max=90, default=None)
|
|
60
|
+
lon0 = float(min=-180, max=360, default=None)
|
|
61
|
+
# Miminum and maximum radius of circular selection (decimal degrees or None)
|
|
62
|
+
radius_min = float(min=0, default=None)
|
|
63
|
+
radius_max = float(min=0, default=None)
|
|
64
|
+
# Depth selection (km, positive down, or None)
|
|
65
|
+
depth_min = float(default=None)
|
|
66
|
+
depth_max = float(default=None)
|
|
67
|
+
# Magnitude selection (magnitude units or None)
|
|
68
|
+
mag_min = float(default=None)
|
|
69
|
+
mag_max = float(default=None)
|
|
70
|
+
# List of event types (or None)
|
|
71
|
+
# ex.: event_type = earthquake
|
|
72
|
+
event_type = force_list(default=None)
|
|
73
|
+
# List of event types to exclude (or None)
|
|
74
|
+
# ex.: event_type_exclude = quarry blast
|
|
75
|
+
event_type_exclude = force_list(default=None)
|
|
76
|
+
## You can add as many additional criteria as you want by using a suffix
|
|
77
|
+
## (example "_1").
|
|
78
|
+
## Note that every omitted parameter will be considered as None (no limit).
|
|
79
|
+
## So, if you want for example the same time limits for the second set of
|
|
80
|
+
## criteria, you have to specify them again.
|
|
81
|
+
## Examples:
|
|
82
|
+
# start_time_1 = 2022-01-01T00:00:00
|
|
83
|
+
# end_time_1 = 2022-01-31T00:00:00
|
|
84
|
+
# recheck_period_1 = 12 hours
|
|
85
|
+
# lat_min_1 = 12.5
|
|
86
|
+
# lat_max_1 = 18.5
|
|
87
|
+
# lon_min_1 = -62.5
|
|
88
|
+
# lon_max_1 = -58.5
|
|
89
|
+
# depth_min_1 = None
|
|
90
|
+
# depth_max_1 = None
|
|
91
|
+
# mag_min_1 = None
|
|
92
|
+
# mag_max_1 = None
|