How to identify the source of a problem.
This script, along with model-specific settings files in the
tests folder, provide a working example. From inside the tests folder,
R CMD --vanilla -- --settings pecan.<model>.xml < workflow.R should work.
The next step is to add
debugonce(<broken.function.name>) before running the test workflow.
This allows you can step through the function and evaluate the different objects as they are created and/or transformed.
See tests README for more information.
35.0.2 Useful scripts
The following scripts (in
qaqc/vignettes identify, respectively:
35.1 Troubleshooting PEcAn
Warning: mkdir() [function.mkdir]: No such file or directory
If you are seeing:
Warning: mkdir() [function.mkdir]: No such file or directory in /path/to/pecan/web/runpecan.php at line 169 it is because you have used a relative path for $output_folder in system.php.
35.1.3 After creating a new PFT the
tag for PFT not passed to config.xml in ED
This is a result of the rather clunky way we currently have adding PFTs to PEcAn. This is happening because you need to edit the ./pecan/models/ed/data/pftmapping.csv file to include your new PFTs.
This is what the file looks like:
PEcAn;ED ebifarm.acru;11 ebifarm.acsa3;11 ...
You just need to edit this file (in a text editor, no Excel) and add your PFT names and associated number to the end of the file. Once you do this, recompile PEcAn and it should then work for you. We currently need to reference this file in order to properly set the PFT number and maintain internal consistency between PEcAn and ED2.
35.2 PEcAn Project use to teach Ecological model-data synthesis
35.2.1 University classes
220.127.116.11 GE 375 - Environmental Modeling - Spring 2013, 2014 (Mike Dietze, Boston University)
The final “Case Study: Terrestrial Ecosystem Models” is a PEcAn-based hands-on activity. Each class has been 25 students.
GE 585 - Ecological forecasting Fall 2013 (Mike Dietze, Boston University)
35.2.2 Summer Courses / Workshops
18.104.22.168 Annual summer course in flux measurement and advanced modeling (Mike Dietze, Ankur Desai) Niwot Ridge, CO
About 1/3 lecture, 2/3 hands-on (the syllabus is actually wrong as it list the other way around). Each class has 24 students.
2013 Syllabus see Tuesday Week 2 Data Assimilation lectures and PEcAn demo and the Class projects and presentations on Thursday and Friday. (Most students use PEcAn for their group projects. 2014 will be the third year that PEcAn has been used for this course.
22.214.171.124 Assimilating Long-Term Data into Ecosystem Models: Paleo-Ecological Observatory Network (PalEON) Project
Here is a link to the course: https://www3.nd.edu/~paleolab/paleonproject/summer-course/
This course uses the same demo as above, including collecting data in the field and assimilating it (part 3)
126.96.36.199 Integrating Evidence on Forest Response to Climate Change: Physiology to Regional Abundance
May 13-14, 2013
Session 4: Integrating Forest Data Into Ecosystem Models
188.8.131.52 Ecological Society of America meetings
35.2.3 Selected Publications
- Dietze, M.C., D.S LeBauer, R. Kooper (2013) On improving the communication between models and data. Plant, Cell, & Environment doi:10.1111/pce.12043
- LeBauer, D.S., D. Wang, K. Richter, C. Davidson, & M.C. Dietze. (2013). Facilitating feedbacks between field measurements and ecosystem models. Ecological Monographs. doi:10.1890/12-0137.1