[2b7d102] | 1 | .. data_formats.rst |
---|
| 2 | |
---|
| 3 | .. This is a port of the original SasView html help file to ReSTructured text |
---|
| 4 | .. by S King, ISIS, during SasView CodeCamp-III in Feb 2015. |
---|
| 5 | |
---|
[a9dc4eb] | 6 | .. _Formats: |
---|
| 7 | |
---|
[2b7d102] | 8 | Data Formats |
---|
| 9 | ============ |
---|
| 10 | |
---|
[a9dc4eb] | 11 | SasView reads several different 1D (I(Q) vs Q) and 2D (I(Qx,Qy) vs (Qx,Qy)) |
---|
| 12 | data files. But please note that SasView does not at present load data where |
---|
| 13 | the Q and I(Q) data are in separate files. |
---|
[2b7d102] | 14 | |
---|
| 15 | 1D Formats |
---|
| 16 | ---------- |
---|
| 17 | |
---|
| 18 | SasView will read files with 2 to 4 columns of numbers in the following order: |
---|
| 19 | |
---|
| 20 | Q, I(Q), (dI(Q), dQ(Q)) |
---|
| 21 | |
---|
| 22 | where dQ(Q) is the instrumental resolution in Q and assumed to have originated |
---|
| 23 | from pinhole geometry. |
---|
| 24 | |
---|
| 25 | Numbers can be separated by spaces or commas. |
---|
| 26 | |
---|
| 27 | SasView recognises the following file extensions: |
---|
| 28 | |
---|
[3fd3d5a4] | 29 | * .TXT |
---|
| 30 | * .ASC |
---|
| 31 | * .DAT |
---|
| 32 | * .XML (in canSAS format v1.0 and 1.1) |
---|
[2b7d102] | 33 | |
---|
| 34 | If using CSV output from, for example, a spreadsheet, ensure that it is not |
---|
| 35 | using commas as delimiters for thousands. |
---|
| 36 | |
---|
[3fd3d5a4] | 37 | For a description of the CanSAS/SASXML format see: |
---|
| 38 | http://www.cansas.org/formats/canSAS1d/1.1/doc/ |
---|
[6f10243] | 39 | |
---|
[3fd3d5a4] | 40 | For a description of the NIST 1D format see: |
---|
[2b7d102] | 41 | http://danse.chem.utk.edu/trac/wiki/NCNROutput1D_IQ |
---|
| 42 | |
---|
| 43 | For a description of the ISIS 1D format see: |
---|
| 44 | http://www.isis.stfc.ac.uk/instruments/loq/software/colette-ascii-file-format-descriptions9808.pdf |
---|
| 45 | |
---|
| 46 | .. ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ |
---|
| 47 | |
---|
| 48 | 2D Formats |
---|
| 49 | ---------- |
---|
| 50 | |
---|
| 51 | SasView will only read files in the NIST 2D format with the extensions |
---|
| 52 | .ASC or .DAT |
---|
| 53 | |
---|
| 54 | Most of the header lines can be removed except the last line, and only the |
---|
| 55 | first three columns (Qx, Qy, and I(Qx,Qy)) are actually required. |
---|
| 56 | |
---|
| 57 | For a description of the NIST 2D format see: |
---|
| 58 | http://danse.chem.utk.edu/trac/wiki/NCNROutput1D_2DQxQy |
---|
| 59 | |
---|
| 60 | .. ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ |
---|
[3fd3d5a4] | 61 | |
---|
[a9dc4eb] | 62 | .. note:: This help document was last changed by Steve King, 01May2015 |
---|