Giter Site home page Giter Site logo

youshanliu / ancc Goto Github PK

View Code? Open in Web Editor NEW
11.0 2.0 4.0 3.62 MB

Some scripts for ambient noise tomography (support parallel computing and auto-correlation computation)

License: GNU General Public License v3.0

C 16.81% Fortran 47.11% Makefile 0.61% Python 34.85% Shell 0.62%

ancc's Introduction

Lanuguage Python Version Downloads Commits Size License

ANCC

Some scripts and programs for ambient noise tomography, such as computing cross-correlation, auto-correlation (with parallel computing), and extracting dispersion curves. It can also output prestack cross-correlation functions.

  1. Convert the REFTEK file format (or other file formats) to the SAC file format (scripts)

    reftek2sac.py -> file convertor with the folder structure, such as /root/stage_and_station_name/day/

    reftek2sac_p.py -> parallel processing of reftek2sac.py

    reftek2sac2.py -> file convertor with the folder structure, such as /root/stage/station_name/day/

    reftek2sac2_p.py -> a parallel processing of reftek2sac2.py

    Actually, it is easily modified to convert other file formats by using the flexibility of ObsPy's read function, i.e. change the FORMAT parameter in the read of the ObsPy. A file format should be given, it will improve the performance.

  2. Cut daily data into predefined-segment data (scripts)

    This program first merges daily data then cut it into predefined segments. Simultaneously, it resamples data at each natural sampling point.

    cutdata.py -> cut daily data into predefined-segment data with the folder structure, such as /root/stage_and_station_name/day/

    cutdata_p.py -> parallel processing of cutdata.py

    cutdata2.py -> cut daily data into predefined-segment data with the folder structure, such as /root/stage/station_name/day/

    cutdata2_p.py -> parallel processing of cutdata2.py

  3. Auto- or cross-correlation and frequency-time analysis (Ambient Noise Auto- or Cross-Correlation)

    It includes the AFTAN to extract the dispersion curve.

  4. Generate instrument response automatically (makePZfiles)

    In the makePZfiles folder, you can generate instrument response polezero files automatically using resp2pz.py or makePZs.py, once fill an Excel sheet based on your project log. The former can take responses of sensor and DAS into consideration, it then merges them into one PZ file. While the latter only takes the response of the sensor into consideration, then genertes corresponding PZ files automatically.

Prerequisites

The MPICH/OpenMPI is required. There are many MPI release versions. Usually, MPICH is recommended.
The number of processes that can be used by the former (MPICH) is twice the number of physical 
cores, while the number of processes that can be used by the latter (OpenMPI) is equal to the 
number of physical cores.
The FFTW3, SAC, and MPI (MPICH2/OpenMPI) softwares are required by the ANCC.
The ObsPy is required by the scripts.
The xlrd is required by the makePZs.py and resp2pz.py.

ANCC is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

ANCC is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/.

ancc's People

Contributors

youshanliu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

ancc's Issues

在新版的ANCC6.4中最后户相关的SAC文件的经纬度问题

你好刘老师,我在使用你的新版ANCC6.3时发现一个问题,就是最后的互相关计算结果的SAC文件,在SAC中经度坐标写成纬度坐标了,纬度坐标写成经度坐标了。我将run.py文件中的saclst knetwk kstnm stla stlo delta f %s | awk '{print $2,$3,$4,$5,$6}' >> stations.junk,修改为saclst knetwk kstnm stla stlo delta f %s | awk '{print $2,$3,$5,$4,$6}' >> stations.junk ,在互相关结果中经纬度就正确写入了。

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.