|
|
|
Pour utiliser sur le web | Pour imprimer en haute résolution |
|---|---|
Télécharger PNG | Télécharger TIF |
Télécharger JPG | Télécharger EPS |
The Computing for Science (CS) group supports ILL scientists, students and visitors in a number of activities including data analysis, instrument simulation and sample simulation.

File formats in PkFit and Filing1. IntroductionTwo types of files can be read: the data files and the resolution parameters' files. The data files contain the scan variables and can contain the resolution parameters too. The file formats are listed below and are described in detail in the appendix A to D of the manual of PkFit v2.1 for the Macintosh. PkFit, like Filing and ResCal, can read data from ASCII files in the formats listed below: Data-file formats
2. Formats of the resolution parameter files2.1. Resolution-parameter file formatsThese parameters can be input interactively or read from a data file. PkFit is able to read two different formats. DefinitionThe correspondence between the instrument parts and the parameters are shown on figures below. Resolution parameters of three-axis spectrometers. Definition of the scattering-sense coefficients
RESCAL formatThe first corresponds to that used by the old VAX version of ResCal. The parameter values are written in one column in free format in the following order:
New formatIn the second each line also corresponds to one parameter. However, each line is divided in two parts:
The line order is not important.
Note that from the RESCAL format there are the extra parameters:
2.2. TAS configuration fileExample of a TAS configuration file:
Description of the TAS configuration file format:The TAS configuration file is composed by a succession of two lines: the first line is a comment line which describes the values listed in the second line. All distances and dimensions are in cm.
3. Formats of the data files3.1. Unified TAS ILL formatThis is the default ILL file format since January 1995. Its main features are:
with however some exceptions. Note that there is no space between the keyword and the equal sign. The coma is compulsory except for the last parameter in the line.
Line identifiers
Instrument line:
PARAM keywordsSee here the correspondence between the PARAM keywords and the instrument parameters.
|
A1,A2,A3,A4,A5,A6 | spectrometer rotations | in degrees |
TM,GM,RM | monochromator translation, goniometer and curvature |
|
GL,GU | sample goniometers |
|
TA,GA,RA | analyzer translation, goniometer and curvature |
|
CH,IM | magnetic field and intensity |
|
I1 to I8 | amplificator intensities for polarisation analysis |
QH,QK,QL | scattering wave vector | in rlu |
EN | energy transfer | in meV or THz |
RRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR
000485 1 0
ILL TAS data in the new ASCII format follow after the line VV...V
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
12. 0
IN20 KULDA 22-MAR-95 10:56:50
VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV
INSTR: IN20
EXPNO: 4-7-35
USER_: KULDA
LOCAL: CURRAT
FILE_: 000485.Z
DATE_: 31-MAR-94 16:12:34
TITLE: TAs
COMND: SC EN=2.8 DEN=.2 NP=3 MN=200
COMM_: This is just a comment.
[only in PA mode:
POLAN: ON F1; CO MN=10000; OFF F1; CO MN=2000]
POSQE: QH= 2.1000, QK= 0.0000, QL= 0.0001, EN= -1.002, UN=meV
STEPS: DQH= 0.0000, DQK= 0.0000, DQL= 0.0000, DEN= .100,
[or STEPS: DA3= 0.10]
PARAM: DM= 3.3551, DA= 3.3550, SM= 1., SS=-1., SA= 1., ETAM= 35.1, ETAA= 24.0,
PARAM: FX= 2., KFIX= 2.6620,
PARAM: ALF1= 60., ALF2= 40., ALF3= 43., ALF4= 60.,
PARAM: BET1=120., BET2= 90., BET3= 90., BET4=240.,
PARAM: AS= 6.2832, BS= 6.2832, CS= 6.2832,
PARAM: AA= 90.000, BB= 90.000, CC=120.000, ETAS= 17.1,
PARAM: AX= 1.000, AY= 0.000, AZ= 0.000,
PARAM: BX= 0.000, BY= 0.000, BZ= 1.000,
VARIA: A1= 35.43, A2= 70.85, A3=-185.23, A4= -56.05, A5= 35.43, A6= 70.86,
VARIA: TM= 20.00, GM= 19.98, RM= 10.62, GL= 15.43, GU= -2.34,
VARIA: TA= 15.94, GA= 13.23, RA= 5.34, CH= 134.00, LM= 23.00,
[only in PA mode:
VARIA: I1= 0.00, I2= 0.00, I3= 1.00, I4= 0.80, I5= 0.00, I6= 0.00,
VARIA: I7= 0.00, I8= 0.00,]
ZEROS: -131.02, -145.98, -180.00, -130.98, -90.70, -131.02, etc
ZEROS: ... etc.
FORMT: (I4,1X,F8.3,1X,I7,1X,I6,1X,I6,1X,F7.2,1X,F7.2,1X,F7.2,1X,F8.4,1X,F7.2)
DATA_:
PNT EN CNTS M1 M2 TIME A3 A4 KI T 13 2.610 263 200 794 72.77 22.50 -2.99 2.8890 19.87
14 2.797 175 200 761 72.13 22.50 -2.99 2.9040 19.87
15 2.995 161 200 806 71.69 22.50 -2.99 2.9210 19.87
........... etc.
The program assumes that data values to be read from data lines are in the same number and order than variable names in the variable name line if it exists. Data values are read in free format. The column separators accepted are one or more spaces, a tabulation, a coma, a semicolon, or a slash.
Attention: PkFit reads only ASCII Files. E.g. to read Kaleidagraph documents, save them as a text document (i.e. select Save as or Save Document from menu File; select Save as Text in the save-file dialogue box).
EN CNTS DELT data name line
-0.931000 -0.00200000 0.00810000
-0.827000 0.0040 0.00660000
-0.620000 0.00200000 0.00890000
.... etc.