MC_Synchronization_Readme

1) MC_Synchronization_Example_Data.mat

Description of variables included in MC_Synchronization_Example_Data. This
data has been processed to synchronize CH4 and d18Oatm data from the RICE 
ice core to the matching records from the WAIS Divide ice core on the 
WD2014 age scale for the time period -65 to 11,700 year b1950.

Raw Inputs:
    ACP = Age control points (Depth, Gas Age, Age uncertainty)
    RICE = RICE Data Structure
        .CH4 = RICE CH4 Data (Depth, CH4, CH4 uncertainty)
        .d18O2 = RICE d18Oatm Data (Depth, d18Oatm, d18Oatm uncertainty)
    WDC = WDC Data Structure
        .CH4 = WDC CH4 Data (Depth, CH4, CH4 uncertainty)
        .d18O2 = WDC d18Oatm Data (Depth, d18Oatm, d18Oatm uncertainty)
        
Derived Data
    acp0 = age control points (Ice Equivalent Depth, Gas Age, Age uncertainty)
    age0 = Prior Age Estimate
        {1} = gas age estimate of CH4 Sample Depths
        {2} = gas age estimate of d18Oatm Sample Depths
    X0 = RICE Data (Cell)
        {1} = CH4 data (Ice Equivalent Depth, CH4, CH4 uncertainty)
        {2} = d18Oatm data (Ice Equivalent Depth, d18Oatm, d18Oatm uncertainty)
    T0 = WDC Data (Cell)
        {1} = CH4 data (Ice Equivalent Depth, CH4, CH4 uncertainty)
        {2} = d18Oatm data (Ice Equivalent Depth, d18Oatm, d18Oatm uncertainty)



2) MC_invHuyber_RICE_v2.m 

This is the top level function. This file defines parameters for 
synchronization routine (XCM_simp_Nye_v2.m), minor processing of input data
for synchronization routine, calls synchronization routine, and analyzes
output.

3) XCM_simp_Nye_v2.m

Synchronization routine. 

4) Nye_interp.m

Interpolates gas age of given depth from age control points. Assumes 
piecewise constant accumulation between ACPs with uniformly decreasing 
annual layer thickness.

5) NyeInv_interp.m

Interpolates depth of given gas age from age control points. Assumes 
piecewise constant accumulation between ACPs with uniformly decreasing 
annual layer thickness. 

6) chi2test2.m

Calculates Chi^2 statistic from two sets of data.
