Syntax:
retstr = al_be_age_one(ins)
The MATLAB web server calls this function when the exposure age data input form is submitted. It takes as input a structure containing string variables, which is supplied by the MATLAB web server. It returns a text string consisting of an output HTML document containing the results of the exposure age calculation. The documentation for the MATLAB web server describes this process in more detail.
The input structure ins
contains the following fields. These have the same names as the data-entry fields in the HTML input form.
ins.sample_name | Sample name |
ins.str_lat | Latitude |
ins.str_long | Longitude |
ins.str_alt | Either elevation in meters or pressure in hPa |
ins.aa | Flag that indicates how to interpret the str_alt variable. Has three possible values: `std' if the elevation value is in meters and the standard atmosphere approximation is to be used; `ant' if the elevation value is in meters and the Antarctic atmosphere approximation is to be used; and `pre' if the elevation value is in hPa. |
ins.str_thick | Sample thickness in cm |
ins.str_rho | Sample density, g ![]() ![]() |
ins.str_othercorr | Shielding correction. The shielding correction can be calculated using skyline.m |
ins.str_E | Erosion rate, cm ![]() ![]() |
ins.str_N10 | ![]() ![]() ![]() ![]() |
ins.str_delN10 | standard error of ![]() |
ins.str_N26 | ![]() ![]() ![]() ![]() |
ins.str_delN26 | standard error of ![]() |
The majority of this function consists of routines that check the input data to make sure it is in the expected form and is within expected bounds, and convert string variables to numerical values. After the data checking is complete, the function then assembles the data sets needed for the Al and
Be exposure age calculations, loads the data file containing values for physical constants, and passes data to the function
get_al_be_age.m
, which actually carries out the exposure age calculation and returns the result. Finally, this function assembles the output data, generates the required plots, and inserts the output data into the output HTML template.
The only actual calculation that takes place inside this function is the calculation of the uncertainty in the Al
Be ratio. Denote the
Al/
Be ratio by
and its
uncertainty by
. Assuming linear, uncorrelated uncertainties:
![]() |
(1) |
where is the concentration of nuclide
and
is its
analytical uncertainty.