Skip to content

2. Legacy MatLab Code Structure Description

Lewys Jones edited this page Jun 8, 2014 · 1 revision

The legacy MatLab code is structured as a set of smaller files. The purpose of each file is described here.

Absolute_Integrator_Wrapper_1_6.m

This file sets up the variables used by all the rest of the modules. It is the only file the user of the MatLab software needs to modify. The variables herein are grouped into the types needed for different operations.

Absolute_Integrator_Core_1_6_4.m

This is the main core file of the code, it performs the majority of the operations with only peak-finding and CCD flux-analysis out-sourced to sub-modules. The internal tasks performed include: detector-efficiency analysis (in both the classic and flux-weighted methods), diffractogram-based magnification calibration, and initialisation of the Voroinoi cells for integration. Moving forward the functionality of this file should be split into several additional sub-modules.

File_Opener_1_5_5.m

This file allows the core file to open several types of different data types using the aditioanl convertors (ReadDM.m, binread2D.m, and serReader.m)

Ranger_Core_2_4.m

This file performs the peak-finding using the Ranger method