CSSIO: Read and Write Seismic Data in CSS3.0 WFDISC Format
The CSSIO module includes an add-on for ObsPy - a function to write an obspy stream to CSS3.0 WFDISC format. The current version of obspy.io.css module does not support writing, so this function provides a custom implementation for saving seismic data in this format.
The CSSIO module is part of the 'ipeutils' collection of utilities for processing seismic data at the Institute of Physics of the Earth, Masaryk University.
Functions
The main function is save_stream_to_wfdisc, which takes an obspy stream
and writes the WFDISC metadata and waveform data to two separate files.
Example Usage
from obspy import read
from ipeutils.cssio import save_stream_to_wfdisc
# Read a sample seismic data file using obspy
st = read()
# Save the stream to wfdisc format
save_stream_to_wfdisc(st, filename_prefix="example_output")
Usage Notes
- The
filename_prefixparameter insave_stream_to_wfdiscshould not include the file extension. The function will create two files: one with the extension.wfdiscfor the metadata and one with the extension.wfor the waveform data. - The function will overwrite existing files with the same names, so use unique filename prefixes to avoid data loss.
Installation
Required dependencies include Python and the obspy library.
CSSIO can be installed using pip:
pip install ipeutils-cssio --upgrade
TODO
The current version of the obspy.io.css module does not read all fields
in the WFDISC format. It does not read chanid, which is an important
identifier for correctly mapping channels.
For better compatibility with the WFDISC format, we should add a function
that reads WFDISC files and fills chanid and other relevant metadata into the obspy Stream.
Metadata
Release files for ipeutils-cssio 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ipeutils_cssio-0.1.0.tar.gz | 4.2 kB | Without provenance | Details for ipeutils_cssio-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ipeutils_cssio-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for ipeutils_cssio-0.1.0-py3-none-any.whl |
Total release size: 8.5 kB
Release files / ipeutils_cssio-0.1.0.tar.gz
| Download URL | ipeutils_cssio-0.1.0.tar.gz |
|---|---|
| Size | 4.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bf91a7ab4a2593cd9eb53e1d9d8fbb641222fdc63a4ddab29060162aee65309c
|
|
BLAKE2b-256 checksum How to use checksums |
cd434b647cfdddb973728b60041a8762dd79e7921df502a4ba794b42391dac1a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.2
|
Release files / ipeutils_cssio-0.1.0-py3-none-any.whl
| Download URL | ipeutils_cssio-0.1.0-py3-none-any.whl |
|---|---|
| Size | 4.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3345b577d834b1353adb4c7d43cb6cdc338ac668b7ad14fa03023eccac1c9fa8
|
|
BLAKE2b-256 checksum How to use checksums |
2c9b1cf95913c7048f3e7a51809a0358a1ff135abcd8365cbfd74f395bf014b3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.2
|
Security for ipeutils-cssio 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.