source: sasview/src/sas/sasgui/guiframe/media/data_formats_help.rst @ 1eb86a5

magnetic_scattrelease-4.2.2ticket-1009ticket-1094-headlessticket-1242-2d-resolutionticket-1243ticket-1249ticket885unittest-saveload
Last change on this file since 1eb86a5 was 1eb86a5, checked in by smk78, 6 years ago

Updated help text in data_formats_help.rst & marketplace.rst

  • Property mode set to 100644
File size: 5.2 KB
RevLine 
[959eb01]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.. WG Bouwman, DUT, added during CodeCamp-V in Oct 2016 the SESANS data format
6.. WG Bouwman, DUT, updated during CodeCamp-VI in Apr 2017 the SESANS data format
7
8.. _Formats:
9
10Data Formats
11============
12
13SasView reads several different 1D SAS (*I(Q) vs Q*), 2D SAS(*I(Qx,Qy) vs (Qx,Qy)*) and 1D SESANS (*P(z) vs z*) data files. From SasView 4.1 onwards, a :ref:`File_Converter_Tool` allows some legacy formats to be converted into modern formats that SasView will read.
14
151D SAS Formats
16--------------
17
18SasView will read ASCII ('text') files with 2 to 4 columns of numbers in the following order:
19
20    *Q, I(Q), ( dI(Q), dQ(Q) )*
21   
22where *dQ(Q)* is the instrumental resolution in *Q* and assumed to have originated
23from pinhole geometry.
24
25Numbers can be separated by spaces or commas.
26
27SasView recognises the following file extensions which are not case-sensitive:
28
29*  .TXT
30*  .DAT
31*  .XML (in canSAS format v1.0 and 1.1)
[1eb86a5]32*  .H5  (as NeXus NXcanSAS only)
33*  .NXS (as NeXus NXcanSAS only)
34
35.. note::
36    From SasView version 4.2 onwards files written in the NIST .ASC format are no longer read. This is because that
37    format normally represents *raw* and not reduced data.
[959eb01]38
39If using CSV output from, for example, a spreadsheet, ensure that it is not using commas as delimiters for thousands.
40
41The SasView :ref:`File_Converter_Tool` available in SasView 4.1 onwards can be used to convert data sets with separated *I(Q)* and *Q* files (for example, BSL/OTOKO, and some output from FIT2D and other SAXS-oriented software) into either the canSAS SASXML (XML) format or the NeXus NXcanSAS (HDF5) format.
42
43For a description of the CanSAS/SASXML format see:
44http://www.cansas.org/formats/canSAS1d/1.1/doc/
45
46For a description of the ISIS 1D format see:
[fafb396]47https://www.isis.stfc.ac.uk/Pages/colette-ascii-file-format-descriptions.pdf
[959eb01]48
49For a description of the NXcanSAS format see:
50http://cansas-org.github.io/NXcanSAS/classes/contributed_definitions/NXcanSAS.html
51
52All the above formats are written by the `Mantid Framework <http://www.mantidproject.org/>`_.
53
54For a description of the NIST 1D format see:
55http://danse.chem.utk.edu/trac/wiki/NCNROutput1D_IQ
56
57For a description of the BSL/OTOKO format see:
58http://www.diamond.ac.uk/Beamlines/Soft-Condensed-Matter/small-angle/SAXS-Software/CCP13/BSL.html
59
60.. ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ
61
622D SAS Formats
63--------------
64
[1eb86a5]65SasView will read ASCII ('text') files in the NIST 2D format (with the extension .DAT) or files in the NeXus NXcanSAS (HDF5) format (with the extension .H5 or .NXS). File extensions are not case-sensitive. Both of these formats are written by the `Mantid Framework <http://www.mantidproject.org/>`_.
[959eb01]66
67Most of the header lines in the NIST 2D format can actually be removed except the last line, and only the first three columns (*Qx, Qy,* and *I(Qx,Qy)*) are actually required.
68
[1eb86a5]69.. note::
70    From SasView version 4.2 onwards files written in the NIST .ASC format are no longer read. This is because that
71    format normally represents *raw* and not reduced data.
72
73.. note::
74    SasView does not read the standard NeXus format, only the NXcanSAS subset.
75
[959eb01]76The SasView :ref:`File_Converter_Tool` available in SasView 4.1 onwards can be used to convert data sets in the 2D BSL/OTOKO format into the NeXus NXcanSAS (HDF5) format.
77
78For a description of the NIST 2D format see:
79http://danse.chem.utk.edu/trac/wiki/NCNROutput1D_2DQxQy
80
81For a description of the NXcanSAS format see:
82http://cansas-org.github.io/NXcanSAS/classes/contributed_definitions/NXcanSAS.html
83
84For a description of the BSL/OTOKO format see: For a description of the BSL/OTOKO format see:
85http://www.diamond.ac.uk/Beamlines/Soft-Condensed-Matter/small-angle/SAXS-Software/CCP13/BSL.html
86
87
88.. ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ
89
901D SESANS Format
91----------------
92
93SasView version 4.1 onwards will read ASCII ('text') files in a prototype SESANS standard format (with the extensions .SES or .SESANS). The file extensions are not case-sensitive.
94
95The file format has a list of name-value pairs at the top of the file which detail the general experimental parameters necessary for fitting and analyzing data. This list should contain all the information necessary for the file to be 'portable' between users.
96
97Following the header is a 8 (only the first 4 are really needed) column list of instrument experimental variables:
98
99- Spin echo length (z, in Angstroms)
100- depolarization (:math:`log(P/P_0)/(lambda^2 * thickness)`, in Angstrom :sup:`-1` cm :sup:`-1`\ )
101- depolarization error in the same unit) (measurement error)
102- Spin echo length error (:math:`\Delta`\ z, in Angstroms) (experimental resolution)
103- Neutron wavelength (:math:`\lambda`, in Angstroms)
104- Neutron wavelength error (:math:`\Delta \lambda`, in Angstroms)
105- Normalized polarization (:math:`P/P_0`, unitless)
106- Normalized polarization error (:math:`\Delta(P/P_0)`, unitless) (measurement error)
107
108.. ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ
109
[98c44f3]110.. note::  This help document was last changed by Wim Bouwman, 05Apr2017
Note: See TracBrowser for help on using the repository browser.