Loading & saving alpha spectra

The plot page can also be used to load and save alpha spectra in various different formats. When saving spectra it should be noted that when the graph display is displaying several spectra, the one that will be saved is the currently selected spectrum.

For details about the loading and saving see loading and saving controls
For details about file formats see file formats

Loading and saving controls

Loading and saving graphs from and to the disk is useful when comparing the results of the simulation to a previous simulation or a measurement. When a graph is loaded from the disk, it will be added into the plot and will appear in the graph selection list. Use the following controls load and save graphs:

The File -> Open menu item

Adds a graph from a file into the graph display. Note that when loading .fig files, all graphs already in the graph display will be removed prior to loading. Loading a bitmap format will add it as an image annotation.

The File -> Save currently selected graph to disk menu item

Saves the currently selected spectrum to file. Pressing the button pops up a filechooser dialog that lets you select the desired output filename and format. 

The File -> Print menu item

Prints the figure in the graph display. A print dialog is shown, allowing you to select the printer and paper options.

The File -> Page setup & preview menu item

Allows you to setup the page for printing. A dialog is shown that displays you a preview of the print and tools that allow you to reposition or enlarge the figure as it will appear on the printed page. Clicking ok will apply the settings, and they will be in effect from that point on. Cancel will discard the changes into the page setup.

The File -> Save plot as figure menu item

Saves the current plot as a figure, complete with all the graphs, annotations, axii and tics. The figure format may be chosen to be either a bitmap, scalable vector graphics or AASI figure. Only AASI figure (.fig) is editable with AASI after saving.

File formats

AASI can open files in .phd, .graph and .fig formats, and save graphs in .phd, .graph, .fig, .eps, .ps, and .phd formats. Out of these formats .phd and .graph are best suited for further processing or analysis of data, and the rest are more suited for presentations and the like. Here is a summary of the file formats:

Format

Filename extension

can read

can write

description

Graph

.graph

yes

yes

The AASI graph format. ASCII, one graph. Format:
x, c, y per row. Interpretation: x is the left edge of bin in MeV, c is the center of the bin in MeV, y is number of counts in that bin.

Figure

.fig

yes

yes

The AASI figure format. Binary, multiple graphs with annotations.

IMS2.0

.phd

yes

yes

IAEA message format, ASCII, an energy calibration under #gEnergy tag with channel contents under #gChannels tag. The channels are enumerated from 1…n in groups of 5

IEC

.iec

yes

no

Canberra exchange format, ASCII, much like the IMS2.0, except does not have human-readable tag names.

Adobe pdf

.pdf

no

yes

Portable document format, binary, scalable vector graphics.

PostScript

.ps

no

yes

Printer command language format, scalable vector graphics.

Encapsulated

PostScript

.eps

no

yes

Printer command language format, scalable vector graphics.

Portable network graphics

.png

yes

yes

Bitmap format.

Compuserve graphics interchange

.gif

no

yes

Bitmap format.