arjeneh / jpowder

Automatically exported from code.google.com/p/jpowder
1 stars 0 forks source link

Read GSAS format #8

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Read GSAS files. In particular those generated for the instrument at ISIS. 
For now just be able to read these but otherwise do nothing with them.

Original issue reported on code.google.com by anders.m...@stfc.ac.uk on 12 May 2010 at 1:48

GoogleCodeExporter commented 9 years ago
The only GSAS format files we will initially support are those generated at 
Rutherford Appleton Laboratory. These are identified by have the 'RALF' 
identifier 
in the 2nd line of the file. In addition we will only support those 'RALF' 
files 
which use the 'FXYE' format.

This format is x = TOF (microseconds) = 1st column
               y = 2nd column / (step* binwidth)
               e = 3rd column / (step* binwidth)

where step is the data point number (row number) starting from 1, and
binwidth is equal to the difference between the first two x-values.

To implement this create a separate class which only except .gsas files.
In addition when reading this file first text that the f'ing 'RALF' and
'FXYE' GSAS file format identifiers are present. If not explain to user that
we can't read this type of GSAS file.

Where step goes from 1 for the first data point etc upwards.

Original comment by anders.m...@stfc.ac.uk on 19 May 2010 at 12:12

GoogleCodeExporter commented 9 years ago
Required extension change from .gsas to .gss. 

Also in Dataset put in String attribute xUnit which defaults to 'twoTheta'. 
However 
when a gss file is read in change this to 'TOF'. Otherwise allowed values for 
xUnit 
are 'dSpacing'. 

Original comment by anders.m...@stfc.ac.uk on 19 May 2010 at 12:23

GoogleCodeExporter commented 9 years ago
Issue has been solved.

Original comment by arje...@gmail.com on 20 May 2010 at 1:34

GoogleCodeExporter commented 9 years ago
Done. Had user testing this and positive respond

Original comment by anders.m...@stfc.ac.uk on 1 Jul 2010 at 3:58