List of functions: Be-10/Al-26 exposure age and erosion rate calculators, Version 2

These MATLAB scripts are free software; you can redistribute them and/or modify them under the terms of the GNU General Public License, version 2, as published by the Free Software Foundation. See the GNU General Public License (http://www.fsf.org/licensing/licenses/gpl.html) for more details.


Wrapper scripts and control functions:
get_al_be_age.m Function that actually carries out exposure age calculations. Accepts a package of error-checked input data from the wrapper script, does age calculations, returns package of results.
get_al_be_erosion.m Function that actually carries out erosion rate calculations. Accepts a package of error-checked input data from the wrapper script, does age calculations, returns package of results.
make_al_be_consts_v2.m Script that assembles and saves the constants data file used by nearly all the above functions. Requires the data file PMag_Mar07.mat.

Subdidiary calculation functions:
angdist.m Calculates angular distance between a pair of latitude,longitude points.
antatm.m Converts elevation to pressure using an Antarctica-specific atmosphere approximation.
d2r.m Converts degrees to radians.
desilets2006sp.m Implements scaling formula from Desilets et al. (2006)
dunai2001sp.m Implements scaling formula from Dunai (2001).
ET_objective.m Objective function used in erosion rate calculation.
lifton2006sp.m Implements scaling formula from Lifton et al. (2005).
NCEPatm_2.m Converts elevation to pressure using a standard atmosphere approximation where SLP and 1000 mbar temperature vary according to a global map. Requires data file NCEP2.mat.
P_mu_total.m Computes production rates due to muons.
r2d.m Converts radians to degrees.
skyline.m Returns a topographic/geometric scaling factor for given horizon geometry and strike/dip of sample surface.
stone2000.m Implements scaling formula from Stone (2000).
stone2000Rcsp.m Implements scaling formula from Stone (2000) with modifications for paleomagnetic correction.
thickness.m Calculates thickness correction.

Plotting functions:
ellipse.m Makes error ellipses in Be-10 - (Al-26/Be-10) space.
makeCplot.m Makes the scaling-factor-comparison plot on the single-sample exposure age results page.
makeEplot.m Makes the two-nuclide diagram on the results pages.
makePofTplot.m Makes the P(t) plot on the single-sample exposure age results page.