<commit_before>obspyh5
=======
hdf5 write/read support for obspy
---------------------------------

Welcome!

| **Author**: <NAME>
| **License**: MIT
| **Project page**: https://github.com/trichter/obspyh5
| **Pypi page**: https://pypi.python.org/pypi/obspyh5

Saves and writes ObsPy streams to hdf5 files.
Stats attributes are preserved if they are numbers, strings,
UTCDateTime objects or numpy arrays.
It can be used as a plugin to obspy's read function to read a whole hdf5 file.
Alternatively you can iterate over the traces in a hdf5 file with the iterh5
function.

Installation
^^^^^^^^^^^^
Install h5py and obspy. After that install obspyh5 using pip by::

    pip install obspyh5

Alternatively you can install obspyh5 by downloading the source code and
running::

    python setup.py install

Usage
^^^^^
Basic example using the obspy plugin::

    >>> from obspy import read
    >>> stream = read()  # load example stream
    >>> print stream
    ..3 Trace(s) in Stream:<commit_msg>readme: add travis link<commit_after>obspyh5
=======
hdf5 write/read support for obspy
---------------------------------

Welcome!

| **Author**: <NAME>
| **License**: MIT
| **Project page**: https://github.com/trichter/obspyh5
| **Pypi page**: https://pypi.python.org/pypi/obspyh5
| **Test status**: |buildstatus|

.. |buildstatus| image:: https://api.travis-ci.org/trichter/obspyh5.png?
    branch=master
   :target: https://travis-ci.org/trichter/obspyh5

Saves and writes ObsPy streams to hdf5 files.
Stats attributes are preserved if they are numbers, strings,
UTCDateTime objects or numpy arrays.
It can be used as a plugin to obspy's read function to read a whole hdf5 file.
Alternatively you can iterate over the traces in a hdf5 file with the iterh5
function.

Installation
^^^^^^^^^^^^
Install h5py and obspy. After that install obspyh5 using pip by::

    pip install obspyh5

Alternatively you can install obspyh5 by downloading the source code and
running::

    python setup.py install

Usage
^^^^^
Basic example using the obspy plugin::

    >>> from obspy import read
    >>> stream = read()  # load example stream
    >>> print stream
    ..3 Trace(s) in Stream:
{'fraction_non_alphanumeric': 0.13950276243093923, 'fraction_numerical': 0.01289134438305709, 'mean_word_length': 3.4989648033126293, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 23, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '280831', 'n_tokens_mistral': 695, 'n_tokens_neox': 668, 'n_words': 257}