Package uk.ac.gda.client.microfocus.util
Class MicroFocusNexusReader
java.lang.Object
uk.ac.gda.client.microfocus.util.MicroFocusNexusReader
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondouble[][]constructMappableData(String elementName) double[][]constructMappableDatafromCounter(String elementName) double[][]constructMappableDatafromXmap(String elementName) double[][]constructMappableDatafromXspress(String elementName) Construct a 2D array for the given elementdouble[][][]getElementData(int detectorNo) Get the data for the detector Element from the loaded dataList<DetectorROI>[]getWindowsfromBean(String... fileName) Read all the Element windows from the bean fileList<DetectorROI>[]getWindowsfromVortexBean(String... fileName) Double[]Get the xaxis values used for testingDouble[]voidLoad a MicroFocus Nexus file and read in the x and y axis valuesstatic voidvoidplotElement(String elementName, String fileName) voidsetDetectorBeanFileName(String string) voidsetDetectorName(String detectorName) voidsetPlottingWindowName(String plottingWindowName) voidsetXScannableName(String xScannableName) voidsetYScannableName(String yScannableName)
-
Constructor Details
-
MicroFocusNexusReader
public MicroFocusNexusReader()
-
-
Method Details
-
getDetectorName
-
setDetectorName
-
loadData
Load a MicroFocus Nexus file and read in the x and y axis values- Parameters:
FileName-
-
getXValues
Get the xaxis values used for testing- Returns:
- Double[]
-
getYValues
-
getElementData
public double[][][] getElementData(int detectorNo) Get the data for the detector Element from the loaded data -
getWindowsfromBean
Read all the Element windows from the bean file- Parameters:
fileName-- Returns:
- list of all elements rois
-
getWindowsfromVortexBean
-
plotElement
-
constructMappableData
-
setDetectorBeanFileName
-
constructMappableDatafromXmap
-
constructMappableDatafromXspress
Construct a 2D array for the given element- Parameters:
elementName-- Returns:
- 2d double array
-
constructMappableDatafromCounter
-
setXScannableName
-
getXScannableName
-
setYScannableName
-
getYScannableName
-
main
-
setPlottingWindowName
-
getPlottingWindowName
-