Class ManualGratingCalibration
java.lang.Object
uk.ac.diamond.scisoft.diffraction.powder.ManualGratingCalibration
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfitGrating(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.double[]doublegetDetectorDistance(org.eclipse.january.dataset.Dataset input, org.eclipse.january.dataset.Dataset mask, SectorROI regionOfInterest, boolean beamCentreRefinement) doubledoublevoidsetBeamCentre(double[] beamCentre) voidsetEnergy(double energy) voidsetGratingspacing(double gratingspacing) voidsetPixelPitch(double pixelPitch)
-
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
-
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 integrationbeamCentre- 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.
-