Skip to main content

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

Metadata

Release files for crnpy 0.2.post29

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for crnpy 0.2.post29
File Size Uploaded Provenance Actions
crnpy-0.2.post29.tar.gz 20.8 kB Without provenance Details for crnpy-0.2.post29.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for crnpy 0.2.post29
File Interpreter ABI Platform Actions
crnpy-0.2.post29-py3-none-any.whl Python 3 none any Details for crnpy-0.2.post29-py3-none-any.whl

Total release size: 41.2 kB

Release files / crnpy-0.2.post29.tar.gz

Download URL crnpy-0.2.post29.tar.gz
Size 20.8 kB
Tags Source
SHA-256 checksum
How to use checksums
36b512754f338457efdcb6cfe71613e9c6432df8b3da6ac83b1e5c947d16997d
BLAKE2b-256 checksum
How to use checksums
e45a83b5edb92cbb3e1212dc147c9bec1b0148bb7fcda1c44d8949d71b1ecf45
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.17

Release files / crnpy-0.2.post29-py3-none-any.whl

Download URL crnpy-0.2.post29-py3-none-any.whl
Size 20.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b7604b030e5533acd30102859c34abc43f52b86e5b4174747f52eed73d406e63
BLAKE2b-256 checksum
How to use checksums
dc946b9f2e8f22ec407e8a470cee61d314a9fd33ae50695ab714698c6291c5b3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.17

Security for crnpy 0.2.post29

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page