Code Monkey home page Code Monkey logo

noisecut's Introduction

NoiseCut

DOI

NoiseCut is a Python package for denoising seismic records and specializes in denoising Ocean Bottom Seismometer (OBS) data. It effectively separates long-lasting narrowband signals from broadband transients using harmonic-percussive separation algorithms (Zali et al., 2021 & Zali et al., 2023). The advantage of NoiseCut is that it preserves the earthquake signal with its entire frequency and amplitude after denoising.

example

Links

Paper: https://se.copernicus.org/articles/14/181/2023/se-14-181-2023.pdf

Paper: https://pubs.geoscienceworld.org/ssa/srl/article/92/6/3668/606262/Volcanic-Tremor-Extraction-and-Earthquake

Usage example

After installing the package to denoise a signal, you can use the following code. Outputs are the denoised signal and a figure showing the spectrogram of the input signal, the separated noise, and the denoised signal in the frequency range of [0-1] Hz.

import noisecut
import obspy

st = obspy.read('file_name')
hps_trace, spectrograms = noisecut.noisecut(st[0], ret_spectrograms=True)
noisecut.plot_noisecut_spectrograms(*spectrograms)

Installation instructions

You can clone the public repository:

git clone https://github.com/ZahraZali/NoiseCut

Once you have a copy of the source, you can cd to NoiseCut directory and install it with:

python setup.py install

You need the Numpy version <= 1.21.

Licence

NoiseCut is licenced under the GNU Affero General Public License (AGPLv3).

Contact

noisecut's People

Contributors

zahrazali avatar emolch avatar

Stargazers

HyeJeong Kim avatar  avatar  avatar Alireza Niksejel avatar Ivan Genik avatar dIOGO LOC avatar YaoShi avatar Kasper D. Fischer avatar Null avatar Hasbi Shiddiqi avatar Yasunori Sawaki avatar  avatar  avatar Simon Stähler avatar  avatar Sanxi Ai avatar Deniz Ertuncay avatar Maria Tsekhmistrenko avatar  avatar Josh Russell avatar

Watchers

Charles avatar Kasper D. Fischer avatar  avatar  avatar

noisecut's Issues

Unable to install

Hello, I am currently having issues installing NoiseCut. So far, I have attempted to create a new conda environement "conda create -n noisecut python=3.9". After activating the environment, I then run "python setup.py install" from the NoiseCut directory, but the installation fails at the scipy step. If I manually install scipy, it then fails at the obspy step. Once again, if I manually install obspy, there is an incompatibility between the version of matplotlib and numpy.

Do you have any suggestions to help me get this working? I am working with OBS data, and this seems like a very promising method! Thanks for your time.

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.