Files (python):
- SAS_CanSAS.py
- Extracts Qx,Qy and I(Qx,Qy) from two files.
- Extracts metadata from the name of the two files (magnetic field value).
- Creates an h5 file. Inputs attributes (qi, indexes, name_of_sample etc).
- Inputs the data from the two files into the h5 file following the CanSAS format.
- Closes the h5 file which is then ready to be read.
- open_tables.py
- Opens an h5 (or hdf5) file and prints the structure (groups, datasets, size of arrays, etc).
- open_h5.py
- Opens an h5 (or hdf5) file and returns a dictionary with the data contained in the file.
- whats_in_dic.py
- Prints the contain of the dictionary returned from the open_h5.py.
- plot_3d_sas.py
- 3D plot of I(Qx,Qz) vs Qx,Qz from one *.ABS file
- Includes another method to plot both files simultaneously for comparison.
- plot_3d_from2files.py
- Makes 2 plots in 3D from the 2 intensity arrays from the h5 file.
- SAS_CanSAS.py
- option 1: 1. python SAS_CanSAS.py 2. the program prints the files .ABS files available 3. user may copy/paste a combination of two files 4. h5 file is created with data from the .ABS files
- option 2: 1. python SAS_CanSAS.py file1.ABS file2.ABS 2. file1 and file2 need to belong to the same sample. It will be verified. 3. h5 file is created with data from the .ABS files
- open_tables.py
- option 1:
- python open_tables
- Displays the h5 and/or hdf5 files available
- User copy/pastes one file
- Prints the structure of the h5 file (groups, datasets, array dimensions etc)
- option 2:
- python file.h5
- prints the structure of the h5 file (groups, datasets, array dimensions etc)
- open_h5.py
- option 1:
- python open_h5.py
- user gets files available from the program
- user select one file
- program creates a dictionary
- option 2:
- python open_h5.py file.h5
- program creates a dictionary