Skip to main content

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


Download files

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

Source Distribution

crnpy-0.2.post29.tar.gz (20.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

crnpy-0.2.post29-py3-none-any.whl (20.4 kB view details)

Uploaded Python 3

File details

Details for the file crnpy-0.2.post29.tar.gz.

File metadata

  • Download URL: crnpy-0.2.post29.tar.gz
  • Upload date:
  • Size: 20.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.17

File hashes

Hashes for crnpy-0.2.post29.tar.gz
Algorithm Hash digest
SHA256 36b512754f338457efdcb6cfe71613e9c6432df8b3da6ac83b1e5c947d16997d
MD5 b0c58e0e0e89d4ea887cb59a2f92d172
BLAKE2b-256 e45a83b5edb92cbb3e1212dc147c9bec1b0148bb7fcda1c44d8949d71b1ecf45

See more details on using hashes here.

File details

Details for the file crnpy-0.2.post29-py3-none-any.whl.

File metadata

  • Download URL: crnpy-0.2.post29-py3-none-any.whl
  • Upload date:
  • Size: 20.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.17

File hashes

Hashes for crnpy-0.2.post29-py3-none-any.whl
Algorithm Hash digest
SHA256 b7604b030e5533acd30102859c34abc43f52b86e5b4174747f52eed73d406e63
MD5 d3d2b920a24113099efa399b4e6a43eb
BLAKE2b-256 dc946b9f2e8f22ec407e8a470cee61d314a9fd33ae50695ab714698c6291c5b3

See more details on using hashes here.

Supported by

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