Welcome to the Biome-BGC project page
Get the latest code from GitHub
Or Download Biome-BGC 4.2 from the NTSG FTP
This project page serves as a central place for model information and source code. Biome-BGC is an ecosystem process model that estimates storage and flux of carbon, nitrogen and water. Biome-BGC is a computer program that estimates fluxes and storage of energy, water, carbon, and nitrogen for the vegetation and soil components of terrestrial ecosystems.
- New leaf growth and old leaf litterfall
- Sunlight interception by leaves, and penetration to the ground
- Precipitation routing to leaves and soil
- Snow accumulation and melting
- Drainage and runoff of soil water
- Evaporation of water from soil and wet leaves
- Transpiration of soil water through leaf stomata
- Photosynthetic fixation of carbon from CO2 in the air
- Uptake of nitrogen from the soil
- Distribution of carbon and nitrogen to growing plant parts
- Decomposition of fresh plant litter and old soil organic matter
- Plant mortality
Biome-BGC: Required meteorological inputs
- Daily maximum temperature (°C)
- Daily minimum temperature (°C)
- Daylight average temperature (°C)
- Daily total precipitation (cm)
- Daylight average partial pressure of water vapor (Pa)
- Daylight average shortwave radiant flux density (W/m2)
- Daylength (s)
Biome-BGC version 4.2 Final Release
We have been hard at work compiling a list of bug fixes and model enhancments into a new version of Biome-BGC. We are offereing this new beta model version under the downloads section of this site. We have been hard at working compiling a list of bug fixes and model enhancments into a new version of Biome-BGC. We are offereing this new beta model version under the downloads section of this site.
This new version has a number of minor bug fixes and some increased functionality.
The following is a list of relavant changes to this version.
Development Notes for Biome BGC.
This file is a list of code/internal changes.
- Fixed Spin & Go so that the '-g' flag actually works.
- IMPORTANT Corrected use of the co2 file. It now correctly looks up the value for the model year. Previously it simply used co2 entries starting at the top of the co2 file.
- Added External Nitrogen Deposition File see USAGE.TXT for more information.
- Identical to last 4.2pre
- Added command line option support using getopts() to add functionality without breaking backwards compatibility. See USAGE.TXT for options.
- Centralized header files bgc.h for libbgc pointbgc.h for pointbgc C source files now only need to include one header, all others get included automatically in the correct order.
- Added bgc_io.c for non-data I/O. Replaced all printf()s to stdout with the new wrapper function bgc_printf().
- ### DO NOT Use printf/sprintf/fprintf for output/error messages ### Use bgc_printf() instead
- bgc_printf() is for outputing information to standard out and errror it behaves similar to printf but with an extra first argument:
- BV_ERROR: For fatal error messages
- BV_WARN: For non-fatal warnings
- BV_PROGRESS: For basic progress information
- BV_DETAIL: For detailed progress information
- BV_DIAG: For internal diagnostic/debug messages
- int bgc_printf(VERBOSITY, "Message\n", ...);
- VERBOSITY is one of several defined keywords. You use the keyword appropriate to when your message should be printed. bgc_printf also supports logging functionality see USAGE.TXT for usage.
- Replaced all DEBUG printf's with proper bgc_printf calls
- Merged Spinup code into main code to reduce code duplication merged spinup_bgc.c into bgc.c
- Added pan arctic summary output. Traditional behavior is set by signed char summary_sanity = INSANE ; in bgc()
- SANE behavior (pan-artic style) calculates these correclty: Maximum Monthly LAI End of month Snow Water End of month Sail Water content
- Also added new output_map variables
- output_map = &summary->daily_et;
- output_map = &summary->daily_outflow;
- output_map = &summary->daily_evap;
- output_map = &summary->daily_trans
- output_map = &summary->daily_soilw;
- output_map = &summary->daily_snoww;
- Rewrote make files to not use version specific directories
- Added 'make test' to build then run a spinup and model test
- Moved all photosynthesis science code out of bgc.c and into photosynthesis.c
- Corrected some sprintf formating to be more ANSI C standards complient in prephenology.c
- Added tests/corrections for negative variables in radtrans.c and metarr_init.c: (swavgfd,par,swabs_plaishade,parabs_plaishadei,dal)
- Added code to improve portability and standards compliance.
- Added 'make tools' to master makefile. This builds the restart diff/view tool.
- Replaced floating point equality tests with tolerance tests. Global tolerance define: FLT_COND_TOL = 1e-10 epc_init.c, sitec_init.c
- Various memory leak and pointer assignment fixes in pointbgc.c
- Fix to prevent SEGFAULT on empty restart file in pointbgc.c
- Split output_init.c into output_ctrl.c and output_init.c output_ctrl.c reads the output controls from the ini file output_init.c initializes the output files
- Added 'spin-n-go' functionality. This mode '-g' flag will run both the model and the spinup without generating the restart file.