[11794f2] | 1 | .. file_converter_help.rst |
---|
| 2 | |
---|
[da456fb] | 3 | .. _File_Converter_Tool: |
---|
| 4 | |
---|
[11794f2] | 5 | File Converter Tool |
---|
| 6 | =================== |
---|
| 7 | |
---|
| 8 | Description |
---|
| 9 | ----------- |
---|
| 10 | |
---|
[d73998c] | 11 | This tool converts file formats with the Q data and Intensity data stored in separate |
---|
| 12 | files, into a single CanSAS (XML) or NXcanSAS (HDF5) file. |
---|
[11794f2] | 13 | |
---|
[d73998c] | 14 | It can also convert 2D BSL/OTOKO files into a NXcanSAS file. |
---|
[ebc1407] | 15 | |
---|
[d73998c] | 16 | Supported input file formats (examples may be found in the /test/convertible_files folder): |
---|
[11794f2] | 17 | |
---|
[d73998c] | 18 | * Single-column ASCII data, with lines that end without any delimiter, |
---|
| 19 | or with a comma or semi-colon delimiter |
---|
[59decb81] | 20 | * 2D `ISIS ASCII formatted |
---|
| 21 | <http://www.isis.stfc.ac.uk/instruments/loq/software/ |
---|
| 22 | colette-ascii-file-format-descriptions9808.pdf>`_ data |
---|
[d73998c] | 23 | * `1D BSL/OTOKO format |
---|
[ebc1407] | 24 | <http://www.diamond.ac.uk/Beamlines/Soft-Condensed-Matter/small-angle/ |
---|
[d73998c] | 25 | SAXS-Software/CCP13/BSL.html>`_ data |
---|
| 26 | * `2D BSL/OTOKO format |
---|
[11794f2] | 27 | <http://www.diamond.ac.uk/Beamlines/Soft-Condensed-Matter/small-angle/ |
---|
[d73998c] | 28 | SAXS-Software/CCP13/BSL.html>`_ data |
---|
[97e90b7] | 29 | |
---|
[d73998c] | 30 | Supported output file formats: |
---|
[97e90b7] | 31 | |
---|
[d73998c] | 32 | * `CanSAS <http://www.cansas.org/formats/canSAS1d/1.1/doc/>`_ |
---|
| 33 | * `NXcanSAS <http://download.nexusformat.org/sphinx/classes/contributed_definitions/NXcanSAS.html>`_ |
---|
[11794f2] | 34 | |
---|
| 35 | .. ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ |
---|
| 36 | |
---|
| 37 | Using the Tool |
---|
| 38 | -------------- |
---|
| 39 | |
---|
[d73998c] | 40 | 1) Select the files containing your Q-axis and Intensity-axis data |
---|
[59decb81] | 41 | 2) Choose whether the files are in ASCII 1D, ASCII 2D, 1D BSL/OTOKO or 2D BSL/OTOKO format |
---|
[d73998c] | 42 | 3) Choose where you would like to save the converted file |
---|
[11794f2] | 43 | 4) Optionally, input some metadata such as sample size, detector name, etc |
---|
[d73998c] | 44 | 5) Click *Convert* to save the converted file |
---|
[eb8da5f] | 45 | |
---|
[94f4518] | 46 | Files With Multiple Frames |
---|
| 47 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ |
---|
| 48 | |
---|
[d73998c] | 49 | If a BSL/OTOKO file with multiple frames is selected for the Intensity-axis |
---|
[94f4518] | 50 | file, a dialog will appear asking which frames you would like converted. You |
---|
| 51 | may enter a start frame, end frame & increment, and all frames in that subset |
---|
[59decb81] | 52 | will be converted. For example, entering 0, 50 and 10 will convert frames 0, |
---|
[d73998c] | 53 | 10, 20, 30, 40 & 50. |
---|
| 54 | |
---|
[94f4518] | 55 | To convert a single frame, enter the same value for first frame & last frame, |
---|
| 56 | and 1 as the increment. |
---|
| 57 | |
---|
[d3e1870] | 58 | CanSAS XML files can become quite large when exporting multiple frames to a |
---|
| 59 | single file, so there is an option in the *Select Frame* dialog to output each |
---|
[d73998c] | 60 | frame to its own file. The single file option will produce one file with |
---|
[59decb81] | 61 | multiple `<SASdata>` elements. The multiple file option will output a separate |
---|
| 62 | file with one `<SASdata>` element for each frame. The frame number will also be |
---|
[d73998c] | 63 | appended to the file name. |
---|
| 64 | |
---|
[59decb81] | 65 | The multiple file option is not available when exporting to NXcanSAS because |
---|
[d73998c] | 66 | the HDF5 format is more efficient at handling large amounts of data. |
---|
| 67 | |
---|
| 68 | |
---|
| 69 | .. note:: |
---|
| 70 | This help document was last changed by Steve King, 08Oct2016 |
---|