eewgo

package module
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 4, 2024 License: MIT Imports: 6 Imported by: 0

README

eewgo

An EEW (Earthquake Early Warning) library implemented in pure Go.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CarlStaTrig

func CarlStaTrig(a []float64, nsta, nlta int, ratio, quiet float64) []float64

Computes the carlSTAtrig characteristic function. Translated from Obspy. https://docs.obspy.org/tutorial/code_snippets/trigger_tutorial.html#carl-sta-trig

func ClassicStaLta

func ClassicStaLta(a []float64, nsta, nlta int) []float64

Computes the standard STA/LTA from a given input array a. The length of the STA is given by nsta in samples, respectively is the length of the LTA given by nlta in samples. Translated from Obspy. https://docs.obspy.org/tutorial/code_snippets/trigger_tutorial.html#classic-sta-lta

func DelayedStaLta

func DelayedStaLta(a []float64, nsta, nlta int) []float64

Delayed STA/LTA. Translated from Obspy. https://docs.obspy.org/tutorial/code_snippets/trigger_tutorial.html#delayed-sta-lta

func RecursiveStaLta

func RecursiveStaLta(a []float64, nsta, nlta int) []float64

Recursive STA/LTA, translated from Obspy. https://docs.obspy.org/tutorial/code_snippets/trigger_tutorial.html#recursive-sta-lta

func TriggerOnset

func TriggerOnset(charfct []float64, thres1, thres2 float64, maxLen int, maxLenDelete bool) [][]int

func ZDetect

func ZDetect(a []float64, nsta int) []float64

Z-detector. Translated from Obspy. https://docs.obspy.org/tutorial/code_snippets/trigger_tutorial.html#z-detect

Types

type Filter added in v0.0.2

type Filter struct {
	// contains filtered or unexported fields
}

func NewFilter added in v0.0.2

func NewFilter() (Filter, error)

func (*Filter) Butterworth added in v0.0.2

func (f *Filter) Butterworth(data []float64, poles int, delta, lowCorner, highCorner float64, passbandType PassbandType) ([]float64, error)

func (*Filter) ChebyshevI added in v0.0.2

func (f *Filter) ChebyshevI(data []float64, poles int, delta, lowCorner, highCorner, ripple float64, passbandType PassbandType) ([]float64, error)

func (*Filter) ChebyshevII added in v0.0.2

func (f *Filter) ChebyshevII(data []float64, poles int, delta, lowCorner, highCorner, ripple float64, passbandType PassbandType) ([]float64, error)

type PassbandType added in v0.0.2

type PassbandType = int
const (
	LOWPASS PassbandType = iota
	HIGHPASS
	BANDPASS
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL