INSTRUCTIONS FOR PROCESSING SOIL RESPIRATION DATA:
From LI-6200 pages to ecosystem-averaged fluxes

23/07/2000

Matlab functions residing in  ...\field\Matlab\Moa_EC\Soil_CO2  process LI-6200 pages for each sampling run.  Data must be sorted so that 10 pages exist in each textfile, ie. each file is one sampling run, so multiple runs per day must have separate files, and txt files reside in  ...\field\Projects\Raw_data\Jeffs\Moa98\soil_resp\textfiles

The finished product is a file of pseudo-CR10X style, residing in:
...\field\Projects\Raw_data\Jeffs\Moa98\soil_resp\sr_means. Data storage is the following array:


1 Year
2 Day
3 Hour
4 Minute
5 FluxCO2  umol/m2/s 
6 std dev Flux
7 Ambient CO2 umol/mol
8 sd Amb CO2
9 Tsoil (degC)
10 std dev Tsoil
11 T10 (degC @ 10cm below surface)
12 std dev T10
13 Tsurf (degC @ litter layer)
14 std dev Tsurf
15 Tcham (degC in chamber)
16 sd Tcham



PROCEDURE FOR PROCESSING  PAGES:
1. Separate li-6200 data into files containing pages from one sampling run per file (ie. should be 10 pages per file)
2. Update file SR_init.m
3. Run function SRconv_all(10); for files that haven't been processed
4. When processed, be sure to move txt file to ...textfiles\Processed directory, otherwise processed datafile contains repeated data arrays (because the function appends files)
5. Run function SR_means(update); with update = 1 to append means from files in ...\New_Processed_Files , or update = 0 to reprocess ALL files in ...\Stored_Files . 
6. Move files from ...\New_Processed_Files to ...\Stored_Files when finished. 
