Installation

HinetPy needs Pyhon 3.4 or above. If you’re new to Python, I strongly recommend installing the Anaconda.

Note

There is no plan to support Python 2.7.

HinetPy

To install the latest release/stable version:

pip install HinetPy

To install the latest developing/unstable version:

pip install git+https://github.com/seisman/HinetPy.git

or:

git clone https://github.com/seisman/HinetPy
cd HinetPy
python setup.py install

If you want to uninstall HinetPy, just run:

pip uninstall HinetPy

win32tools

win32tools is a collection of tools provided by NIED Hi-net to process win32 format data. HinetPy needs catwin32 and win2sac_32. Make sure that catwin32 and win2sac_32 are in your PATH.

tar -xvf win32tools.tar.gz
cd win32tools/
make
cp catwin32.src/catwin32 win2sac.src/win2sac $HOME/bin/

For macOS users, if you fail with an fatal error as below:

s4read_data.c:3:13: fatal error: 'malloc.h' file not found
#include    <malloc.h>
            ^
1 error generated.
make[1]: *** [s4read_data.o] Error 1

Just edit line 3 of win2sac.src/s4read_data.c, and change #include <malloc.h> to #include <stdlib.h>.