18.11.2014 Views

Be exposure age calculator MATLAB function reference Version 2

Be exposure age calculator MATLAB function reference Version 2

Be exposure age calculator MATLAB function reference Version 2

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

1.9 skyline in.m<br />

retstr = skyline_in(ins)<br />

The <strong>MATLAB</strong> web server calls this <strong>function</strong> when the topographic shielding data input form (skyline input.html) is<br />

submitted. It takes as input a structure containing string variables, which is supplied by the <strong>MATLAB</strong> web server. It<br />

returns a text string consisting of an output HTML document containing the results of the erosion rate calculation. The<br />

documentation for the <strong>MATLAB</strong> web server describes this process in more detail.<br />

The input structure ins contains the following fields. All are string variables. These have the same names as the<br />

data-entry fields in the HTML input form.<br />

ins.str strike<br />

ins.str dip<br />

ins.str az<br />

ins.str el<br />

Strike of sampled surface (degrees)<br />

Dip of sampled surface<br />

String of space-separated azimuths<br />

String of space-separated horizon angles<br />

Note that whole number degrees are required for all the inputs (on the basis that measurements with a greater precision<br />

than this are highly unlikely). Decimal degrees will be rejected.<br />

The majority of this <strong>function</strong> consists of routines that check the input data to make sure it is in the expected form and<br />

is within expected bounds, and convert string variables to numerical values. After the data checking is complete, the<br />

<strong>function</strong> passes data to the <strong>function</strong> skyline.m, which actually carries out the erosion rate calculation and returns<br />

the result. Finally, this <strong>function</strong> assembles the output data, generates the required plots, and inserts the output data into<br />

the output HTML template.<br />

22

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!