Ticket #1508 (closed: fixed)

Opened 10 years ago

Last modified 5 years ago

Post CTE Indirect Analysis Interface

Reported by: Michael Whitty Owned by: Michael Whitty
Priority: major Milestone: Iteration 24
Component: Keywords:
Cc: Blocked By:
Blocking: Tester: Stuart Campbell

Description

Create interface for post-convert-to-energy steps for indirect instruments. From Spencer's scripts: fury, elwin, slice, msdfit, absorption correction

Attachments

irs21360_graphite002_ipg.nxs (1.5 MB) - added by Michael Whitty 10 years ago.
Testing file
IRS26173_res.nxs (118.2 KB) - added by Michael Whitty 10 years ago.
Testing file
IRS26173_graphite002_calib.nxs (94.0 KB) - added by Michael Whitty 10 years ago.
Testing file

Change History

comment:1 Changed 10 years ago by Michael Whitty

  • Status changed from new to accepted

comment:2 Changed 10 years ago by Michael Whitty

(In [5829]) re #1508 - adding interface for Fury, Elwin, Slice, MSDFit and Absorption stages of Indirect analysis steps extrapolated from Spencer Howell's scripts.

comment:3 Changed 10 years ago by Michael Whitty

  • Status changed from accepted to verify

comment:4 Changed 10 years ago by Nick Draper

  • Resolution set to fixed

fill in missing resolution

comment:5 Changed 10 years ago by Michael Whitty

(In [5894]) re #1508 - fixing typo in python file

comment:6 Changed 10 years ago by Stuart Campbell

  • Status changed from verify to verifying
  • Tester set to Stuart Campbell

comment:7 Changed 10 years ago by Michael Whitty

Instructions for testing:

NB: running some of these under debug mode seems to crash Python for some reason. test in release mode or on a recent installer/rpm build (>r5918).

Ok, leave the initial settings to Instrument: ISIS/IRIS, Analyser: Graphite, Reflection: 002 - ignore the other boxes on the first tab.

"Fury" - takes an "Icon" file (the output of Indirect ConvertToEnergy) and a RES file, which is pretty much the same thing but on a calibration run with a couple of post steps. Select these files (icon: irs21360_graphite002_ipg.nxs, res: irs26173_res.nxs) ELow/EWidth/EHigh are the rebin parameters. I tend to use "-0.5, 0.005, 0.5"

"Elwin" - takes irs21360_graphite002_ipg.nxs also. Window Start: -0.1, Window End: 0.1 - the result should be a workspace with a single histogram and the number of bins equal to the number of histograms in the input workspace, with the X-axis being the Q2 which is based off the detectors twoTheta value.

"Slice" - takes a raw file - I'd suggest irs21360.raw which is in the test data directory. It takes also a calibration file generated in the ConvertToEnergy interface - irs26173_graphite002_calib.nxs attached. Suggested input values (taken from Spencer's scripts) for TOF ranges are: [TOF1A: 62500, TOF1B: 65000, TOF2A: 59000, TOF2B: 61500] This should IIRC give you a single-binned workspace which when you plot the bin, resembles in shape that retrieved from Elwin's plotted spectra.

"MSDFit" - takes an Elwin file (which you'll have generated by now, should be a nxs file ending with '_elw'). StartX: 0.3, EndX 1.3, check 'Plot Output', you'll get the Elwin plot and a line fitted to it, with some information in the title of the plot.

"Absorption" - takes the above-mentioned _ipg.nxs file. Select either flat plate from the combo box. Enter values of: attenuation=1.0, scattering=5.0, density=0.1 height=1.0, width=1.0, thickness=0.1, element size=0.5

Just waiting for mantidplot to build so I can create some test data, which will be attached shortly.

Changed 10 years ago by Michael Whitty

Testing file

Changed 10 years ago by Michael Whitty

Testing file

Changed 10 years ago by Michael Whitty

Testing file

comment:8 Changed 10 years ago by Michael Whitty

That's the testing files added. Good luck. :)

comment:9 Changed 10 years ago by Stuart Campbell

(In [5963]) Added test files for analysis testing. refs #1508

comment:10 Changed 10 years ago by Stuart Campbell

All seem to run.

The only one I am not sure about is the "Slice"

It produces a workspace of 51 histograms of length 1 bin. Is this correct ? I can't figure out how to plot it ?

comment:11 Changed 10 years ago by Stuart Campbell

  • Status changed from verifying to closed

I ended up using a different program to plot it and it looks ok.

comment:12 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 2355

Note: See TracTickets for help on using tickets.