Git Product home page Git Product logo

ppsd's Introduction

Noise Without Earthquakes Detection

This repository contains Python scripts for detecting and analyzing noise in seismic data without earthquake events. It uses a Convolutional Neural Network (CNN) to process seismic data and extract relevant features for noise analysis. The repository is organized as follows:

Description

This project aims to detect and analyze noise in seismic data, excluding earthquake events. It utilizes a CNN-based model to process seismic data, making it easier to identify and understand noise patterns.

Getting Started

Prerequisites

Make sure you have the following prerequisites installed:

  • Python 3.x
  • Required Python libraries (e.g., NumPy, pandas, TensorFlow, ObsPy)
  • ObsPy's FDSN client (for seismic data retrieval)
  • Matplotlib (for data visualization)

Usage

To use the scripts, follow these steps:

  1. Clone this repository to your local machine.
  2. Install the required Python libraries listed above.
  3. Run the scripts with the necessary command-line arguments.

Parameters

The scripts accept several command-line arguments for configuring the data processing and analysis. Here's a brief description of the parameters:

  • yr, mth, day: Year, month, and day of data processing.
  • num: Number of days of processing.
  • sta: Network station for processing.
  • cha: Channel of seismic data.
  • h1, h2: Start and end hours for processing.
  • f1, f2: First and last frequency for the analysis.
  • yr2, mth2, day2: Year, month, and day for comparison.
  • num2: Number of days for comparison.

Example

python spec_estimation_plot_yr.py 2023 10 06 5 UW STA1 EHZ 0 4 0.1 10 2023 10 05 1

This command processes seismic data from station UW.STA1, channel EHZ, for 5 days starting from October 6, 2023, plots the PSD curves, and compares them with data from October 5, 2023.

Initialization

The initialization section of the script sets up parameters and loads data specific to the chosen network station. It also initializes the AI model for processing.

Data Processing

This section handles data retrieval, preprocessing, and feature extraction. The AI model processes the data to identify noise patterns.

AI Model

The AI model used for noise detection is a Convolutional Neural Network (CNN). The model is loaded and used for predictions on the seismic data.

Plotting PPSD

The script generates Power Spectral Density (PPSD) plots to visualize noise levels across different frequencies. It also calculates and plots the 5th and 95th percentiles.

Comparing Data

The final section compares the generated PPSD plots with data from another specified date to identify any significant changes in noise levels.

Feel free to customize and adapt these scripts to your specific seismic data analysis needs.

Acknowledgments

This work is based on the research and scripts developed by Loïs Papin.

Note: Ensure that you have access to the necessary seismic data and appropriate permissions before using these scripts.

For any questions or issues, please open an issue on this repository.

ppsd's People

Contributors

papinlois avatar loicbachelot avatar

Stargazers

 avatar Scott_Fu avatar Gin avatar  avatar

Watchers

 avatar  avatar

Forkers

jeasonxiu cxhost

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.