# Archive for the ‘Carbon’ Category

West of Ireland oak woodland - October 11

Flux tower eddy covariance instruments measure CO2 flux between an ecosystem and the atmosphere. Observed CO2 fluxes (also called NEE, Net Ecosystem Exchange) can be correlated with locally measured solar intensity, temperature, humidity etc. With enough data, a detailed picture of the local response of the ecosystem to environmental variables to be built up. Flux towers are one of the important tools for quantitative understanding the sensitivity of vegetation to climatic variability.

CO2 flux data  are noisy, to say the least. If you want to understand ecosystem reponse, you need a statistical model.  This post gives some simple ideas and R code showing how such a model can be developed. The example used is Harvard Forest [1], Massachussetts, a temperate deciduous broadleaf forest for which a large amount of flux tower data (collected by Munger & Wofsy) is available. It could equally be applied to tropical forest, grassland, cropland etc at one of the 200+ fluxnet sites worldwide. The model falls short of the full scientific rigour given in the references, but it can easily be developed into a more complete tool.

The main interest here is ecosystem response to sunlight i.e. photosynthesis. The light dependent part of the NEE is GEP (Gross Ecosystem Production), while the light independent part is RE (ecosystem respiration).

### Pre-processing

As always, the first steps are about getting the data into the right form. We use half-hourly data for 1991-2007  for Harvard Forest  i.e Ameriflux Level 2, site code USHa-1. This raw data has not been subject to any gap-filling statistical treatment. Here are the pre-processing steps:

1. download the annual data files and create a dataframe harvard using the rbind() combining all of the data
2. replace missing data (e.g. -9999) with “NA”
3. add a new fornight index, indicating to which fortnight of the year each row of data belongs
4. select a subset of the Ameriflux variables of interest. e.g. column headings c(“YEAR”,”DTIME”,”FN”,”TA”,”NEE”,”TS1″,”VPD”,”PAR_in”)
5. drop rows of data when one or more variables are undefined
6. group the data according to fortnights index i.e. create a list of 26 elements where each element is a dataframe containing all data sharing the same fortnight index.
7. drop “dark” data i.e. rows of data where PAR < 30.

The environmental variables retained at step 4 are TA (atmospheric temperature), TS1  (soil temperature), VPD (vapour pressure deficit) and PAR (photosynthetically active radiation). PAR is solar radiation in the range 0.4-0.7 microns which is energetic enough to contribute to photosynthesis. It has units μ mols s-1 m-2. (1 μ mole = 6 x 1017.)

Here is what the R code looks like:  #download the annual data files and create a dataframe harvard loc=file.path("ftp://cdiac.ornl.gov/pub/ameriflux/data/Level2/Sites_ByID/US-Ha1/with_gaps/usmaharv_1991_L2.csv"); # Ameriflux US_Ha1 download.file(loc,"temp.dat"); ha_1991=read.csv("temp.dat", header=FALSE,skip=20); ......................... loc=file.path("ftp://cdiac.ornl.gov/pub/ameriflux/data/Level2/Sites_ByID/US-Ha1/with_gaps/usmaharv_2007_L2.csv"); # Ameriflux US_Ha1 download.file(loc,"temp.dat"); ha_2007=read.csv("temp.dat", header=FALSE,skip=20); harvard <- rbind(ha_1991,ha_1992,ha_....._2006,ha_2007); # merged dataframes #replace missing data with "NA" temp <- (harvard[,] == -9999 | harvard[,] == -6999); #replace -9999 or -6999 with NAs harvard[temp]=NA; #add a new fortnight index lims <- seq(from=1,to=365,by=14); # fortnightly data lims[27] <- 367; # bound adjust, last fortnight has extra days fortnight <- function(d) {sum(ifelse(d<lims,0,1))}  # convert from DOY to fortnights harvard <- data.frame( "FN" = sapply(harvardUST < 0.2|is.na(harvardTA); y <- is.na(harvardSTS1); u <- is.na(harvardSPAR_in); w <- !(x|y|z|u|v|u_cut); #boolean. w is true when all variables are defined and U* > 0.2 m/s harvardS <- data.frame("YEAR"=harvardFN[w],"TA"=harvardNEE[w], "TS1" = harvardVPD[w],"PAR" = harvardlatex \mathrm{NEE} = \mathrm{R_E} -{{\alpha \beta \mathrm{PAR}} \over {\beta + \alpha \mathrm{PAR}}}latex \alpha \rightarrow \alpha \epsilonlatex \epsilon = {\lambda^2 \over {\mathrm{\left(TA-25 \right)}^2 + \lambda^2} } {\mu^2 \over {\mathrm{VPD}^2 + \mu^2}}latex \lambdalatex \mulatex \mu = 2latex \alpha^{-1}\$ corresponds to the number of  photosynthetically active photons  arriving at the forest canopy for every CO2 molecule trapped by photosynthesis. This number is about 14.

 A common feature of future climate scenarios is competition between increased CO2 availability and increased water stress layed out on a global scale. Clearly flux tower data are good place to look for these effects. The R script for the model and plots can be found here. References [1] Factors controlling CO2 exchange on timescales from hourly to decadal at Harvard Forest, Urbanski, S., C. Barford, S. Wofsy, C. Kucharik, E. Pyle, J. Budney, K. McKain, D. Fitzjarrald, M. Czikowsky, J. W. Munger http://www.agu.org/pubs/crossref/2007.../2006JG000293.shtml [2] See for example, An evaluation of models for partitioning eddy covariance-measured net ecosystem exchange into photosynthesis and respiration P. Stoy et al, http://www.geos.ed.ac.uk/homes/pstoy/Stoy_06b.pdf [3] More detailed models are give in An empirical model simulating diurnal and seasonal CO2 flux for diverse vegetation types and climate conditions, M. Saito, S. Maksyutov, R. Hirata, and A. D. Richardson. http //www.biogeosciences.net/6/585/2009/bg-6-585-2009.html & references. 
 October 12, 2009 By joe Carbon, Climate, ecosystem model, Forests ecosystem model eddy covariance Terrestrial Carbon water stress No Comments 
 
 Flux Towers: Part I Most solar energy absorbed at the earth’s surface is radiated back into space. For every high energy solar photon absorbed, about 20 degraded thermal photons are eventually radiated back. Ecosystems hitch a ride on this process. The starting point is of course plant photosynthesis which converts sunlight into chemical energy:  . The reverse process (respiration, burning of sugars and emission of CO2) converts the energy captured by photosynthesis into an almost unbelievable variety of alternative chemical forms, and also into mechanical energy and heat. Following carbon is a way to track energy flow through an ecosystem. Respiration CO2 derives from maintainance and growth respiration by vascular plants (“autotrophic” respiration) and also by the decay of organic matter in soil and litter layers (“heterotrophic” respiration). At the ecosystem level, the net exchange of CO2 with the atmosphere is called Net Ecosystem Exchange (NEE). NEE is just the difference between total ecosystem respiration (RE) and photosynthesis (or Gross Ecosystem Production, GEP) : At night, GEP and the flux of CO2 from the ecosystem to the atmosphere equals RE. During daylight hours, GEP switches on and NEE is normally negative during the growing season. Of course NEE depends on sunlight, air temperature, soil moisture etc. Fortunately this important property of ecosystems is directly measurable. Eddy Covariance Under normal conditions, air motion above vegetation is turbulent. This fact is the basis of a statistical technique called eddy covariance which measures the flux of CO2 between ecosystem and atmosphere. A setup similar to the one shown on the left is mounted on a tower rising above the top of the vegetation canopy. The setup consists of a gas analyser (measuring instantaneous CO2 concentration), and an anemometer (capable of measuring the instantaneous vertical component of the wind velocity). To a good approximation, the CO2 flux is just the covariance of the vertical wind speed with the CO2 concentration . For example, if and are uncorrelated, the flux is zero. The covariance can be obtained by recording data at high frequency over 30min intervals, say. This gives a time-series of CO2 fluxes at half-hour intervals. The eddy covariance technique gives information on NEE on a spatial scale which is typically . Of course, the technique also works for other trace gases or water vapour. There is a good wikipedia article on eddy covariance which provides additional details. According to Fluxnet, there about 500 flux towers making continuous eddy covariance measurements of NEE worldwide. Given the diversity of Earth’s ecosystems, this is a small number. Flux tower data is rare and valuable. NEE Data With this technical explanation out of the way, we get to look at NEE for some real ecosystems. Access to (mainly North American) flux tower data was obtained through the ameriflux network. Two different forest ecosystems are compared. Harvard forest is a 1200Ha temperate broadleaf deciduous forest in Massachussetts. This secondary growth forest has been studied intensively since it was established in 1907.[1] A 30m flux tower has measured NEE at Harvard Forest since 1993. km 67 Sanatarem flux tower on the other hand is located in primary tropical rainforest, Tapajos National Forest, Para State, Brazil. Three years of data are available 2000-2003 from this 64m tower. Half-hourly time-series of CO2 fluxes were generated as shown below using the statistical programming language R. The qualitative features of CO2 fluxes are as expected. Namely, both forests lose carbon at night while daytime fluxes tend to be negative, temperate forest shows a strong seasonal signal and there is a much weaker wet/dry seasonal signal in the tropical forest. There are some surprises, however. Peak summer carbon fluxes at Harvard Forest are as large as Santarem tropical forest fluxes . Another surprise is that there is stronger carbon absorbtion by the tropical forest during the dry season, which seems to contradict intuition about dry season water stress.[2] Perhaps the biggest surprise is the relative performance of the two forests as net carbon sources or sinks. Sources or Sinks? Cumulative NEE shows whether these forests are sources or sinks of carbon. This is simply obtained by applying R‘s cumsum() function to the half-hourly time-series above. The graph (below) shows that Harvard forest has been a strong and even accelerating sink for CO2 (= 2tC/Ha/y) since 1992, even though it is 100 years old. By contrast, primary forest at the Santarem site was a source of CO2 between 2002 and 2005. Researcher suggest this may be due to the presence of excess dead wood in the area following earlier disturbances e.g. 1998 El Nino drought.[2] It is remarkable that Harvard Forest is still an agressive carbon sink (0.25KgC/m2/y) after 100 years of growth. Conclusions The above illustrates some of the surprises and complexity of real ecosystem data. When memory effects are large, intuition can be a very poor guide. Models, such as those used in long-term climate research, are necessarily simplifications of reality. This is the R code used to download, process and plot the flux tower data. In a follow-on post an ecosystem model for Havard Forest NEE will be built in R. References [1] Forests in Time: The Enviromental Consequences of change in New England, by D. Foster and J. Aber, 2004 [2] Carbon in Amazon Forests: Unexpected Seasonal Fluxes and Disturbance-Induced Losses, Saleska et al, Science vol. 302 2003 September 24, 2009 By joe Carbon, Forests, Uncategorized carbon sources and sinks eddy covariance Flux tower Terrestrial Carbon One Comment 
 Older Entries 
 Categories Categories Select Category Agriculture Carbon Climate ecosystem model Finance and Economics Forests Land Cover Maps R Statistics Uncategorized Wind Energy /* <![CDATA[ */ (function() { var dropdown = document.getElementById( "cat" ); function onCatChange() { if ( dropdown.options[ dropdown.selectedIndex ].value > 0 ) { location.href = "http://joewheatley.net/?cat=" + dropdown.options[ dropdown.selectedIndex ].value; } } dropdown.onchange = onCatChange; })(); /* ]]> */ Archives Archives Select Month January 2018 September 2017 May 2017 April 2017 November 2016 September 2016 May 2016 October 2015 August 2015 June 2015 May 2015 April 2015 January 2015 September 2014 July 2014 June 2014 February 2014 October 2013 August 2013 June 2013 April 2013 January 2013 November 2012 August 2012 July 2012 April 2012 January 2012 November 2011 August 2011 July 2011 March 2011 February 2011 October 2010 August 2010 July 2010 May 2010 March 2010 February 2010 January 2010 December 2009 November 2009 October 2009 September 2009 July 2009 June 2009 May 2009 April 2009 March 2009 Recent Posts Trees, volcanoes and climate Braess Paradox in AC Power Networks On the speed of ships Sea temperatures from HMS Beagle 
 
 
 Meta Log in Entries RSS Comments RSS WordPress.org This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish.Accept Read MorePrivacy & Cookies Policy //<![CDATA[ jQuery(document).ready(function() { cli_show_cookiebar({ settings: '{"animate_speed_hide":"500","animate_speed_show":"500","background":"#fff","border":"#444","border_on":true,"button_1_button_colour":"#000","button_1_button_hover":"#000000","button_1_link_colour":"#fff","button_1_as_button":true,"button_2_button_colour":"#333","button_2_button_hover":"#292929","button_2_link_colour":"#444","button_2_as_button":false,"font_family":"inherit","header_fix":false,"notify_animate_hide":true,"notify_animate_show":false,"notify_div_id":"#cookie-law-info-bar","notify_position_horizontal":"right","notify_position_vertical":"bottom","scroll_close":false,"scroll_close_reload":false,"showagain_tab":true,"showagain_background":"#fff","showagain_border":"#000","showagain_div_id":"#cookie-law-info-again","showagain_x_position":"100px","text":"#000","show_once_yn":false,"show_once":"10000"}' }); }); //]]> var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); try { var pageTracker = _gat._getTracker("UA-8154580-3"); // Cookied already: pageTracker._trackPageview(); } catch(err) {} //<![CDATA[ MapPluginInit( /* Default map width */ 500, /* Default map height */ 300, /* Use rel instad of title? */ false); //]]>