Class MicroFocusNexusReader

java.lang.Object
uk.ac.gda.client.microfocus.util.MicroFocusNexusReader

public class MicroFocusNexusReader extends Object
  • Constructor Details

    • MicroFocusNexusReader

      public MicroFocusNexusReader()
  • Method Details

    • getDetectorName

      public String getDetectorName()
    • setDetectorName

      public void setDetectorName(String detectorName)
    • loadData

      public void loadData(String FileName)
      Load a MicroFocus Nexus file and read in the x and y axis values
      Parameters:
      FileName -
    • getXValues

      public Double[] getXValues()
      Get the xaxis values used for testing
      Returns:
      Double[]
    • getYValues

      public Double[] getYValues()
    • getElementData

      public double[][][] getElementData(int detectorNo)
      Get the data for the detector Element from the loaded data
    • getWindowsfromBean

      public List<DetectorROI>[] getWindowsfromBean(String... fileName)
      Read all the Element windows from the bean file
      Parameters:
      fileName -
      Returns:
      list of all elements rois
    • getWindowsfromVortexBean

      public List<DetectorROI>[] getWindowsfromVortexBean(String... fileName)
    • plotElement

      public void plotElement(String elementName, String fileName)
    • constructMappableData

      public double[][] constructMappableData(String elementName)
    • setDetectorBeanFileName

      public void setDetectorBeanFileName(String string)
    • constructMappableDatafromXmap

      public double[][] constructMappableDatafromXmap(String elementName)
    • constructMappableDatafromXspress

      public double[][] constructMappableDatafromXspress(String elementName)
      Construct a 2D array for the given element
      Parameters:
      elementName -
      Returns:
      2d double array
    • constructMappableDatafromCounter

      public double[][] constructMappableDatafromCounter(String elementName)
    • setXScannableName

      public void setXScannableName(String xScannableName)
    • getXScannableName

      public String getXScannableName()
    • setYScannableName

      public void setYScannableName(String yScannableName)
    • getYScannableName

      public String getYScannableName()
    • main

      public static void main(String[] args)
    • setPlottingWindowName

      public void setPlottingWindowName(String plottingWindowName)
    • getPlottingWindowName

      public String getPlottingWindowName()