Skip to main content

An ambient noise package

Project description

NoiseFlow

Actions Status coverage docs supported versions docs

Prerequisites

NoiseFlow now supports Clang and GCC compiler in MacOS and Linux system separately, and all installation processes are under the conda environment, and we recommend to use miniconda. Make sure to install the following pre-packages before installing noiseflow:

If you use Clang in Mac, please install OpenMP via brew as following:

brew install openmp

And use pip and conda to install the following packages:

pip install joblib

conda install -c conda-forge numpy scipy matplotlib 
conda install -c conda-forge obspy
conda install -c conda-forge fftw (动态库)
conda install -c conda-forge pybind11 (头文件)
conda install -c conda-forge xtensor xsimd xtl xtensor-blas xtensor-python (可能是静态库)
conda install -c conda-forge xtensor-fftw  #(usually failed at most time)  

The xtensor-fftw and KFR need to be installed from source, first download them:

git clone https://github.com/OUCyf/noiseflow.git
cd noiseflow
git submodule init
git submodule update

Note the xtensor-fftw do not support M1 chip, and if it is failed to install via conda, you can install it from source into conda environment as $CONDA_PREFIX

cd ./external/xtensor-fftw
mkdir build && cd build
cmake .. -DCMAKE_INSTALL_PREFIX=$CONDA_PREFIX
make install

The KFR package is C++ DSP framework, should be installed in ./extern/kfr from source

cd ./external/kfr
mkdir build && cd build
cmake .. -DCMAKE_INSTALL_PREFIX=$CONDA_PREFIX
make install

Installation

Now you can install NoiseFlow. If you use MacOS, please make sure to use Clang as the complier

export CXX=clang++
# unset CXX
python setup.py install

If you use Linux, please use GCC as the compiler

export CXX=g++-13
python setup.py install

If you use HPC with module tool, you can use both Clang and GCC, for example using NOTS in Rice University.

# use gcc
module load GCC/13.1.0
export CXX=g++
python setup.py install
INCLUDE_CMAKE_EXTENSION=1 pip install .

# use clang
module load GCCcore/11.2.0
module load Clang/13.0.1
export CXX=clang++
python setup.py install
conda install -c conda-forge stockwell

NOISEFLOW_USE_CPP=1 pip install --no-binary :all: noiseflow --no-cache-dir

git submodule add https://gitclone.com/github.com/kfrlib/kfr.git extern/kfr

w

License

Noiseflow is dual-licensed, available under both commercial and apache license.

If you want to use noiseflow in a commercial product or a closed-source project, you need to purchase a Commercial License.

stockwell: 'numpy>=1.18', scipy, fftw, ['cp36-', 'cp37-', 'cp38-', 'cp39-', 'cp310-*']

INSTALL (NOETS)

  • conda:
brew install fftw
conda install -c conda-forge fftw(没用)
conda install -c conda-forge pybind11 (头文件)
conda install -c conda-forge xtensor xsimd xtl xtensor-blas xtensor-python (可能是静态库)
cd ./external/xtensor-fftw
mkdir build && cd build

myenv = $(conda env list | grep ' \* ' | awk '{print $1}')
conda_prefix = $(conda info --base)
export CMAKE_PREFIX_PATH="${conda_prefix}/envs/${myenv}"


cmake .. -DCMAKE_INSTALL_PREFIX=$CONDA_PREFIX -DCMAKE_PREFIX_PATH=$CONDA_PREFIX
make install

[build-system]

cmake = '^3.18.0' fftw = '^3.3.10' pybind11 = '^2.10.4' xtensor = '^0.24.6' xsimd = '8.0.5' # when the version is larger than 8.0.5, it will got error in compiling stage. xtl = '^0.7.5' xtensor_blas = '^0.20.0' xtensor_python = '^0.26.1' xtensor_fftw = '^0.2.6' # not show in conda env kfr = '^5.0.2' # not show in conda env

[optional-for-mac]

libomp = '^16.0.6' # via brew

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

noiseflow-0.1.0.tar.gz (50.9 kB view details)

Uploaded Source

Built Distributions

noiseflow-0.1.0-cp311-cp311-win_amd64.whl (67.6 kB view details)

Uploaded CPython 3.11 Windows x86-64

noiseflow-0.1.0-cp311-cp311-manylinux_2_35_x86_64.whl (816.2 kB view details)

Uploaded CPython 3.11 manylinux: glibc 2.35+ x86-64

noiseflow-0.1.0-cp311-cp311-macosx_12_0_x86_64.whl (914.6 kB view details)

Uploaded CPython 3.11 macOS 12.0+ x86-64

noiseflow-0.1.0-cp310-cp310-win_amd64.whl (67.6 kB view details)

Uploaded CPython 3.10 Windows x86-64

noiseflow-0.1.0-cp310-cp310-manylinux_2_35_x86_64.whl (802.3 kB view details)

Uploaded CPython 3.10 manylinux: glibc 2.35+ x86-64

noiseflow-0.1.0-cp310-cp310-macosx_12_0_x86_64.whl (912.1 kB view details)

Uploaded CPython 3.10 macOS 12.0+ x86-64

noiseflow-0.1.0-cp39-cp39-manylinux_2_35_x86_64.whl (803.0 kB view details)

Uploaded CPython 3.9 manylinux: glibc 2.35+ x86-64

noiseflow-0.1.0-cp39-cp39-macosx_12_0_x86_64.whl (912.6 kB view details)

Uploaded CPython 3.9 macOS 12.0+ x86-64

File details

Details for the file noiseflow-0.1.0.tar.gz.

File metadata

  • Download URL: noiseflow-0.1.0.tar.gz
  • Upload date:
  • Size: 50.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.11.4 Darwin/21.6.0

File hashes

Hashes for noiseflow-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c221f331d14b7fa4e9640b61f2c0132a401a4381f569d0b1c2d84bc890ac1e43
MD5 d80b74846ceb5b44a6a6b0a4c153e6a6
BLAKE2b-256 1ccc1ec4ebe9b18c88136b7fdb3de170480cc801c3a3f67f423ba6b73e27eeae

See more details on using hashes here.

File details

Details for the file noiseflow-0.1.0-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: noiseflow-0.1.0-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 67.6 kB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.9.13 Windows/10

File hashes

Hashes for noiseflow-0.1.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 6793813a07300111919044d85cf2f7b0cb53d4178efb438b7a6853db249d2176
MD5 8bf004c9e93f232bb20ebe3dd60d16d8
BLAKE2b-256 ab0bd5ebcb789594e6ff2083e1f4ba7a261435f22aadcb8ee59b8a6751cd842c

See more details on using hashes here.

File details

Details for the file noiseflow-0.1.0-cp311-cp311-manylinux_2_35_x86_64.whl.

File metadata

File hashes

Hashes for noiseflow-0.1.0-cp311-cp311-manylinux_2_35_x86_64.whl
Algorithm Hash digest
SHA256 9c4e360b21c1049cb0676471b80e476bd5f33acd15be39dc011d4e585584a1b7
MD5 369768c2042e8e615562e599c9d89558
BLAKE2b-256 1ffe720d396f7758e1c919f294976805397cab00923e768aadd87206c4532595

See more details on using hashes here.

File details

Details for the file noiseflow-0.1.0-cp311-cp311-macosx_12_0_x86_64.whl.

File metadata

File hashes

Hashes for noiseflow-0.1.0-cp311-cp311-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 1068e82512149d31e59554dcdef24305135edf801adef5c565e08ba6896581d4
MD5 509c024db69031988241c552845fe03b
BLAKE2b-256 677a5df38acb6b5828e59a2bbce8b70605e0d6d35b29ddafe7de47e9025355a3

See more details on using hashes here.

File details

Details for the file noiseflow-0.1.0-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: noiseflow-0.1.0-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 67.6 kB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.9.13 Windows/10

File hashes

Hashes for noiseflow-0.1.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 5d301a6f1d5cf7c6d4d21c490030c74176bcfd6ee7f4a5fdc6df20400b0cc1ba
MD5 3f4fe4287a4f7e0fca0cc8c659d8841c
BLAKE2b-256 dbb4b23076cbeb435f07f8cf0c44b28e70bea4db02dd38ed591fea176d5ed367

See more details on using hashes here.

File details

Details for the file noiseflow-0.1.0-cp310-cp310-manylinux_2_35_x86_64.whl.

File metadata

File hashes

Hashes for noiseflow-0.1.0-cp310-cp310-manylinux_2_35_x86_64.whl
Algorithm Hash digest
SHA256 6b2524007be1bd2ea0d6bbe40741dcc659b95e2953bc63bfb016f5b5de777003
MD5 77936251356450b16515890bc09d588e
BLAKE2b-256 912f0c600c73bf7803606187a138477abaf369bb3a74c748c8cb948689acebfa

See more details on using hashes here.

File details

Details for the file noiseflow-0.1.0-cp310-cp310-macosx_12_0_x86_64.whl.

File metadata

File hashes

Hashes for noiseflow-0.1.0-cp310-cp310-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 29d4a8ca88d0256ee2dba74f7e3ae93626e995a74f6ae1a1d7fcde295584986a
MD5 88830746f5677efac54b8a6c8951d96f
BLAKE2b-256 1f94cfd57f86d76e0a71e10377299dfcd6daa7f5695bd71e2db8910798f669c6

See more details on using hashes here.

File details

Details for the file noiseflow-0.1.0-cp39-cp39-manylinux_2_35_x86_64.whl.

File metadata

File hashes

Hashes for noiseflow-0.1.0-cp39-cp39-manylinux_2_35_x86_64.whl
Algorithm Hash digest
SHA256 2c6bb1312c3a1b17187b38b1a3b9937d9e3e0a0ff4484017e6357eeff4aa6474
MD5 71775f4dae772a41814b665be2ee490b
BLAKE2b-256 d382d958826394493ac7d329423966b67375cd11fef44b569f5e7e15bd9bdf0a

See more details on using hashes here.

File details

Details for the file noiseflow-0.1.0-cp39-cp39-macosx_12_0_x86_64.whl.

File metadata

File hashes

Hashes for noiseflow-0.1.0-cp39-cp39-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 13ef297479e21c16c9e0dcfad96671ad524695f1ee6f685b101e84040e23fe97
MD5 c9f9443d0f6747818f09cf78a65762c5
BLAKE2b-256 599a5e9f88325ecc68047fb7d4c3fb614a53bf7bf76e714d87d74ca0833df4f5

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page