LDNDC

Runs LandscapeDNDC simulations of soil biogeochemistry, GHG emissions, and crop growth via XML-configured pipelines.

155|6|Updated Mar 31, 2026
One-click install
npx skills add https://github.com/lzwei196/KISS-Knowledge-Infrastructure-for-Scientific-Simulation --skill ldndc-lzwei196
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: LDNDC
Source: https://github.com/lzwei196/KISS-Knowledge-Infrastructure-for-Scientific-Simulation/tree/main/models/LDNDC
Command: npx skills add https://github.com/lzwei196/KISS-Knowledge-Infrastructure-for-Scientific-Simulation --skill ldndc-lzwei196

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve? Running the LandscapeDNDC biogeochemistry model correctly requires deep operational knowledge: exact XML input formats, strict unit conventions (e.g., soil organic carbon as mass fraction, Ksat in cm/min), exact species names, and correct module stacks. This Skill packages that expertise so an AI agent can configure, execute, and validate LDNDC runs without silent scientific errors. ## Core Features & Use Cases - End-to-end simulation pipeline: 20 tools across 10 stages covering project setup, site/soil XML generation from HWSD or VIC data, climate forcing conversion (CMFD/MSWX/VIC), management events, execution, and output parsing. - GHG and nutrient analysis: Parse N2O, CO2, CH4, NO, NH3 fluxes and NO3 leaching, and aggregate annual C/N/water budgets with mass-balance closure checks. - Diagnostic recovery: 22+ diagnostic triplets map symptoms (crashes, silent unit errors, species mismatches) to validated remedies. - Use Case: Simulate N2O emissions and nitrate leaching for a wheat-maize rotation at a new site by converting VIC forcing and HWSD soil data, generating management XML, running the LDNDC binary, and parsing validated GHG output. ## Quick Start Ask the agent to run the preflight check and then execute the Bengbu GHG pipeline tool with your latitude, longitude, and forcing file to produce validated N2O and leaching estimates.

Frequently Asked Questions about LDNDC

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run a LandscapeDNDC GHG simulation for a new site?

Run preflight_check.py first, then use the pipeline tools: convert forcing to climate.txt, generate site.xml from HWSD or VIC soil data, create management and setup XML, and execute the LDNDC binary via run_ldndc.py. The run_ldndc_bengbu_ghg.py script demonstrates the full end-to-end flow.

How do I simulate paddy rice methane emissions in LDNDC?

Use species name PADR (not RICE, which is an abstract base that silently yields zero output), select the paddy-specific module stack instead of the dryland MeTrX stack, and define explicit flood and drain events in mana.xml. All three fixes are required.

Why does LDNDC run without errors but produce wrong results?

LDNDC has several silent failure modes: soil organic carbon given as percent instead of fraction inflates CO2 roughly 100x, Kelvin temperatures are read as Celsius, and mismatched species names are skipped silently. Check diagnostics/triplets.yaml and the unit conversion table before trusting output.

Can LDNDC absolute N2O values be used directly for all regions?

No. Absolute N2O is validated for Bengbu wheat-maize but underestimates 5-10x for NE China maize due to uncalibrated plamox GDD phenology parameters. Relative changes and direction of response remain scientifically valid; absolute values need regional GDD calibration.

What climate data formats does LDNDC accept?

LDNDC reads a tab-separated climate.txt with daily tavg (or tmin/tmax) in Celsius, precipitation in mm/day, wind, relative humidity, and optional radiation columns. Tools in the Skill convert CMFD, MSWX, NASA POWER, and VIC forcing into this format with correct unit conversions.