Subroutines for reading and writing seismic data in the CSS3.0 format.
Project description
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.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ipeutils_cssio-0.1.0.tar.gz.
File metadata
- Download URL: ipeutils_cssio-0.1.0.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bf91a7ab4a2593cd9eb53e1d9d8fbb641222fdc63a4ddab29060162aee65309c
|
|
| MD5 |
8868197cf158a7b21346f74978ad82c6
|
|
| BLAKE2b-256 |
cd434b647cfdddb973728b60041a8762dd79e7921df502a4ba794b42391dac1a
|
File details
Details for the file ipeutils_cssio-0.1.0-py3-none-any.whl.
File metadata
- Download URL: ipeutils_cssio-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3345b577d834b1353adb4c7d43cb6cdc338ac668b7ad14fa03023eccac1c9fa8
|
|
| MD5 |
6b961b411294704f3b6032f2e1cdfc02
|
|
| BLAKE2b-256 |
2c9b1cf95913c7048f3e7a51809a0358a1ff135abcd8365cbfd74f395bf014b3
|