quakeio
Project description
quake-io
QuakeIO is a library of utilities for parsing ground motion files. Interfaces are provided for Python, Matlab, and the command line.
Formats
Format | Read | Write | Reference |
---|---|---|---|
[quakeio.]json |
☑ | ☑ | schema |
csmip |
☐ | ☐ | |
csmip.v2 |
☑ | ☐ | CSMIP |
eqsig |
☑ | ☑ | eqsig |
PEER.NGA |
☑ | ☐ | |
plain.tsv |
☐ | ☐ | |
opensees |
☐ | ☐ | |
plain.csv |
☐ | ☐ | |
mdof |
☐ | ☐ | |
SimCenter.Event | ☐ | ☐ |
Python API
import quakeio
csmip_event = quakeio.read("event.zip")
csmip_event["channel-01"].accel.plot()
csmip_event["chan001"].plot()
csmip_event["chan001"].plot_spect()
Command Line Interface
usage: quakeio [MODE] [OPTIONS] [FILE]
Options:
-c/--calculate COMMAND
-f/--from FORMAT
-t/--to FORMAT
$ quakeio -a rot:30 chan001.v2 -t html
Rotate and calculate Husid series.
$ quakeio -c 'rot:30;husid;' chan001.v2
$ cat chan001.v2 | quakeio -a rot:30 -f csmip.v2 -t html | pandoc -f html -t pdf
$ cat chan001.v2 \
| quakeio -a rot:30 -f csmip.v2 -t html -x [*].data \
| pandoc -f html -t pdf
MATLAB Interface
Motion = quakeIO.read('csmip.zip')
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
quakeio-0.0.6.tar.gz
(12.3 kB
view hashes)
Built Distribution
quakeio-0.0.6-py3-none-any.whl
(12.9 kB
view hashes)