Data Export

Save Image
lets you save the image as PNG, GIF5.1, JPEG, TIFF, BMP or EPS file. The scale bar will be included on the bottom if the "Include Scalebar in Images" entry in the submenu is checked. If you have dragged a rectangle over the image, it will be included in the saved image if the "Include Marked Rectangles in Images" entry in the submenu is checked. If you are displaying the crosshair at the mouse-click position, it will be included in the exported image if the "Include Crosshair in Images" entry in the submenu is checked.

PNG, GIF, JPEG, TIFF and BMP images will be as large (in pixels) as they are currently displayed, i.e. you can adjust their size by zooming prior to saving.

Note that all of the above will save the image as it is displayed, i.e. either scaled to 8 bit plus colortable, or as 24 bit color image. That means, the pixel values will not correspond to their physical meaning (count rate in kHz, if that's what you are currently displaying). To retain the true pixel values, you can save the image as 32-bit float TIFF. However, this image format won't be displayed properly by many mainstream image viewers / editors. One program which handles 32-bit float TIFFs properly is ImageJ5.2. Caution - if you are currently displaying raw integer scan data, they will be converted to float in this case.

Spectrum plots will be quite low quality for PNG, GIF, JPEG, TIFF and BMP images, since they are just screen dumps from the display (to a certain degree, you can adjust their size by changing the size of the SM_GUI Window and therefore the size of the plot window). EPS files will be nice vector plots. Marked positions (vertical lines) and fitted peaks will be included in the file if the "Include Vertical Lines in Spectra" entry in the submenu is checked.

Save Spectrum
(inactive in image mode) lets you save the spectrum data as CSV (comma separated values) or XAS (X-ray absorption spectrum) file. For CSV files, one comment can be entered in a popup window. For XAS files, a quite detailed header can be entered in a popup window. Of course you don't have to enter anything, and you can always edit the header afterwards with your favorite text editor and add your comments.

Export Scan Data
Entries in this submenu always operate on the currently displayed data (detector channel or display combination). The submenu has the following entries:

Binary File (32 bit floats + header)
lets you save the image data in a binary file. First, the number of columns and rows will be saved as 32 long integer numbers, followed by the image data as 32 bit floating point numbers.

The file will always be saved in little-endian mode (which is used by all x86 platforms).

Export Image Data to IDL Main Level
(unavailable in Virtual-Machine mode) will create a variable on the IDL main level which holds the image data. You can specify the variable name in a popup window. You can do whatever data processing you want on the IDL main level then.

Open Data in iTools
(not available in Virtual-Machine mode) will open the current image or spectrum plot in the corresponding IDL iTool (iImage or iPlot). Many data processing and visualization features are available there.

Copy Image to System Clipboard
will copy the image to the system clipboard (surprise, surprise!), so that you can include it in other applications which let you insert images from the clipboard (usually via Ctrl+V). This has been tested on Windows only.

Copy Scan Summary Text to System Clipboard
will copy the text array with the scan info (as it appears next to the image in a printout, see below) to the system clipboard. This works only in Microsoft Windows, since it requires an extra DLL (IDL doesn't come with clipboard support).

Holger Fleckenstein 2008-07-08