Ticket #2795: applyFloodFile.py

File applyFloodFile.py, 702 bytes (added by Anders Markvardsen, 9 years ago)

python script for apply flood file

Line 
1from ISISCommandInterface import *
2
3LOQ()
4MaskFile(r'C:\Backup\Backup_folder1\work\code\Mantid\git\mantid\Test\systemtests\Data\LOQ\MASK.094AA')
5
6# Set data file
7dataFile = r'C:\Backup\Backup_folder1\work\code\Mantid\git\mantid\Test\systemtests\Data\LOQ\LOQ54431.raw'
8AssignSample(dataFile)
9
10# Load flood file
11floodFile = r'C:\Backup\Backup_folder1\work\code\Mantid\git\mantid\Test\systemtests\Data\LOQ\FLAT_CELL.061'
12Load(floodFile,'flood',FirstColumnValue="SpectrumNumber")
13
14# Crop workspaces to the detectors used in the reduction (as defined in the mask file)
15CropToDetector('flood','floodCrop')
16CropToDetector('54431_sans_raw','dataCrop')
17
18Divide('dataCrop','floodCrop', 'DataDividedFlood')