Gaussian Decompostion of a LiDAR Waveform
Project description
gdecomp: python binding of C++ signal gaussian decomposition.
This package aims at decomposing a signal (1D numpy array) into a sum of gaussian, typically used in full waveform lidar analysis. It is used in particular to process lidar simulations produced with pytools4dart. This code is inspired from C++ code developped by DART team (Jianbo Qi, Tiangang Yin), for DART radiative transfer simulator.
- Creation date: 2019-05-24
- Author: Florian de Boissieu
Requirements
Cython and Numpy are necessary and can be installed with (they should be installed at package installation otherwise):
pip install cython numpy
Install
Package gdecomp
can be installed with:
pip install gdecomp
Example
import gdecomp
import numpy as np
import matplotlib.pyplot as plt
x=np.arange(100)
gaus=np.array([[130, 20, 5],
[50, 50, 10],
[10, 70, 5]])
y=np.zeros(x.shape)
for i in range(gaus.shape[0]):
y += gaus[i,0] / (np.sqrt(2 * np.pi)*gaus[i,2]) * np.exp(-(x - gaus[i,1])**2 / (2 * gaus[i,2]**2))
out = gdecomp.GaussianDecomposition(y)
out = np.reshape(out, (-1, 3))
fit = np.zeros(y.size)
for i in range(out.shape[0]):
fit += out[i,0] / (np.sqrt(2 * np.pi)*out[i,2]) * np.exp(-(x - out[i,1])**2 / (2 * out[i,2]**2))
line1 = plt.plot(x, y, color='k', label='waveform')
line2 = plt.plot(x, fit, color='r', linestyle='--', label='fit')
plt.legend(loc='upper right')
Aknowledgements
This package includes cmpfit source code of CMPFIT library, software developed by the University of Chicago, as Operator of Argonne Nationa Laboratory. See src/mpfit/DISCLAIMER for copyright details of that code.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Hashes for gdecomp-1.0.5-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4efb93e990c512eb6c0c8378478d0d7a035feacc20b47103f2b89ee0265230fc |
|
MD5 | 732a3657f58c2b1c119063b785f7ef9b |
|
BLAKE2b-256 | 57bbb2389ba74b92e64a4ecf87426e343d170eaff23e92843159e0fcb7a6a516 |
Hashes for gdecomp-1.0.5-cp38-cp38-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 87c8ca8dca6e850081ebe502291eebad8b55cec5644d3774b2d914abb9f782dd |
|
MD5 | 68fd01db6d65ca191554d924bab3841c |
|
BLAKE2b-256 | ca6418d8a92d25cb436118647642e5c7aa1733b3412bc7c1f0933b014a544f95 |
Hashes for gdecomp-1.0.5-cp38-cp38-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 392bff157ea69c8b5375c337dce3cc6ea057a790163092deee19644a9b6a2545 |
|
MD5 | b3126960148201f616323ebab2489f45 |
|
BLAKE2b-256 | 57b2d697aa9b8cc48e54bca2217d5723fa48eb8a960acd7411cfbb4552d4ddb6 |
Hashes for gdecomp-1.0.5-cp38-cp38-manylinux2010_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 64697c07ce241fb81cfdad7269da12053c8525b84c2dc671deeafe709fc5be88 |
|
MD5 | dc6c5e136340fd90d03605728b03c1d6 |
|
BLAKE2b-256 | 776885b2a6844b104aa9bfe0193abbe1001049000fd7c2df51f8b8e9542714e2 |
Hashes for gdecomp-1.0.5-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fd89018ddb608c609c52049a4626f9299be00800678c85db92cf6c1489b8e170 |
|
MD5 | 4d2b98e9691f9eb115a7b416302cb888 |
|
BLAKE2b-256 | 8ba840f1c1888165b6268e29f7021da9a1a334a5e927977bd452ed2b14ba1415 |
Hashes for gdecomp-1.0.5-cp37-cp37m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 19641d16b7a236aa1c1c8bee6f014bdda049941197898201d343950be2edd2fa |
|
MD5 | dfd35bcb6fa5bdbb89623d4a8d5db7a6 |
|
BLAKE2b-256 | 5b42ba76ef8cdd955b7420bdf9d9b7b284760b7e76539c04d445d5127481ca3c |
Hashes for gdecomp-1.0.5-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 882a576715c21964655d68b92d2f776e61223e14f85dfdb5f432d430d61bc3ca |
|
MD5 | 4d0985d8907578f1b69e4967083d5b24 |
|
BLAKE2b-256 | 29f85ab5ca6ac2d54a5f5e8b394dddd678db79463082f5ec52f393272dd09ffb |
Hashes for gdecomp-1.0.5-cp37-cp37m-manylinux2010_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d0076a06805660be71faab91b5d0b25165b76787d773daddde254bc2f759cb76 |
|
MD5 | 7bb524c9e09bedcc6d8ae550d127a611 |
|
BLAKE2b-256 | 09e23401d8a7f235d6aed721f699e2e70e58fcec8717e281423fdb5afa7159e6 |
Hashes for gdecomp-1.0.5-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8f55444c74fb1454924a5ff0385186139025c66a2817465c5b815864d7092edb |
|
MD5 | c3d3760b4a68404847704f8d786c18f8 |
|
BLAKE2b-256 | d098c4fa2f157f219b2b6f1b335b646d9ca5f2dc9a928b160bbe499985f988a4 |
Hashes for gdecomp-1.0.5-cp36-cp36m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | acd5efed75a28321310bf591c9d534509ebdd911daa848f521fb636166a06af0 |
|
MD5 | 9c4998f3c21140ce39c14dc1b2da624d |
|
BLAKE2b-256 | c4bc06c2e4a538c03bd7d43ef3db2750a07e3151bf36f6fbe018a88d4a99ae1c |
Hashes for gdecomp-1.0.5-cp36-cp36m-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f49d35b6cd671a67ab34f2c467e2ba291626fd99f5606912a5160479a97dbf94 |
|
MD5 | cacb82487da9819152561d08653971ba |
|
BLAKE2b-256 | fb0e85e461ae2eab46158cc7067fe0523e75264cc18579c3a449a9362b01f56f |
Hashes for gdecomp-1.0.5-cp36-cp36m-manylinux2010_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c795ebabc0db24a4e4cf77b21d4e13bf11ca3801668c549e5df954d570998bba |
|
MD5 | 1fe60bf8b9744346947f7dd6466b0fe6 |
|
BLAKE2b-256 | 7454f902cc296de6923623cbaaa2f0e5d42f44d8b3185bffe106182454cb6fae |
Hashes for gdecomp-1.0.5-cp35-cp35m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6715b40e83fef2e650a72483eb003ff3ed7662d6b40e57a57475f12a4d9fb178 |
|
MD5 | 69a295b2608f9e7bfaf46f587289f4c7 |
|
BLAKE2b-256 | 4f6c2696d5592da2c590809cb9068ee7b842cb4108056d0f00ce086ea68615e4 |
Hashes for gdecomp-1.0.5-cp35-cp35m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d7fc35e7c6f72c7e5ef63a1286b83b4561e935af9628d1775f6e8a6cbc2d3493 |
|
MD5 | ade1c33cb9c8f0a2ce5720b3fedf3d40 |
|
BLAKE2b-256 | fd6b29213e1a9a864d21333591e9f1e4e59a951750628bd64cbb71924d587620 |
Hashes for gdecomp-1.0.5-cp35-cp35m-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 122d9d371aa44a1638bb6d12cc9021a0df9743726eb413dcaf6b49ba9ae42b4a |
|
MD5 | 74c6fdc1e033363751af5aa006c4508d |
|
BLAKE2b-256 | 2be4ec0b9bd7198bbb7f3706152f908893ab66e67512634dedb3e5b99072e6cd |
Hashes for gdecomp-1.0.5-cp35-cp35m-manylinux2010_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | af0f41b09c8b49bd6b01c03dbeb91b5434462aeaf41ac4174172ebc53f55a84a |
|
MD5 | b95f532ba3b729d82a2dd1c16b30e4d4 |
|
BLAKE2b-256 | d8586ccf3fd3a6494754ff53d061c8d41200fe77a569c6f14a580bf80a587e06 |