pyrocko.squirrel.client.fdsn¶
Squirrel client to access FDSN web services for seismic waveforms and metadata.
Classes
|
Undocumented. |
|
Undocumented. |
|
Undocumented. |
|
Undocumented. |
|
Squirrel data-source to transparently get data from FDSN web services. |
|
Undocumented. |
- class MSeedArchive(**kwargs)[source]¶
Bases:
Archive
Undocumented.
- ♦ template¶
str
, default:'%(tmin_year)s/%(tmin_month)s/%(tmin_day)s/trace_%(network)s_%(station)s_%(location)s_%(channel)s_%(block_tmin_us)s_%(block_tmax_us)s.mseed'
- class ErrorEntry(**kwargs)[source]¶
Bases:
Object
Undocumented.
- ♦ time¶
pyrocko.util.get_time_float (
pyrocko.guts.Timestamp
)
- ♦ kind¶
str
- ♦ details¶
str
, optional
- class ErrorAggregate(**kwargs)[source]¶
Bases:
Object
Undocumented.
- ♦ site¶
str
- ♦ kind¶
str
- ♦ details¶
str
- ♦ entries¶
list
ofErrorEntry
objects, default:[]
- ♦ codes¶
list
ofpyrocko.squirrel.model.CodesNSLCE
objects, default:[]
- ♦ time_spans¶
list
oftuple
of 2 pyrocko.util.get_time_float (pyrocko.guts.Timestamp
) objects objects, default:[]
- class ErrorLog(**kwargs)[source]¶
Bases:
Object
Undocumented.
- ♦ site¶
str
- ♦ entries¶
list
ofErrorEntry
objects, default:[]
- ♦ checkpoints¶
list
ofint
objects, default:[]
- class FDSNSource(site, query_args=None, codes=None, **kwargs)[source]¶
-
Squirrel data-source to transparently get data from FDSN web services.
Attaching an
FDSNSource
object to aSquirrel
allows the latter to download station and waveform data from an FDSN web service should the data not already happen to be available locally.- ♦ site¶
str
FDSN site url or alias name (see
pyrocko.client.fdsn
).
- ♦ query_args¶
dict
ofstr
objects, optionalCommon query arguments, which are appended to all queries.
- ♦ codes¶
list
ofpyrocko.squirrel.model.CodesNSLCE
objects, optionalList of codes patterns to query via POST parameters.
- ♦ expires¶
float
(pyrocko.guts.Duration
), optionalExpiration time [s]. Information older than this will be refreshed. This only applies to station-metadata. Waveforms do not expire. If set to
None
neither type of data expires.
- ♦ cache_path¶
str
, optionalDirectory path where any downloaded waveforms and station meta-data are to be kept. By default the Squirrel environment’s cache directory is used.
bool
, default:False
If
True
, waveforms are shared with other FDSN sources in the same Squirrel environment. IfFalse
, they are kept separate.
- ♦ user_credentials¶
tuple
of 2str
objects, optionalUser and password for FDSN servers requiring password authentication
- ♦ auth_token¶
str
, optionalAuthentication token to be presented to the FDSN server.
- ♦ auth_token_path¶
str
, optionalPath to file containing the authentication token to be presented to the FDSN server.
- ♦ hotfix_module_path¶
str
(pyrocko.has_paths.Path
), optionalPath to Python module to locally patch metadata errors.