Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sdpchainpy-1.0b2.tar.gz (22.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sdpchainpy-1.0b2-py3-none-any.whl (23.8 kB view details)

Uploaded Python 3

File details

Details for the file sdpchainpy-1.0b2.tar.gz.

File metadata

  • Download URL: sdpchainpy-1.0b2.tar.gz
  • Upload date:
  • Size: 22.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.13

File hashes

Hashes for sdpchainpy-1.0b2.tar.gz
Algorithm Hash digest
SHA256 41b4377b8a721016fadcc6824f2998d8395d1172b892a76495c3ae9063897c1a
MD5 ee2c4c1eff1ace5dfe45f56f9f72f92b
BLAKE2b-256 d35bf81490ecfbae26d76c41eb63660da570eacee8445c5722fba58df7e2e2ed

See more details on using hashes here.

File details

Details for the file sdpchainpy-1.0b2-py3-none-any.whl.

File metadata

  • Download URL: sdpchainpy-1.0b2-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.9.13

File hashes

Hashes for sdpchainpy-1.0b2-py3-none-any.whl
Algorithm Hash digest
SHA256 c0ad5253777c272f2d864ac3022033f082ef6d98a9e73bb15d71cbe5047f3774
MD5 a67c756ab22956095e38c8630ffb7bcf
BLAKE2b-256 c1838473fd6b2385b6879677aabef7239861c25d954a908eca9ba60a29bf3b6e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page