GithubHelp home page GithubHelp logo

skubota / eew Goto Github PK

View Code? Open in Web Editor NEW
8.0 1.0 2.0 60 KB

Package eew is EEW(緊急地震速報) reader/decoder for golang

License: MIT License

Go 100.00%
eew earthquake earthquakes earthquake-early-warning japan jma decoder eew-reader

eew's Introduction

Package eew is EEW reader/decoder

GoDev Go

DESCRIPTION

Earthquake Early Warning(Japan) The Earthquake Early Warning (EEW) (緊急地震速報 ,Kinkyu- Jishin Sokuho-) is a warning which is issued just after an earthquake in Japan is detected. The warnings are issued mainly by Japan Meteorological Agency (JMA). JMA has two EEW schemes. One is for advanced users. The other is for the general public, which is mainly mentioned in detail in this article. this package support for advanced users scheme.

usage

$ go get github.com/skubota/eew

package eew

https://pkg.go.dev/github.com/skubota/eew

sample

https://play.golang.org/p/twDmdbRdCHV

package main

import (
	"fmt"
	"github.com/skubota/eew"
)

func main() {
	data := `
37 03 00 110311144702 C11
110311144616
ND20110311144640 NCN009 JD////////////// JN///
288 N381 E1429 010 76 5- RK66444 RT11/// RC0////
EBI 222 S5-04 ////// 11 220 S5-04 ////// 11 211 S5-04 ////// 11
210 S5-04 144703 10 221 S5-04 144703 10 213 S0404 ////// 11
251 S0404 144704 10 250 S0404 144711 10 241 S0404 144715 10
212 S0404 144715 10 242 S0404 144715 10 233 S0404 144715 10
300 S0404 144721 00 252 S0404 144722 00 240 S0404 144727 00
243 S0403 144719 00 231 S0403 144730 00 202 S0403 144732 00
372 S0403 144732 00 301 S0403 144733 00 230 S0403 144736 00
340 S0403 144739 00 331 S0403 144748 00
9999=
`
	fmt.Printf("%#v", eew.Decoder(data))
}

eew's People

Contributors

bclswl0827 avatar skubota avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

aachyee keinos

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.