asdfy-0.1.9
توضیحات
A parallel processing library for pyasdf.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | asdfy-0.1.9 |
| نام | asdfy |
| نسخه کتابخانه | 0.1.9 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Congyue Cui |
| ایمیل نویسنده | ccui@princeton.edu |
| آدرس صفحه اصلی | https://github.com/icui/asdfy |
| آدرس اینترنتی | https://pypi.org/project/asdfy/ |
| مجوز | - |
# Asdfy
----
**A library to process ASDFDataSet(s) from [pyasdf](https://github.com/seismicdata/pyasdf/).**
----
### Prerequisites
```
pyasdf
mpi4py
```
### Installation
```
pip install asdfy
```
### Usage
##### Basic usage
```
from asdfy import ASDFProcessor
ASDFProcessor('input.h5', 'output.h5', process_func).run()
```
##### Defailed explination
TBD. Refer to ```tests/main.py``` for now. To run tests:
```
cd tests
mpi4un -n 4 python main.py
```
### ASDFProcessor
##### src
```
Union[str, Iterable[str]]
```
Path to input ASDFDataSet(s)
##### dst
```
str
```
Path to output ASDFDataSet
##### func
```
Callable[..., ASDFOutput]
```
Processing function, each argument correspond to an input dataset.
##### input_type
```
Literal['stream', 'trace', 'auxiliary', 'auxiliary_group'] = 'trace'
```
Type of input data
##### input_tag
```
Optional[str] = None
```
Input waveform tag or auxiliary group, None for using the first available
##### output_tag
```
Optional[str] = None
```
Output waveform tag or auxiliary group, None for using input_tag or input_type
##### accessor
```
bool = False
```
Pass the origional accessor to the processing function. Set to .True. if you need event or station info.
##### onerror
```
Optional[Callable[[Exception], None]] = None
```
Callback when error occurs
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.8 | Python |
نحوه نصب
نصب پکیج whl asdfy-0.1.9:
pip install asdfy-0.1.9.whl
نصب پکیج tar.gz asdfy-0.1.9:
pip install asdfy-0.1.9.tar.gz