Changeset 48b8f6d in sasview
- Timestamp:
- Oct 7, 2016 3:49:07 PM (8 years ago)
- Branches:
- master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- b61bd57, 18b7ecb9
- Parents:
- e82bb81
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sasgui/guiframe/media/data_formats_help.rst
r280f929 r48b8f6d 10 10 ============ 11 11 12 SasView reads several different 1D (I(Q) vs Q), 2D SANS(I(Qx,Qy) vs (Qx,Qy)) 13 and SESANS (P(z) vs z) 14 data files. But please note that SasView does not at present load data where 15 the Q and I(Q) data are in separate files. 12 SasView 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. 16 13 17 1D Formats SANS18 -------------- -14 1D SAS Formats 15 -------------- 19 16 20 SasView will read files with 2 to 4 columns of numbers in the following order:17 SasView will read ASCII ('text') files with 2 to 4 columns of numbers in the following order: 21 18 22 Q, I(Q), (dI(Q), dQ(Q))19 *Q, I(Q), ( dI(Q), dQ(Q) )* 23 20 24 where dQ(Q) is the instrumental resolution in Qand assumed to have originated21 where *dQ(Q)* is the instrumental resolution in *Q* and assumed to have originated 25 22 from pinhole geometry. 26 23 27 24 Numbers can be separated by spaces or commas. 28 25 29 SasView recognises the following file extensions :26 SasView recognises the following file extensions which are not case-sensitive: 30 27 31 28 * .TXT … … 34 31 * .XML (in canSAS format v1.0 and 1.1) 35 32 36 If using CSV output from, for example, a spreadsheet, ensure that it is not 37 using commas as delimiters for thousands. 33 If using CSV output from, for example, a spreadsheet, ensure that it is not using commas as delimiters for thousands. 34 35 The 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. 38 36 39 37 For a description of the CanSAS/SASXML format see: 40 38 http://www.cansas.org/formats/canSAS1d/1.1/doc/ 41 39 40 For a description of the ISIS 1D format see: 41 http://www.isis.stfc.ac.uk/instruments/loq/software/colette-ascii-file-format-descriptions9808.pdf 42 43 For a description of the NXcanSAS format see: 44 http://cansas-org.github.io/NXcanSAS/classes/contributed_definitions/NXcanSAS.html 45 46 All the above formats are written by the `Mantid Framework <http://www.mantidproject.org/>`_. 47 42 48 For a description of the NIST 1D format see: 43 49 http://danse.chem.utk.edu/trac/wiki/NCNROutput1D_IQ 44 50 45 For a description of the ISIS 1D format see:46 http://www. isis.stfc.ac.uk/instruments/loq/software/colette-ascii-file-format-descriptions9808.pdf51 For a description of the BSL/OTOKO format see: 52 http://www.diamond.ac.uk/Beamlines/Soft-Condensed-Matter/small-angle/SAXS-Software/CCP13/BSL.html 47 53 48 54 .. ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ 49 55 50 2D Formats SANS51 -------------- -56 2D SAS Formats 57 -------------- 52 58 53 SasView will only read files in the NIST 2D format with the extensions 54 .ASC or .DAT 59 SasView 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/>`_. 55 60 56 Most of the header lines can be removed except the last line, and only the 57 first three columns (Qx, Qy, and I(Qx,Qy)) are actually required. 61 Most 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. 62 63 The 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. 58 64 59 65 For a description of the NIST 2D format see: 60 66 http://danse.chem.utk.edu/trac/wiki/NCNROutput1D_2DQxQy 61 67 62 .. ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ 68 For a description of the NXcanSAS format see: 69 http://cansas-org.github.io/NXcanSAS/classes/contributed_definitions/NXcanSAS.html 63 70 64 SESANS Format 65 ------------- 66 67 The current file extension is .ses or .sesans (not case sensitive). 68 69 The file format is to have a list of name-value pairs as a header at the top of the file, detailing general experimental parameters necessary for fitting and analyzing data. This list should contain all information necessary for the file to be 'portable' between users. 70 71 Following that is a 6 column list of instrument experimental variables: 72 73 - Spin echo length (z, in Angstroms) 74 - Spin echo length error (:math:`\Delta` z, in Angstroms) (experimental resolution) 75 - neutron wavelength (:math:`\lambda`, in Angstroms) (essential for ToF instruments) 76 - neutron wavelength error (:math:`\Delta \lambda`, in Angstroms) 77 - Normalized polarization (:math:`P/P_0`, unitless) 78 - Normalized polarization error (:math:`\Delta(P/P_0)`, unitless) (measurement error) 71 For a description of the BSL/OTOKO format see: For a description of the BSL/OTOKO format see: 72 http://www.diamond.ac.uk/Beamlines/Soft-Condensed-Matter/small-angle/SAXS-Software/CCP13/BSL.html 79 73 80 74 81 75 .. ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ 82 76 83 .. note:: This help document was last changed by Wim Bouwman, 05Oct2016 77 1D SESANS Format 78 ---------------- 79 80 SasView 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. 81 82 The 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. 83 84 Following the header is a 6 column list of instrument experimental variables: 85 86 - Spin echo length (z, in Angstroms) 87 - Spin echo length error (:math:`\Delta`\ z, in Angstroms) (experimental resolution) 88 - Neutron wavelength (:math:`\lambda`, in Angstroms) (essential for ToF instruments) 89 - Neutron wavelength error (:math:`\Delta \lambda`, in Angstroms) 90 - Normalized polarization (:math:`P/P_0`, unitless) 91 - Normalized polarization error (:math:`\Delta(P/P_0)`, unitless) (measurement error) 92 93 .. ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ 94 95 .. note:: This help document was last changed by Steve King, 07Oct2016
Note: See TracChangeset
for help on using the changeset viewer.