All Projects → seisman → Hinetpy

seisman / Hinetpy

Licence: mit
A Python package to request and process seismic waveform data from Hi-net.

Programming Languages

python
139335 projects - #7 most used programming language

Labels

Projects that are alternatives of or similar to Hinetpy

Win32
Build Win32 apps with Dart!
Stars: ✭ 256 (+509.52%)
Mutual labels:  win32
Windows 10 Toast Notifications
Python library to display Windows 10 Toast Notifications
Stars: ✭ 672 (+1500%)
Mutual labels:  win32
Vst3sdk
VST 3 Plug-In SDK
Stars: ✭ 853 (+1930.95%)
Mutual labels:  win32
Wxwidgets
wxWidgets is a free and open source cross-platform C++ framework for writing advanced GUI applications using native controls.
Stars: ✭ 3,994 (+9409.52%)
Mutual labels:  win32
Sigma coding youtube
This is a collection of all the code that can be found on my YouTube channel Sigma Coding.
Stars: ✭ 611 (+1354.76%)
Mutual labels:  win32
Jdupes
A powerful duplicate file finder and an enhanced fork of 'fdupes'.
Stars: ✭ 790 (+1780.95%)
Mutual labels:  win32
simple-opengl-loader
An extensible, cross-platform, single-header C/C++ OpenGL loader library.
Stars: ✭ 71 (+69.05%)
Mutual labels:  win32
Weatherapp
Cute weather app built in Electron
Stars: ✭ 32 (-23.81%)
Mutual labels:  win32
Walk
A Windows GUI toolkit for the Go Programming Language
Stars: ✭ 5,813 (+13740.48%)
Mutual labels:  win32
Xtd forms
Modern c++17 library to create native gui for Microsoft Windows, Apple macOS and Linux.
Stars: ✭ 25 (-40.48%)
Mutual labels:  win32
Wubi Lex
WIN10系统自带五笔的码表与短语词库安装、管理工具( 可将五笔替换为郑码等其他形码输入法 ),并可增强微软五笔的设置、热键等功能。 发布后的软件仅890KB, 只要一个EXE文件( 绿色免安装 )。软件已自带五笔86、98、091、新世纪码表,以及极点五笔、QQ五笔、 微软五笔默认词库、昱琼词库、海峰词库等。甚至自带了郑码大词库、可以一键把微软五笔替换为郑码输入法。
Stars: ✭ 385 (+816.67%)
Mutual labels:  win32
Swift Win32
A Win32 application framework for Swift
Stars: ✭ 586 (+1295.24%)
Mutual labels:  win32
Mt
tlock, RWMUTEX, Collab, USM, RSem and other C++ templates for Windows to provide read/write mutex locks, various multithreading tools, collaboration, differential updates and more
Stars: ✭ 18 (-57.14%)
Mutual labels:  win32
Photodemon
A free portable photo editor focused on pro-grade features, high performance, and maximum usability.
Stars: ✭ 356 (+747.62%)
Mutual labels:  win32
Nginx Rtmp Win32
Nginx-rtmp-module Windows builds.
Stars: ✭ 854 (+1933.33%)
Mutual labels:  win32
wcecl
Allows to run Windows CE applications on Windows!
Stars: ✭ 54 (+28.57%)
Mutual labels:  win32
Sumatrapdf
SumatraPDF reader
Stars: ✭ 7,462 (+17666.67%)
Mutual labels:  win32
Nim duilib framework
网易云信Windows应用界面开发框架(基于Duilib)。招人招人,windows/mac/duilib/qt/electron http://mobile.bole.netease.com/bole/boleDetail?id=19904&employeeId=510064bce318835c&key=all&type=2&from=timeline
Stars: ✭ 960 (+2185.71%)
Mutual labels:  win32
Yori
Yori is a CMD replacement shell that supports backquotes, job control, and improves tab completion, file matching, aliases, command history, and more.
Stars: ✭ 948 (+2157.14%)
Mutual labels:  win32
Glbind
Single file OpenGL API loader.
Stars: ✭ 23 (-45.24%)
Mutual labels:  win32

.. image:: https://github.com/seisman/HinetPy/actions/workflows/tests.yml/badge.svg :target: https://github.com/seisman/HinetPy/actions/workflows/tests.yml

.. image:: https://codecov.io/gh/seisman/HinetPy/branch/master/graph/badge.svg :target: https://codecov.io/gh/seisman/HinetPy

.. image:: https://img.shields.io/github/release/seisman/HinetPy.svg :target: https://github.com/seisman/HinetPy/releases

.. image:: https://img.shields.io/pypi/v/HinetPy.svg :target: https://pypi.org/project/HinetPy/

.. image:: https://img.shields.io/pypi/pyversions/HinetPy.svg :target: https://pypi.org/project/HinetPy/

.. image:: https://img.shields.io/github/license/seisman/HinetPy.svg :target: https://github.com/seisman/HinetPy/blob/master/LICENSE

.. image:: https://img.shields.io/badge/code%20style-black-000000.svg :target: https://github.com/psf/black

.. image:: https://zenodo.org/badge/23509035.svg :target: https://zenodo.org/badge/latestdoi/23509035

HinetPy <https://github.com/seisman/HinetPy>_ is a Python package to simplify tedious data request, download and format conversion tasks related to NIED Hi-net_.

NIED Hi-net_ | Source Code_ | Documentation_ | 中文文档_

.. _NIED Hi-net: http://www.hinet.bosai.go.jp/ .. _Source Code: https://github.com/seisman/HinetPy .. _Documentation: https://seisman.github.io/HinetPy .. _中文文档: https://seisman.github.io/HinetPy/zh_CN/

Features

  • Request continuous and event waveform data from Hi-net
  • Select Hi-net/F-net stations inside a box or circular region
  • Convert waveform data from win32 format to SAC format
  • Extract instrumental response as SAC polezero file
  • Multithreads downloading and conversion to speedup

A simple example

Here is an example showing how to use HinetPy to request continuous waveform data from Hi-net, convert the data into SAC format, and extract instrumental responses as SAC polezero files.

.. code-block:: python

#!/usr/bin/env python
# -*- coding: utf-8 -*-

from HinetPy import Client, win32

# You need a Hi-net account to access the data
client = Client("username", "password")

# Let's try to request 20-minute data starting at 2010-01-01T00:00(GMT+0900)
# of the Hi-net network (with an internal network code of '0101')
data, ctable = client.get_continuous_waveform("0101", "201001010000", 20)

# The request and download process usually takes a few minutes
# waiting for data request ...
# waiting for data download ...

# Now you can see the data and corresponding channel table in your working directory
# waveform data (in win32 format) : 0101_201001010000_20.cnt
# channel table (plaintext file)  : 0101_20100101.ch

# Let's convert data from win32 format to SAC format
win32.extract_sac(data, ctable)

# Let's extract instrument response as PZ files from the channel table file
win32.extract_pz(ctable)

# Now you can see several SAC and SAC_PZ files in your working directory

# N.NGUH.E.SAC  N.NGUH.U.SAC  N.NNMH.N.SAC
# N.NGUH.N.SAC  N.NNMH.E.SAC  N.NNMH.U.SAC
# ...
# N.NGUH.E.SAC_PZ  N.NGUH.U.SAC_PZ  N.NNMH.N.SAC_PZ
# N.NGUH.N.SAC_PZ  N.NNMH.E.SAC_PZ  N.NNMH.U.SAC_PZ
# ...

Citation

If you find this package useful, please consider citing via:

.. image:: https://zenodo.org/badge/23509035.svg :target: https://zenodo.org/badge/latestdoi/23509035

License

This project is licensed under the terms of the MIT license.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].