Stack file types

The stack_analyze program uses a couple of different file types for storing information. They are:

mystack.sl is a stack list. It is just a text file with the following info on each line:
image_filename,x_shift,y_shift
for all the images in the stack. Note that the X and Y shifts are in pixels, and these shifts are now included in the .sl file rather than in a separate .aln alignment file. The program stack_analyze calls upon stack_buildlist to build a stack list (see Sec. 2.5 and Fig. 10).

mystack.stk is a binary file of already-aligned images. This file is written using the Sun XDR specification, so it can be transferred between computer types without a problem (just remember to do binary file transfers in ftp!). Futher information on the file format is provided in Sec. B.

myregion.roi is a binary file for saving spatial regions of interest in an image (see Sec. 2.4.1). Again, the Sun XDR specification is used so that the same binary file can be transferred between computer types. However, note that the regions depend on the image size; that is, you should do autoclip before you start defining ROIs.

myregion.srl is an ASCII file for saving spectral regions of interest. The file should have the name of a region, followed by its energy bounds:
! 1-sigma width of EDX detector is sqrt(energy*2.98), so Ca region goes
! from 4012-sqrt(4012*2.98) to 4012+sqrt(4012*2.98)
Na-Kbeta,1014.5,1127.5
Mg-Kbeta,1239.7,1364.3
Al-Kbeta,1498.4,1625.6
Si-Kbeta,1762.0,1909.9
P-Kbeta,2059.3,2218.9
S-Kbeta,2378.4,2549.7
Cl-Kbeta,2724.0,2907.2
Ar-Kbeta,3093.0,3288.0
K-Kbeta,3486.2,3693.0
Ca-Kbeta,3092.7,4121.3

myregion.xas is a text file used to save spectra in a format of (eV,signal) on each line of the file. These file scan be read by Excel as .csv files. IDL routines for reading and writing these .xas files are write_xas.pro and read_xas.pro which are located here.

Holger Fleckenstein 2008-07-08