Pupa Gilbert (née Gelsomina De Stasio)
Research Group

GG Macros

The Gilbert Group Macros (GG Macros) were developed by Benjamin Gilbert (bgilbert@lbl.gov) with extensive interaction and feedback from Pupa Gilbert. The GG Macros run on Mac and PC, are ready-to-use, free of charge, and are recommended to analyze synchrotron spectromicroscopy data, that is, images stacked as a function of photon energy, or polarization of the illuminating x-rays.

1. Download Igor Pro 6.3 from http://www.wavemetrics.com/
2. Download both the GG Macros Manual 29 and GG Macros 29.
3. Follow the instructions in the manual to place the macros in the correct folders on your computer.
4. Contact Pupa Gilbert at pupa@physics.wisc.edu if you have any questions.

In a nutshell, the GG macros enable you to:

Do quantitative analysis of the orientation of carbonate crystals. For example, the aragonite (CaCO3) tablets in nacre can be distinguished by their crystal orientation as shown below. At a single linear polarization (left) two tablets (magenta dots, or blue dots) may display very similar gray levels, but their orientation can be quite distinct, when fully analyzed at multiple polarizations (see J4 in the manual).

Obtain the 3D crystallographic orientation of carbonate crystals. The in-plane orienatation of the c-axis (termed c' angle) is displayed as hue, and the out-of-plane orientation is displayed as brightness, from full color to black.

Extract spectra from mouse-drawn ROIs

Extract spectra from a single pixel

Extract spectra from pixels along a line

Do peak fitting of extracted spectra

Display the spatial distribution of individual components with known spectra

The individual components and their relative concentrations can then be combined (in Adobe Photoshop ® ) in separate channels and displayed at once.