Click or drag to resize

FieldCorrectionApplyErrors(dvec2, dvec2, NullableDouble, Double, Double) Method

Adjusts the field correction table based on the three-dimensional array of XYZ errors.

Namespace: RAYLASE.Marker.Corrections
Assembly: RAYLASE.Marker.Corrections (in RAYLASE.Marker.Corrections.dll) Version: 2.19.0
Syntax
C#
public void ApplyErrors(
	dvec2 expectedBottomLeft,
	dvec2 expectedTopRight,
	double?[,,,,] errors,
	double[] layersSelected,
	double[] magnificationsSelected
)

Parameters

expectedBottomLeft  dvec2
The bottom left corner of the area.
expectedTopRight  dvec2
The top right corner of the area.
errors  NullableDouble
The XY errors [axis, magnification, z, y x] across the four-dimensional beam field, where error equals to actual - expected. The errors are expected to be equidistantly spread over the field.
layersSelected  Double
Defines the selected layers. If null, the layers will be distributed evenly.
magnificationsSelected  Double
Defines the selected magnifications. If null, the magnifications will be distributed evenly.
Remarks

The errors describe for each axis the difference between the actual and expected position. For example, if the scan head was expected to move to 100mm, but ends up short at 90mm then the error would be -10mm (90mm minus 100mm) for that axis.

The expected positions are equal to the grid points' positions that result from dividing the area defined by "expectedBottomLeft" and "expectedTopRight" evenly into cells. The number of cells in the horizontal and vertical dimension is calculated by subtracting 1 from the "errors" array's columns and rows, respectively.

The "errors" array must not be larger than the field corrections' grid points in neither dimension (neither errors' rows must exceed "Rows", nor errors' columns must exceed "Columns"). If "errors" is smaller, then its values will be interpolated across the beam field. (InterpolateError(UAT, Int32, Int32, Int32, Double, Int32, Double, Nullabledvec2, Nullabledvec2, Nullabledvec2, Boolean))

See Also