Converter tool

Surface Roughness Analyzer

Load a profilometer trace, remove form, apply the Gaussian lambda_s and lambda_c filters, and read Ra, Rq, Rz, Rt, Rsk, Rku, RSm, Rdq, Rmr and the Rk family.

Input

Profile

Surface Roughness Analyzer for Profile Data

Operator: Abdulla Al Fahad. How tools are built and checked

Roughness is not a property of a surface alone: the same trace gives different Ra values at different cutoffs, because the cutoff decides where waviness ends and roughness begins. That is why a roughness number is only meaningful with its cutoff, its sampling length and its form removal beside it, and why this page shows all three before the parameters.

A stylus profilometer exports heights along a line. Loading that text file here removes the form (a line, a circle or a polynomial), applies the Gaussian profile filter at the long cutoff λc and, if you set one, at the short cutoff λs, and splits the trace into primary, waviness and roughness profiles.

From the roughness profile the page computes Ra, Rq, Rz, Rt, Rp, Rv, Rsk, Rku, RSm, Rdq, the material ratio Rmr at a depth you choose, the Abbott-Firestone curve and the Rk family, each also listed per sampling length.

Key features

  • Form removal by mean, least-squares line, least-squares circle or a polynomial of order 2 to 5, with unevenly spaced traces resampled to their median spacing
  • Gaussian filter with the standard weighting function, truncated at one cutoff and renormalised at the ends, for λc from the standard series or any value, and an optional λs
  • Ra, Rq, Rsk, Rku over the evaluation length; Rp, Rv and Rz averaged over the sampling lengths, with the largest single Rz and Rt over the whole length
  • Spacing and slope: RSm with the default 10% and 1% discrimination, and Rdq from the seven-point derivative
  • Abbott-Firestone curve, Rmr(c) at a chosen level and the Rk, Rpk and Rvk family with Mr1 and Mr2

Profile files, form removal and the filter

The file is a CSV or text table with a column of positions along the trace and a column of heights. Choose the units of each: positions in millimetres, micrometres or metres, heights in micrometres, millimetres, nanometres or metres. Everything is converted to millimetres and micrometres inside. Up to 600,000 points are read, and a header row is optional.

Evenly spaced data is used as it is. If any step differs from the median by more than 0.1% the trace is resampled to the median spacing by linear interpolation, and the resampling is reported. Positions must strictly increase.

Areal surface texture (ISO 25178) is not covered; this is a profile tool. The amplitude parameters use the ISO 4287 definitions, which ISO 21920-2 keeps under the same names.

How it works

The Gaussian weighting function is s(x) = exp(−π(x/(αλc))²) / (αλc) with α = sqrt(ln 2 / π), about 0.4697, which gives a transmission of exactly 50% for a sine of wavelength λc. The weights are cut off at ±λc and renormalised at every point, so near the ends the mean line is made from the data that exists. It is evaluated by FFT convolution, so long traces do not need a slow direct sum.

The primary profile is the trace minus the form, then low-passed at λs if you set it. The waviness is the primary profile filtered at λc. The roughness profile is the primary minus the waviness. The first and last half cutoff are dropped before evaluating by default, because the filter output there is built from half a window.

The evaluation length is the number of sampling lengths you ask for (5 by default), each one λc long, laid end to end from the first usable point. Rz is the mean over sampling lengths of the highest peak plus the deepest valley, and the page also gives the largest of them. RSm counts a peak and valley as a profile element only if each is at least 10% of Rz high and 1% of λc wide.

The Rk family follows the ISO 13565-2 construction: on the material ratio curve the 40% secant with the smallest drop is found, its least-squares line is extended to 0% and 100% to give Rk and the points Mr1 and Mr2, and Rpk and Rvk are twice the areas above and below the core divided by Mr1 and by 100 − Mr2.

When this helps

  • A quality engineer checking a turned shaft against a drawing of Ra 1.6 loads a 6 mm trace and reads 1.024 µm at λc 0.8 mm, with a note that the table of cutoffs for that Ra agrees.
  • A technician finds that the same trace gives Ra 1.282 µm and Rz 6.79 µm from a single sampling length at λc 2.5 mm, because waviness of 2.4 mm wavelength is no longer filtered out, and changes the cutoff back.
  • A process engineer sees an RSm of 0.0999 mm on a turned part and recognises the 0.1 mm feed per revolution as the spacing of the marks.

Opening a file

  1. Drop the profile file or paste two columns, and choose the position and height columns and their units.
  2. Pick a form removal that matches the part: a line for a flat surface, a circle for a shaft, a polynomial for a gentle curve.
  3. Choose λc from the table or enter your own, and set λs; the standard pairs are filled in when you pick λc.
  4. Read the cutoff advice under the filter settings and the warnings about evaluation length.
  5. Read the parameter cards and the table per sampling length, then the three profile plots.
  6. Download the parameters CSV, which records the cutoff, the form and the evaluation length with the values.

Example

The page's example: a simulated 6 mm turned trace at 1 µm spacing, with a 0.1 mm feed mark of 1.6 µm amplitude, 0.25 µm of random texture, a 3 µm waviness of 2.4 mm wavelength and a tilt of 0.4 µm per mm

Form: least-squares line. λc 0.8 mm, λs 2.5 µm, 5 sampling lengths, end effect dropped.

Parameters over a 4.0 mm evaluation length

Ra 1.024 µm, Rq 1.146 µm, Rz 3.79 µm, Rt 4.15 µm, Rp 1.88 µm, Rv 1.91 µm
Rsk -0.007, Rku 1.59, RSm 0.0999 mm, Rdq 128.1 µm/mm, Rmr at half of Rt 49.9%
λc 0.25 mm gives Ra 1.0015 µm; λc 2.5 mm without form removal, where only one sampling length fits, gives Ra 1.282 µm and Rz 6.79 µm

Tips for best results

  • Pick the cutoff before you look at the numbers. The page lists the standard series and shows which one the Ra suggests, but changing it after seeing a bad value is not what a cutoff is for.
  • If Rsk is far from zero, look at the Abbott-Firestone curve: a plateau-honed surface has a long flat core and steep ends, and the Rk, Rpk and Rvk numbers describe it.
  • Use the per-sampling-length table to see how much Ra varies along the trace. A spread much larger than a few percent means the evaluation length is too short for the surface.
  • Remove a circle, not a line, from a trace across a cylinder, and a polynomial for a crowned surface; a straight line leaves a bowl in the primary profile that λc then treats as roughness.

Limits

The Rk values here are computed from the filtered roughness profile without the valley-suppressing pre-filter that ISO 13565-1 specifies, so they are estimates for plateau surfaces, not certified values.

Rz is defined here as the mean of the sampling-length values. Standards and drawings sometimes require the maximum or a 16% rule, and the page gives the largest value too, but it does not apply a rule for you.

A trace shorter than the evaluation length plus one cutoff has fewer than five sampling lengths, so Rz, Rp and Rv are less representative. The page warns when that happens.

Common errors and how to fix them

The profile is too short: after dropping half a cutoff at each end it holds 0.600 mm and one sampling length is 0.8 mm.
Use a smaller cutoff or a longer trace, or switch the end effect to keep the full profile and accept the edge error.
The cutoff covers fewer than 8 sample points.
The spacing is too coarse for that cutoff; measure at a finer spacing or use a longer λc.
The point spacing is 5.00 µm, too coarse for a short cutoff of 2.5 µm.
A short cutoff needs at least two points per λs; clear λs or raise it.
Positions must increase on every row (row 3012).
Remove duplicate or backward positions, which some instruments write at the end of a trace.
The fitted circle does not cover the whole profile; use a polynomial form for this shape.
The trace is too curved or too short for a circle fit; try a polynomial of order 2 or 3.

Best practices

  • Always quote the cutoff, λs and form removal with the roughness value.
  • Evaluate five sampling lengths unless the drawing says otherwise.

Choosing the cutoff

For a surface with no regular pattern the ISO 4288 table links a first estimate of Ra to λc: 0.08 mm up to Ra 0.02 µm, 0.25 mm up to 0.1 µm, 0.8 mm up to 2 µm, 2.5 mm up to 10 µm and 8 mm above that, with λs of 2.5, 2.5, 2.5, 8 and 25 µm. The page applies that table to the Ra it measures and shows the result under the filter settings. A surface with a regular pattern, such as feed marks, is chosen by its spacing instead, and the table for that is in the standard.

What the filter transmits

A Gaussian filter with cutoff λc passes the waviness of wavelength λ with amplitude exp(−π(αλc/λ)²). At λc itself that is 50%, at half λc it is 6.25%, at twice λc 84.1% and at four times 95.8%. The roughness profile keeps the rest, which is why a 2.4 mm wave leaks into the roughness at λc = 2.5 mm but not at 0.8 mm.

Reading the profile plots

The first plot draws the primary profile and the waviness line over the whole trace, so you can see what the filter took out. The second shows the roughness profile over the evaluation length only. The third is the Abbott-Firestone curve with the Rk core lines marked when the construction succeeded.

Frequently asked questions

Do the parameters reproduce known values?

A pure sine profile has closed-form values, and the page reproduces them: for 1 µm amplitude and 0.1 mm wavelength, Ra is 0.63656 against 2A/π = 0.63662, Rq 0.70710 against A/√2, Rz 2.0000, Rku 1.5000, RSm 0.09999 mm and Rdq 44.4289 against 2πA/(λ√2) = 44.4288. Gaussian transmission at wavelengths of 0.5, 1, 2 and 4 times λc matches the formula to five decimals, and removing a line, a circle of 200 mm radius or a quadratic from a sine plus form leaves Ra at 0.63656. A hand-built material ratio curve gives Rk 2.5, Mr1 8.75, Mr2 90.83, Rpk 1.75 and Rvk 2.75 as worked by hand. The page was not compared with NIST reference files or certified softgauges.

Why is my Ra different from the instrument's?

Instruments differ in their cutoff, λs, filter end handling, evaluation length and in whether they remove a line or a circle. Match those settings before comparing, and expect small differences from the way the Gaussian window is truncated at the ends.

Can it read a file from my profilometer directly?

It reads text exports with two numeric columns. Binary files and exports with extra header lines between data rows are not read; remove the header lines or paste the two columns.

Why does RSm show a dash?

RSm needs at least one complete peak and valley taller than 10% of Rz inside the evaluation length. A very flat or very noisy profile may have none that qualify.