Macros: Matrix functions

Matrix Functions procedure file contains several macroses that help in routine operations with matrices.

Common matrix operations can applied over one of two dimensions. For practial use in our group they can be called:
operation dimension applied at over range
Spectral X or row specific wavelength position or spectral pixel all spectra or recordes
Temporal Z or column specific recored or spectra taken at specific time all pixels or wavelngths
Most macros have variations of data point reference.

    Available macroses:

  • Extracting rows / profiles
  • Extracting columns / spectra
  • Matrix X offset
  • Matrix X overlay

Extracting rows / profiles

Profiles at specific position can be extracted using MatrixXCut and MatrixXAverage macroses.

MatrixXCut is a frame reference and is best suited for extracting profiles at specific wavelength (peak or trough) with a halh-frame of several nm. Choose wave to extract profile from, specify center position and half-frame. If destination wave does not to exist, it will be created, otherwise it will be overriden.

MatrixXAverage work exactly the same way except that you specify from which point to which to average.


Extracting columns / spectra

Analogous macros MatrixZCut and MatrixZAverage extract certain records (spectra) from a matrix. Variants, parameters and usage are identical to MatrixX... macroses above.


MatrixXOffset

This macro is similar to a point offset in Baselines, except that it allows to specify target value other than zero.


Matrix overlays

Matrix overlay allows to create a plot where spectra in subrange of a matrix are overlayed over each other.

    Specify the follwing:
  • matrix wave
  • X calibration wave or none
  • X subrange from / to (row)
  • Z subrange from / to (column)
  • thinning - plot every n'th column, not all
  • New plot name - internal name, no spaces etc
  • Plot title - free form text

Note 1: To set row or column range to "auto" give value of -1.

Note 3: Thinning allows to get a snapshot view of large or busy datasets.

Note 3: this macro deos not like it if plot with this name already exists.
If you need to re-do the macro close previous plot first.

Currently there is no analog for profile overlays.

Comments