This can be used to correct the output from a dual-flow-loop two-filter radon detector for the slow time response (~45 minutes) of the detector. It works by deconvolving the detector response from the measured signal.
This is a Python library which has grown from experimentation. It does not have a well-planned or stable API. The recommended way to use it is to
- clone the repository,
- setup a Python environment using conda,
- install
rd-deconvolve
into the environment, and - run or adapt one of the examples in the
examples
subdirectory
These steps have been tested on Ubuntu 18.04.
git clone https://github.com/agriff86/rd-deconvolve.git
- build the environment (from the instructions in the environment file). Alarmingly, this environment is 2.7G in size.
cd rd-deconvolve
./build_conda_env.sh
- activate the new environment
conda activate ./env
- compile the fast detector model
python setup.py build_ext --inplace
- run an example
cd examples/generic-1500l-deconvolution
# reads and pre-processes raw data
python clean_data.py
# outputs deconvolved data to ./data-processed
python run_deconv.py
# generate netCDF files and a plot
python plot_deconv_results.py
The deconvolution routine, based on emcee and the Boost ODE integrator, is described in this paper. Since the paper was released, we have also experimented with a backend using PyMC3.
This library is release under the MIT/X11 license.
- Alan Griffiths