The following tutorial will guide, step by step, in a full Bragg Edge Modeling
You will need a VDrive file (vdrive_filename.txt) generated by the VULCAN instrument. This file should looks like this
You need to clone the bragg edge repository (this won’t be necessary as soon as the library has been deployed).
clone braggedgemodeling repo
switch to texture branch
git checkout texture
add to python path
In order to run the VDrive file through the Matlab code (step 2), we need to change the format of this file. To do so simply run the following command line (make sure you provide your own file path)
NB: Add braggedgemodeling repo to python path !
> python braggedgemodeling/scripts/vdrive_handler_to_mtex.py -i <full path to the vdrive filename.txt> -io <specify full filename of an intermediate file> -o <full path to output file, prefered extension .rpf>
> python scripts/vdrive_handler_to_mtex.py -i ~/Desktop/vdrive_filename.txt -o ~/Desktop/VULCAN.rpf -io ~/Desktop/intermediate_file
Here is what the output file should look like
Right now, this code only works on VULCAN2 computer, so connect to https://vulcan2.sns.gov
From there, launch Matlab2014a as this version is the only working for the code we are going to use.
FIX ME!!! find a way to make this script available to user (put it inside the mtex code
And here is the final file created, texture.txt