SDPCHAIN provenance system
Project description
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?
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file sdpchainpy-1.0.1.tar.gz
.
File metadata
- Download URL: sdpchainpy-1.0.1.tar.gz
- Upload date:
- Size: 22.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
a172fc1ff9e1dac0adcb214e47ed5a237d474a9c359da4747d082e0371bb107b
|
|
MD5 |
bf6b3b1ef93de19f8b41735c206b5eca
|
|
BLAKE2b-256 |
fab00b42d450cdb1ee237dc64e129230ae3381139cd81e3fd385f52672552c62
|
File details
Details for the file sdpchainpy-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: sdpchainpy-1.0.1-py3-none-any.whl
- Upload date:
- Size: 23.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
29f7ed87fdeb1e5121a38687478b385f1f3f505fdcecf95692bbe4e63fc65a51
|
|
MD5 |
90f7c1a6cac70de1b7e19a547295eb07
|
|
BLAKE2b-256 |
eaba0f1ecc36b324e274916986fcd0afc55a99ae0996d1f97485125577e15a04
|