User Tools

Site Tools


Table of Contents

FRIDA implementation note: documentation of historic data formats

Note that these formats are largely isomorphous, since the data model has little changed over the years. The last major change was the introduction of multi-z-coordinates (probably along with the i96-Format).

ASCII-01

Used in preliminary versions of Frida-2. File name extension “.a01”. A sample file with 2 spectra:

ASCII-01 JWu
typ D
fil grid5x2
doc x := 2.70*i
doc z0 := 2.35*j
doc y := x^2+12.34*y
doc coordinate x renamed from 2.7*i (*) into Breite (m)
doc coordinate y renamed from 2.7*i^2+12.34*y (*^?) into Hoehe (m)
doc coordinate z0 renamed from 2.35*j (*) into Tiefe (m)
doc saved as grid5x2 on Tue Mar 21 23:16:14 2006
x   Breite      m
y   Hoehe       m
z0  Tiefe       m
#j  2
scn 0
Z   1
                 0
XY  5
                   0                    0
                 2.7                 7.29
                 5.4                29.16
                 8.1                65.61
                10.8               116.64
scn 1
Z   1
              2.35
XY  5
                   0                    0
                 2.7                 7.29
                 5.4                29.16
                 8.1                65.61
                10.8               116.64
eof

Comments:

  • Very nice to read
  • The many blanks in the XY sections are an enormous waste of storage.
  • The usage of “#” in the meaning of “number of” needs to be rethought, since in the scripting world, its the comment prefix (especially so in column 0)
  • “scn” stood for “scan”; throughout Frida-2, “scan” shall be renamed back to “spectrum”
  • “doc ” should not be repeated in every line; instead, use begin and end tag

ASCII-96

Used in Frida-1. Is used as a standard since 1996. A sample file with 2 spectra:

ASCII-96
(a24,a56)               
fil                     filename                                                
tit                     long title                                              
doc                     oosc                                               
dir                                                                             
sub                     instrument                                              
&eob 2 (end of block)  ------------------------
(a24,i16)               
?det-bal-sym                           0
@sam-erg-gain                         -1
plot-sy#                               0
&eob 3 (end of block)  ------------------------
(a24,a24,g20.10)        
E0                      meV                          2.334191189    
T                       K                            1200.000000    
cts[mon]                                             420564.0000    
at-mass                 amu                          1.000000000    
FP                      m                            2.483000040    
Cw                      usec                         7.125000480    
&eob 4 (end of block)  ------------------------
(a4,a24,a24)            
x   w                       meV                     
y   S(2th,w)                meV-1                   
z1  2th                                             
&eob 5 (end of block)  ------------------------
(a80)                   
IN6:
"ht"                                                                            
normalized to 27                                                                
y=y-#, #=6e-6                                                                   
y=y/#, #=y=S(2th,w)                                          
deleted sptra 95-97                                                             
chs kept 1-1021                                                                 
&eob 6 (end of block)  ------------------------
(2i8)                   
(i16,4g16.8/5g16.8)     
(3(2x,g16.8))           
       2       1
&spectrum   1
             5      5.000000    
    -1.6909029        0.27020141        0.30771835    
    -1.6895938        0.26911141        0.30647704    
   -0.15219796        0.10242032        0.58738120E-01
    0.10496248E-01     2.2390736        0.28680437    
    0.17196839       -0.27120464E-01    0.18103506E-01
&spectrum   2
             5     10.000000    
    -1.7605379       -0.65812241E-01    0.16396864E-05
    -1.7594403       -0.65739436E-01    0.16396864E-05
    -1.7583395        0.20337768        0.26886582    
    -1.7572356       -0.65237570E-01    0.16271324E-05
    -1.7561285       -0.64987736E-01    0.16208946E-05

Comments:

  • clear structure, very easy to read
  • sectioned by type definitions (will become obsolete for scripting languages)
  • huge amount of storage capacity needed (blanks and zeros in measured data)

pre-96