source: sasview/src/sas/sasgui/guiframe/media/data_formats_help.rst @ 98c44f3

ESS_GUIESS_GUI_DocsESS_GUI_batch_fittingESS_GUI_bumps_abstractionESS_GUI_iss1116ESS_GUI_iss879ESS_GUI_iss959ESS_GUI_openclESS_GUI_orderingESS_GUI_sync_sascalccostrafo411magnetic_scattrelease-4.2.2ticket-1009ticket-1094-headlessticket-1242-2d-resolutionticket-1243ticket-1249ticket885unittest-saveload
Last change on this file since 98c44f3 was 98c44f3, checked in by smk78, 7 years ago

Replacing data_formats_help.rst with version updated by Wim.

  • Property mode set to 100644
File size: 4.8 KB
RevLine 
[280f929]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
[98c44f3]6.. WG Bouwman, DUT, updated during CodeCamp-VI in Apr 2017 the SESANS data format
[280f929]7
8.. _Formats:
9
10Data Formats
11============
12
[48b8f6d]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.
[280f929]14
[48b8f6d]151D SAS Formats
16--------------
[280f929]17
[48b8f6d]18SasView will read ASCII ('text') files with 2 to 4 columns of numbers in the following order:
[280f929]19
[48b8f6d]20    *Q, I(Q), ( dI(Q), dQ(Q) )*
[280f929]21   
[48b8f6d]22where *dQ(Q)* is the instrumental resolution in *Q* and assumed to have originated
[280f929]23from pinhole geometry.
24
25Numbers can be separated by spaces or commas.
26
[48b8f6d]27SasView recognises the following file extensions which are not case-sensitive:
[280f929]28
29*  .TXT
30*  .ASC
31*  .DAT
32*  .XML (in canSAS format v1.0 and 1.1)
33
[48b8f6d]34If using CSV output from, for example, a spreadsheet, ensure that it is not using commas as delimiters for thousands.
35
36The 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.
[280f929]37
38For a description of the CanSAS/SASXML format see:
39http://www.cansas.org/formats/canSAS1d/1.1/doc/
40
[48b8f6d]41For a description of the ISIS 1D format see:
42http://www.isis.stfc.ac.uk/instruments/loq/software/colette-ascii-file-format-descriptions9808.pdf
43
44For a description of the NXcanSAS format see:
45http://cansas-org.github.io/NXcanSAS/classes/contributed_definitions/NXcanSAS.html
46
47All the above formats are written by the `Mantid Framework <http://www.mantidproject.org/>`_.
48
[280f929]49For a description of the NIST 1D format see:
50http://danse.chem.utk.edu/trac/wiki/NCNROutput1D_IQ
51
[48b8f6d]52For a description of the BSL/OTOKO format see:
53http://www.diamond.ac.uk/Beamlines/Soft-Condensed-Matter/small-angle/SAXS-Software/CCP13/BSL.html
[280f929]54
55.. ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ
56
[48b8f6d]572D SAS Formats
58--------------
59
60SasView will read ASCII ('text') files in the NIST 2D format (with the extensions .ASC or .DAT) or files in the NeXus NXcanSAS (HDF5) format (with the extension .H5). File extensions are not case-sensitive. Both of these formats are written by the `Mantid Framework <http://www.mantidproject.org/>`_.
[280f929]61
[48b8f6d]62Most 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.
[280f929]63
[48b8f6d]64The 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.
[280f929]65
66For a description of the NIST 2D format see:
67http://danse.chem.utk.edu/trac/wiki/NCNROutput1D_2DQxQy
68
[48b8f6d]69For a description of the NXcanSAS format see:
70http://cansas-org.github.io/NXcanSAS/classes/contributed_definitions/NXcanSAS.html
71
72For a description of the BSL/OTOKO format see: For a description of the BSL/OTOKO format see:
73http://www.diamond.ac.uk/Beamlines/Soft-Condensed-Matter/small-angle/SAXS-Software/CCP13/BSL.html
74
75
[280f929]76.. ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ
77
[48b8f6d]781D SESANS Format
79----------------
[280f929]80
[48b8f6d]81SasView 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.
[280f929]82
[48b8f6d]83The 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.
[280f929]84
[98c44f3]85Following the header is a 8 (only the first 4 are really needed) column list of instrument experimental variables:
[280f929]86
87- Spin echo length (z, in Angstroms)
[98c44f3]88- depolarization (:math:`log(P/P_0)/(lambda^2 * thickness)`, in Angstrom^-1 cm^-1)
89- depolarization error in the same unit) (measurement error)
[48b8f6d]90- Spin echo length error (:math:`\Delta`\ z, in Angstroms) (experimental resolution)
[98c44f3]91- Neutron wavelength (:math:`\lambda`, in Angstroms)
[48b8f6d]92- Neutron wavelength error (:math:`\Delta \lambda`, in Angstroms)
[280f929]93- Normalized polarization (:math:`P/P_0`, unitless)
94- Normalized polarization error (:math:`\Delta(P/P_0)`, unitless) (measurement error)
95
96.. ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ
97
[98c44f3]98.. note::  This help document was last changed by Wim Bouwman, 05Apr2017
Note: See TracBrowser for help on using the repository browser.