obspy.clients.filesystem.sds.Client.__init__¶
-
Client.
__init__
(sds_root, sds_type='D', format='MSEED', fileborder_seconds=30, fileborder_samples=5000)[source]¶ Initialize a SDS local filesystem client.
>>> from obspy.clients.filesystem.sds import Client >>> client = Client("/my/SDS/archive/root") # doctest: +SKIP
Parameters: - sds_root (str) – Root directory of SDS archive.
- sds_type (str) – SDS data type identifier, one single character. Types
recommended by the SDS definition are: ‘D’ - Waveform data,
‘E’ - Detection data, ‘L’ - Log data, ‘T’ - Timing data,
‘C’ - Calibration data, ‘R’ - Response data, ‘O’ - Opaque data. Can
also be wildcarded by setting to
?
or*
. - format (str) – File format the data is stored in, see
read()
for a list of file formats supported by ObsPy. Usually, SDS archives are stored in “MSEED” format. Can be set toNone
for file format autodetection (slowing down the reading). - fileborder_seconds (float) – Defines in which cases the client checks the
previous/next daily file for the requested data (data in SDS
archives usually spill over on the day break, at least for a few
seconds). For example setting
fileborder_seconds=30
means that for a request withstarttime
at00:00:29
UTC (or anendtime
at23:59:31
), the previous daily file is also checked, if it contains matching data. The maximum of bothfileborder_seconds
andfileborder_samples
is used when determining if previous/next day should be checked for data. - fileborder_samples (int) – Similar to
fileborder_seconds
. The given number of samples is converted to seconds by mapping the band code of the requested channel to sampling frequency. The maximum of bothfileborder_seconds
andfileborder_samples
is used when determining if previous/next day should be checked for data.