SDPCHAIN
Seismology Data Preparation Module
Routines and classes providing a consistent interface for Python programs using the SDPCHAIN protocol, which includes:
-
Create or append to a process-steps.json file at each step
- the process-steps file is read from the input directory and written to the output directory. If both directories are the same the new step is appended to the existing file
-
command-line arguments:
- -d (base_dir)
- -i (in_dir), can be relative to base directory
- -o (out_dir), can be relative to base directory
- optional (input_file) or (input_files), will have input directory pre-pended
- optional -of (output_file) or -ofs (output_files), will have output dir pre-pended
- optional -f, forces writing of output file if it already exists
-
For now, these parameters must have exactly the above names in the files that use SDPCHAIN, so that setup_paths and ProcessStep process them correctly. The new ArgParser subclass should eliminate this need, but pre-populating the argparser with base_dir, in_dir and out_dir, as well as optionally input_file or input_files, output_file or output_files, and/or -f
Classes
ProcessSteps object to hold information for a process-steps file
Command-line Routines
These routines perform common functions while following the SDPCHAIN rules (process-steps file, -i, -o, -d)
sdpstep: run a standard command-line program
sdpcat: concatenate binary files
ToDo
Add sdpcode: change net and station codes?
Release files for sdpchainpy 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| sdpchainpy-1.0.1.tar.gz | 22.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| sdpchainpy-1.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 46.1 kB
Release files / sdpchainpy-1.0.1.tar.gz
| Download URL | sdpchainpy-1.0.1.tar.gz |
|---|---|
| Size | 22.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a172fc1ff9e1dac0adcb214e47ed5a237d474a9c359da4747d082e0371bb107b
|
|
BLAKE2b-256 checksum How to use checksums |
fab00b42d450cdb1ee237dc64e129230ae3381139cd81e3fd385f52672552c62
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.5
|
Release files / sdpchainpy-1.0.1-py3-none-any.whl
| Download URL | sdpchainpy-1.0.1-py3-none-any.whl |
|---|---|
| Size | 23.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
29f7ed87fdeb1e5121a38687478b385f1f3f505fdcecf95692bbe4e63fc65a51
|
|
BLAKE2b-256 checksum How to use checksums |
eaba0f1ecc36b324e274916986fcd0afc55a99ae0996d1f97485125577e15a04
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.5
|