Metadata-Version: 2.1
Name: pysegd3
Version: 1.0.2
Author: Maximilien Lehujeur
Author-email: maximilien.lehujeur@univ-eiffel.fr
License: GPL3
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: POSIX :: Linux
Classifier: Operating System :: Microsoft :: Windows
Requires-Python: >=3.7
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: numpy
Requires-Dist: pytest
Requires-Dist: matplotlib

# PYSEGD3 

Standalone package to read/write segd rev3 files in python

## Install 
### From Pypi
```bash
pip install pysegd3
``` 

### Form Github (sources)
```bash 
git clone https://github.com/mlehujeur/pysegd3.git
python -m pip install -e pysegd3 
```

## Usages
### Load a segd rev 3 file
```python
from pysegd3.readsegd3 import read_segd_rev3

for (trace_header, trace_data) in read_segd_rev3(segdfilename):
    print(trace_header)  # a python dictionnary built like obspy trace stats header
    print(trace_data)  # a numpy array
```

### Load as an obspy stream
Obspy is not included in this package
```bash
pip install obspy
```

```python
from pysegd3.readsegd3_as_obspy import read_segd_rev3_as_obspy

stream = read_segd_rev3_as_obspy(segdfilename)
print(stream)
```

