Class ManualGratingCalibration

java.lang.Object
uk.ac.diamond.scisoft.diffraction.powder.ManualGratingCalibration

public class ManualGratingCalibration extends Object
  • Constructor Details

    • ManualGratingCalibration

      public ManualGratingCalibration()
  • Method Details

    • getBeamCentre

      public double[] getBeamCentre()
    • setBeamCentre

      public void setBeamCentre(double[] beamCentre)
    • setGratingspacing

      public void setGratingspacing(double gratingspacing)
    • setEnergy

      public void setEnergy(double energy)
    • setPixelPitch

      public void setPixelPitch(double pixelPitch)
    • getPatternAngle

      public double getPatternAngle()
    • getFringeSpacing

      public double getFringeSpacing()
    • getSectorROI

      public SectorROI getSectorROI()
    • getDetectorDistance

      public double getDetectorDistance(org.eclipse.january.dataset.Dataset input, org.eclipse.january.dataset.Dataset mask, SectorROI regionOfInterest, boolean beamCentreRefinement)
    • fitGrating

      public static Map<uk.ac.diamond.scisoft.diffraction.powder.ManualGratingCalibration.FitKeys,Double> fitGrating(org.eclipse.january.dataset.Dataset input, org.eclipse.january.dataset.Dataset mask, double[] beamCentre, SectorROI regionOfInterest, boolean beamCentreRefinement)
      Fits the beam centre and fringe spacing given an I22 grating calibration dataset.
      Parameters:
      input - the dataset containing the grating integration
      beamCentre - the manually assigned beam centre, if appropriate
      Returns:
      a map of the double result values, encapsulated in a map. The Map is keyed by the GratingFitKeys enum.