Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/schenton/seedlink2taos_py
A Python program that fetches seismic waveform data from IRIS and writes to TDengine database.
https://github.com/schenton/seedlink2taos_py
Last synced: 2 months ago
JSON representation
A Python program that fetches seismic waveform data from IRIS and writes to TDengine database.
- Host: GitHub
- URL: https://github.com/schenton/seedlink2taos_py
- Owner: schenton
- License: apache-2.0
- Created: 2020-05-29T07:08:34.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-05-29T07:19:37.000Z (over 4 years ago)
- Last Synced: 2024-08-02T07:11:15.653Z (5 months ago)
- Language: Python
- Size: 1.17 MB
- Stars: 11
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-tdengine - seedlink2taos_py - A Python program that fetches seismic waveform data from IRIS and writes to TDengine database. (Dataset)
README
# seedlink2taos_py
A Python program that fetches seismic waveform data from IRIS and writes to TDengine database.## 程序说明
1. 简介:一个简化版的示例程序,从IRIS 获取MiniSeed地震数据,使用obspy将MiniSeed数据解包成采样点,并将采样点按照时间序列存入TDengine。
2. 需提前安装obspy包,可以通过`pip install obspy` 进行安装。
3. 存入数据后,可使用grafana显示某个台站的地震波形。## TDengine数据库 sql语句
在运行程序前,需要提前创建数据库和超级表
1. 创建数据库 create database seisflink;
2. 选择数据库 use seisflink;
3. 创建超级表 create table seismometer (ts TIMESTAMP, data INT) TAGS(net BINARY(20), sta BINARY(20), loc BINARY(20), chn BINARY(20) );
4. 每一个台站对应一张表。如seisflink.IU_ANMO_00_BHZ## taos数据库相关
1. Windows下使用,请安装TDengine Windows client驱动,并将taos.dll taos.lib放入程序子lib文件夹。
2. Linux下使用,安装TDengine的Linux cline驱动驱动下载地址https://www.taosdata.com/cn/getting-started/,源码地址:https://github.com/taosdata/TDengine