No project description provided
Project description
CRNPy
A Python toolbox for handling common tasks with cosmic-ray neutron probes.
The toolbox consists of a series of python routines to help researchers and practicioners convert cosmic-ray neutron observations into volumetric water content. The package includes a routine for calibration of detectors using field observations. The toolbox was developed using common libraries for scientific computing like Pandas, NumPy, Matplotlib, and SciPy.
Why building on top of Pandas
- Each sensor variable is represented by a column variable
- Each timestamp observation is represented by a row
- Each sensor dataset is represented by a table
Functionality
The toolbox seamlessly integrates with Pandas DataFrames for easy tabular data handling on top of the raw sensor data. The toolbox is desgined to read raw sensor data and append additional variables to the existing DataFrame. This way, researchers can export processed files while retaining all the raw data for better reproducibility and transparency.
- Helper functions for reading tabular data
- Helper functions to tidy datasets (e.g. fill rows with missing timestamps)
- Fill incomplete counts and flag spurious data
- Filter time series of neutron counts
- Corrections of neutron counts by atmospheric conditions and incoming neutron flux
- Conversion of neutron counts to volumetric water content
- Estimate sensing depth
- Estimate surface and sub-surface soil water storage
- Functions for calibration and validation of new detectors
- Out-of-the-box plotting functions to generate publication-quality figures
Conventions
Function documentation follows PEP 257 docstring conventions.
Notation in equations follow published articles for easy referencing and future development.
References
These references represent peer-reviewed articles that used one or more functions included in the toolbox.
Dong, J., Ochsner, T.E., Zreda, M., Cosh, M.H. and Zou, C.B., 2014. Calibration and validation of the COSMOS rover for surface soil moisture measurement. Vadose Zone Journal, 13(4). doi.org/10.2136/vzj2013.08.0148
Patrignani, A., Ochsner, T., Montag, B. and Bellinger, S., 2021. A Novel Lithium Foil Cosmic-Ray Neutron Detector for Measuring Field-Scale Soil Moisture. Frontiers in Water, 3, p.67. doi.org/10.3389/frwa.2021.673185
Franz, T.E., Wahbi, A., Zhang, J., Vreugdenhil, M., Heng, L., Dercon, G., Strauss, P., Brocca, L. and Wagner, W., 2020. Practical data products from cosmic-ray neutron sensing for hydrological applications. Frontiers in Water, 2, p.9. doi.org/10.3389/frwa.2020.00009
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 Distribution
Hashes for crnpy-0.2.post29-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b7604b030e5533acd30102859c34abc43f52b86e5b4174747f52eed73d406e63 |
|
MD5 | d3d2b920a24113099efa399b4e6a43eb |
|
BLAKE2b-256 | dc946b9f2e8f22ec407e8a470cee61d314a9fd33ae50695ab714698c6291c5b3 |