-
Notifications
You must be signed in to change notification settings - Fork 1
/
dsstartup.m
34 lines (32 loc) · 1.35 KB
/
dsstartup.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
%DSSTARTUP Double spike startup - defines a number default parameters in global ISODATA
% DSSTARTUP(...)
% This function creates the global variable ISODATA, which contains
% a number of parameters used in all the double spike calculations.
% ISODATA is a structure, with fields of the form ISODATA.(element).(property)
% e.g. ISODATA.Fe.isonum contains the isotope numbers for Fe: [54 56 57 58]
% Other properties include
% mass -- the atomic masses
% standard -- the standard composition (got from 'maininput.csv').
% rawspike -- the composition of available spikes e.g. from Oak Ridge National
% Labs (also got from 'maininput.csv').
% errormodel -- the coefficients used in the error model.
%
% Any arguments that are specified are passed to seterrormodel(), the function
% which specifies the error model. This is useful for setting the beam intensities,
% integration times etc.
%
% Example
% dsstartup();
% global ISODATA;
%
% See also errorestimate, optimalspike, seterrormodel
function dsstartup(varargin)
global ISODATA
ISODATA=loadrawdata();
els=fieldnames(ISODATA);
for i=1:length(els)
seterrormodel(els{i},varargin{:});
end
disp('Welcome to the double spike toolbox. John F. Rudge 2009-2022.')
disp('Default parameters are stored in the global variable ISODATA.')
disp('Type "global ISODATA" to access and set these parameters.')