It computes the flatness F of a surface plate (meja rata / surface plate) from gradient
readings taken with an electronic level on a crossing grid (grid / kisi-kisi saling
bersilangan), and evaluates the measurement uncertainty with a Monte Carlo simulation.
Method: progressive tilt measurement with an absolute tilt meter, least-square data
processing (matrix method) and Monte Carlo uncertainty evaluation, as described in the
guide SNSU PK.P-08:2022 (clauses 5.1-5.3, 6 and annexes A-D).
How to use it
- m and n: number of grid segments in the x and the y direction
(
m = plate length / base length, rounded down, clause 5.1.5).
- l: step length = base length of the electronic level, in metre (e.g.
0.15).
- g: the mean gradient of every segment, in µm/m, in the order below.
- Optionally the instrument information for the report.
- Optionally the uncertainty sources (clause 6) and the number of simulations
N.
- Run. The result gives the point heights
h_j, the deviations f_j, the flatness F
and (if sources are given) the expanded uncertainty U.
Order of the gradient values
Point (0,0) is the top-left corner, the x-axis runs downward, the y-axis to the right.
Point j = 1 + ix + iy*(m+1).
- Segments parallel to x: for
iy = 0..n, for ix = 0..m-1, the segment from (ix,iy)
to (ix+1,iy). Count = m*(n+1).
- Segments parallel to y: for
iy = 0..n-1, for ix = 0..m, the segment from (ix,iy)
to (ix,iy+1). Count = (m+1)*n.
Total number of values = m*(n+1) + (m+1)*n. Each segment is normally measured there and
back (clause 5.2.1); enter the mean of the readings (clause 5.3.1).
- Height difference:
d_i = ḡ_i * l
- Heights:
h = Q · Aᵀ · d, Q = (Aᵀ·A)⁻¹, with h₁ = 0 (annex B, matrix A is A₀
without its first column).
- Datum plane:
z = a·x + b·y + c by least-square fitting,
[a b c]ᵀ = W · Bᵀ · h, W = (Bᵀ·B)⁻¹, B = rows [x_j, y_j, 1].
- Deviations:
f_j = h_j - (a·x_j + b·y_j + c)
- Flatness:
F = max(f) - min(f)
Monte Carlo uncertainty model
For every iteration the tool redraws the input quantities and repeats the full calculation
(clause 6, "ratusan ribu kali"):
| Symbol |
Source |
Type |
Distribution used |
l_cal |
base length of the level |
systematic, correlated |
uniform ± l_cal on l |
g_rep_i |
repeatability |
random, independent |
normal, s = sample standard deviation of the entered readings |
g_rdg_i |
rounding of the reading |
random, independent |
uniform ± g_rdg (half of the resolution) |
g_cal |
correction of the level |
systematic, correlated |
normal, s = g_cal, added to every segment |
g_rsd_i |
residual error of the regression |
random, independent |
uniform ± g_rsd |
Only the sources you fill in are used; if none is given the Monte Carlo step is skipped and
a warning is shown. The reported uncertainty is U = k·u(F) with k = 2, i.e. a confidence
level of not less than 95 %, as in the example calibration report (annex E).
Note: the source table of the guide lists example values but does not state explicitly
whether each value is a standard uncertainty or a half-width; the distribution types above
follow the histograms shown in the guide.
FAQ
- Why is
h₁ = 0? With only height differences the set of heights "floats"; fixing one
height makes the system solvable (annex B). All heights are then relative to h₁.
- Why did the surface look tilted? The measured profile can be slightly tilted with
respect to the datum. The tool removes that tilt mathematically by the least-square datum
plane (annex A.4), which minimises
F.
- Why is the result slightly different every run? Monte Carlo uses random draws; fill in
seed for reproducible results.
- How large should
N be? The guide uses 200 000 as an example. The tool allows up to
200 000; a large N on a large grid takes longer.
- Are the slope/intercept of the reference standard applied? The tool processes the mean
gradients as entered and uses the correction value only as an uncertainty source
(
g_cal); the guide does not give a correction formula.