|
|
|
|
||
|
|
|
|
||
|
Nanospectroscopy Beamline Data Format
The file system structure
The Gui saves an experiment (i.e. a data collection) into file
system following a hierarchy of folders and files. In this structure, an experiment
is a folder, and beamline data, ccd data, leem data, scan data, comments,
and images are represented by files. The figure 1 shows this kind of structure.
The user only defines the location of the data root folder; the system automatically defines the other file names according to the following schemes:
Experiment folder name
Beamline data file name
CCD data file name
LEEM data file name
Image file name
Comments file
The format of the standard experiment files is a list of comma separated pairs <parameter_name>, <parameter_value> but from a jython script you can write your custom format.
Images acquired from the ccd detector have up to 16 bits per pixel so the ideal would be to save the images in a 16 bit GRAY-SCALE format. Unfortunately, to our knowledge with Java it is not possible to save 16 bit images. However, it is possible to save a 16 bit image using two channels of 8 bit RGB. Figure 2 explains this concept.
Now, if you display an image of this kind with joint G and B
channels, you will see a blue-green palette image with much more shades than
the simple 8 bit gray scale image you can see on your computer screen (the
computer screen visualizes images always with 8 bit per channel, that means
also a 16 bit gray-scale image is displayed as an 8 bit gray-scale image on
a computer screen). Therefore the Gui saves also a 8-bit gray scale image (the
result of a 16-bit to 8-bit fitting process) into the R channel. To recover
the 16 bit values acquired by the ccd detector you must do a transformation
of this kind:
Image = (G*256)+B.
A fitted image is obtained by a transformation like this: ((PIXVAL
- MINPIX)*255)/(MAXPIX-MINPIX)
| ||||
.x. close