Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a node-red-contrib-openeew package and STA/LTA node #2

Open
andygrillo opened this issue Aug 4, 2020 · 1 comment
Open

Create a node-red-contrib-openeew package and STA/LTA node #2

andygrillo opened this issue Aug 4, 2020 · 1 comment
Labels
good first issue Good for newcomers

Comments

@andygrillo
Copy link
Member

Currently we are using a peak acceleration value to declare an earthquake. However any acceleration can trigger this (cars, people, drilling).

Short term average/long term average (STA/LTA) is well used in seismology to detect earthquakes. For OpenEEW this would work by comparing a small window of 1 second of data against a larger window of 10 seconds of data. The STA/LTA output value is then compared against a trigger threshold.

An example of this in python is here: https://github.com/openeew/openeew-detection/blob/master/openeew/detection.py

@andygrillo andygrillo added the good first issue Good for newcomers label Aug 4, 2020
@johnwalicki
Copy link
Member

Tasks:

  • Convert the algorithm (currently written in Python) to a javascript function
  • Test the javascript function in a Node-RED Function node
  • Review the function with the seismologist experts
  • Create a node-red-contrib-openeew node that runs the algorithm on message input
  • Host the npm package in this OpenEEW github (as a separate repo directory)

@johnwalicki johnwalicki changed the title Create an STA/LTA node Create a node-red-contrib-openeew package and STA/LTA node Aug 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants