11 The DNDC Model

This portion of the documentation that started as RETINA specific, but will now be used more generally for anyone in the group using DNDC.

The goal is to document all the ways that DNDC is being used across the group, and create a repository of code and documentation for each version of the model that is being used.

For now the documentation centers around the version of DNDC that has been integrated in to PEcAn, which I am calling DNDC_M or DNDC “Matthias,” the most recently developed version of the sourcecode for N-DNDC.

11.1 Versions of DNDC

Currently the RETINA group is working with the following versions of DNDC

  1. Agro-ecosystems: Crop yield, soil carbon sequestration, nitrogen leaching, and trace gas emissions
    • The DNDC Model (Version 9.5) with PC User interface
    • Matthias Source Code - contians 3 versions
      • DNDC “Idenways” which is the “original”
        • Interface: NO (running on docker)
        • Documentation: README files included with the source code written by Matthias
        • Source code available on one drive
      • DNDC “Matthias” <– CURRENT VERSION USED BY RETINA
        • Interface: NO (running on docker)
        • Documentation: README files included with the source code written by Matthias
        • Source code available on one drive
      • Working version which is a mix of the two
  • Potentially another “2014” version (need to check if/how this differs)
    • Iden version before Matthias worked on it
    • Version of DNDC may work best with Manure
    • DNDC_source_Feb 17 2014
    • Version shared by Jagadeesh for the project that Ed is on
  • Is there another version that was found on github
  1. Livestock Farms: Greenhouse gas and ammonia emissions
  2. Forested Ecosystems: Forest production, soil carbon sequestration, and trace gas emissions

UPDATE on getting exe models running on the HPC (2-20-2024): - It is going to be very difficult to get an exe to run on docker on the retina VM, maybe with wine - We are going to reach out to the individual developers to ask if they have compiled command line versions, we could even give them examples of how we did it - We could also possibly discuss moving away from docker altogether ## Github

https://github.com/RETINA-ICS

The idea is to put as many versions of DNDC on to the github as possible (as private repos) with documentation and then do comparisons

(Where Betsy got code from Matthias) https://github.com/MatthiasMimault/DNDC_CC

11.2 DNDC Parameters

Note the documentation for DNDC is written from the perspective of using DNDC95 and DNDC_Matthias. However, even if the other versions of DNDC do not look exactly the same, the approaches to using them should be similar.

11.2.1 The DNDC interface

(Difficutly: Easy)

The simplest way to choose the parameters for the DNDC model is to use the interface for DNDC. After choosing one’s land type, soil type and crop type, most essential parameters will be populated with presets and it will be possible to do a preliminary run to see if the model is working. For information on using the interface to DNDC95, look at the documentation on DNDC95.

11.2.2 Library Parameter Files

(Difficutly: Moderate)

Reading in default parameters from lookup tables based on crop id and soil type #### Crop Params

11.2.2.1 Soil Params

11.2.2.2 ? Params

11.2.3 The DNDC Source file

(Difficutly: Advanced)

11.3 The dnd file

11.3.1 Role of the file

11.3.2 How to create a dnd file

11.3.2.1 With the DNDC interface

11.3.2.2 By hand

11.3.2.3 Using PEcAn and the RETINA app


11.3.2.3.1 Pre-made dnd files for the RETINA Project
11.3.2.3.1.1 Balruddery: Conventional Treatment
11.3.2.3.1.2 Balruddery: Sustainable Treatment
11.3.2.3.1.3 Glensaugh