Skip to main content

The neptoon package makes CRNS processing and research simple.

Project description

neptoon

PyPI version DOI Documentation License PyPI Downloads

neptoon is a Python package for processing Cosmic-Ray Neutron Sensor (CRNS) data to produce field-scale soil moisture estimates.

Key Features

  • Modular Correction Pipeline: Apply multiple correction methods for pressure, incoming intensity, humidity, and biomass
  • Quality Assessment: Built-in data quality checks integrated with SaQC
  • Sensor Calibration: Tools for N0 calibration using soil sampling data
  • External Data Integration: Automatic integration with NMDB.eu for incoming neutron corrections
  • Multiple Interfaces: Use via Python API, configuration files, or GUI
  • Published Science: Implementations based on peer-reviewed methodologies
  • Reproducibility: Built-in reporting, reproduceable workflows, and comprehensive documentation

Installation

pip install neptoon

Isolated Environment with uv (recommended):

uv init --python 3.10
uv add neptoon

Isolated Environment with conda:

conda create -n neptoon python=3.10 ipykernel
conda activate neptoon
pip install neptoon

For more detailed instructions, see the installation documentation.

Quick Start

from neptoon.io.read import DataHubFromConfig
from neptoon.workflow.process_with_yaml import ProcessWithConfig
from neptoon.config import ConfigurationManager

# Load configurations
config = ConfigurationManager()
config.load_configuration(file_path="path/to/sensor_config.yaml")
config.load_configuration(file_path="path/to/processing_config.yaml")

# Process data
yaml_processor = ProcessWithConfig(configuration_object=config)
yaml_processor.run_full_process()

Ready-to-use examples with sample data are available in the neptoon_examples repository.

Documentation

Comprehensive documentation is available at:

Project Status

Neptoon is currently in active development. Version 1.0, focusing on stability and robustness, is expected soon. Future plans include:

  • Roving CRNS processing capabilities
  • Server/Docker versions for automated processing

Support and Contribution

Authors and Acknowledgments

Lead Developers:

Additional Contributors:

  • Fredo Erxleben
  • Steffen Zacharias
  • Rafael Rosolem
  • Daniel Rasche

License

Neptoon is licensed under the MIT License. See the LICENSE file for details.

Citation

Power, D., Schrön, M., Erxleben, F., Rosolem, R., & Zacharias, S. (2025). "Neptoon". Zenodo. doi:10.5281/zenodo.19916004

BibTex
@software{Neptoon,
  author       = {Power, Daniel and Schrön, Martin and Erxleben, Fredo and Rosolem, Rafael and Zacharias, Steffen},
  title        = {Neptoon},
  month        = sep,
  year         = 2025,
  publisher    = {Zenodo},
  doi          = {10.5281/zenodo.19916004},
  url          = {https://doi.org/10.5281/zenodo.19916004},
}

More Detailed Documentation

The agent/ directory contains in-depth guides covering project conventions and AI-assisted development workflows.

Conventions

These documents define the coding standards and architectural patterns used throughout the project. They serve as the single source of truth for both human contributors and AI assistants.

  • Logging - Logger setup and log level conventions.
  • Testing - Test organization, fixtures, markers, and CI pipeline.
  • ColumnInfo - Column naming system and enum usage.
  • Configuration - Pydantic config models and YAML loading.
  • Hub Pattern - CRNSDataHub, DataFrames, and quality flags.
  • Corrections - Factory/Builder pattern for the correction pipeline.
  • Git Workflow - Branching, CI pipeline, and release process.

AI-Assisted Development

This repository includes an agent/ directory with configuration for AI coding agents (currently optimised for Claude Code). It contains coding conventions, reusable skills, and architecture documentation that help AI agents work effectively with the neptoon codebase.

If you use an AI coding agent, see agent/README.md for setup instructions. The convention files in agent/conventions/ are also useful reading for any developer — they document the patterns and practices used throughout the codebase.

If you use a different AI coding tool and want to contribute agent configuration for it, get in touch with the core developers.

Skills

Step-by-step guides that AI agents follow when performing common development tasks:

  • CLAUDE.md - Root configuration for AI assistants working on this codebase.
  • Convention Keeper - Systematic audit of the codebase against all project conventions.
  • Meta Session - Structured planning workflow for substantial development tasks.

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

neptoon-0.14.0.tar.gz (5.5 MB view details)

Uploaded Source

Built Distribution

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

neptoon-0.14.0-py3-none-any.whl (3.4 MB view details)

Uploaded Python 3

File details

Details for the file neptoon-0.14.0.tar.gz.

File metadata

  • Download URL: neptoon-0.14.0.tar.gz
  • Upload date:
  • Size: 5.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.30 {"installer":{"name":"uv","version":"0.9.30","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"12","id":"bookworm","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for neptoon-0.14.0.tar.gz
Algorithm Hash digest
SHA256 27141ca306530aadbbb4630d4ed341212e31e9ded4f27b0b8216a8609d62ca49
MD5 c64a14a6360f24582ce43135e8d8edb0
BLAKE2b-256 f2fe70ff4f36224d83497efc2d4912a841462859b70d2b370e7cb781a2bb6734

See more details on using hashes here.

File details

Details for the file neptoon-0.14.0-py3-none-any.whl.

File metadata

  • Download URL: neptoon-0.14.0-py3-none-any.whl
  • Upload date:
  • Size: 3.4 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.30 {"installer":{"name":"uv","version":"0.9.30","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"12","id":"bookworm","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for neptoon-0.14.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1757839805b6ef2e985e5a7aecd8518edce4a1ee8527bb623cc43d79dc78097d
MD5 16af996838dfdc7b00c75e77c9fe6167
BLAKE2b-256 045f772044e9439f20a9a9a7b41f98acc0e16fa8a3f539f82beca6079f256c8d

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