Data File Format.

Reference algorithm read SMD format.

Reference datasets were provided in the forms of SDF, PRF, SMD, TXT format.

SDF Format (Surface Data File)

The representation in ASCII is proposed. The file name extension is SDF which stands for SURFACE DATA FILE. The format is divided into three sections.

  • Header
  • Data area
  • Trailer

Table 1: Header description of SDF file format for showing field types and lengths

ASCII Record Name Information Binary Data Type

Binary Length
(Bytes)


Version Number (a: ASCII, b: binary) Unsigned Char
8
ManufacID Manufacturer's ID Unsigned Char
10
Create Date Creation Date and Time Unsigned Char
12
ModDate Last Modification Date and Time Unsigned Char
12
NumPoints Number of points in a profile Unsigned Int
2
NumProfiles Number of profiles in a data file Unsigned Int
2
Xscale X-scale. A x-scale value of 1.00 E-6 represents a sample spacing of 1 micrometer Double
8
Yscale Y-scale. A y-scale value of 1.00 E-6 represents a sample spacing of 1 micrometer Double
8
Zscale Z-scale. A z-scale value of 1.00 E-6 represents a height of 1 micrometer Double
8
Zresolution Z-resolution Double
8
Compression Compression Type Unsigned Char
1
Data types Data Type (0: unsigned char, 1: unsigned integer, 2: unsigned long, 3: float, 4: signed char, 5: signed integer, 6 signed long, 7: double) Unsigned Char
1
CheckType Check Sum Type Unsigned Char
1

Z-data values are delimited by asterisks (*). Each height equals the z-values multiplied by the Z-scale value above.

Example
aNPL-V1.0
ManuFacID = Softgauges
CreateDate = 210520051200
ModDate = 210520051200
NumPoints = 22401
NumProfiles = 1
Xscale = 2.5E-07
Yscale = 0
Zscale = 1E-06
Zresolution = -1
Compression = 0
DataType = 7
CheckType = 0
*
-0.296539
-0.270753
-0.244967
-0.219181
-0.180502
-0.180502
-0.12893
...
-0.077358
-0.051572
-0.038679
*
*

PRF Format:

Example

1 2
SG2004 0.000000e+000 PRF
CX M 2.240100e+004 MM 1.000000e+000 D
CZ M 2.240100e+004 UM 1.000000e-006 L
EOR
STYLUS_RADIUS 0.000000e+000 MM
SPACING CX 2.500000e-004
MAP 1.000000e+000 CZ CZ 1.000000e+000 1.000000e+000
MAP 2.000000e+000 CZ CX 1.000000e+000 0.000000e+000
COMMENT SOFTGAUGES
EOR
-1031440
-915403
-799366
......
1431123
1379551
1315086
1250621
EOR
EOF

SMD Format:

The file protocol for the softgauge is divided into four separate sections or records.

  • Header
  • Other Information
  • Data
  • Checksum

Example

ISO 5436 - 2000 EDM04meas
PRF 1 ISO5436
CX I 22401 mm 1.0e0 D 2.5e-4
CZ A 22401 um 1.0e0 D

DATE 25-Nov-2004
TIME 10:50
CREATED_BY University of Huddersfield
PARAMETER_VALUE Pa 0 mm 0
PARAMETER_VALUE Ra 0 mm 0
PARAMETER_VALUE Wa 0 mm 0
PARAMETER_VALUE Pq 0 mm 0
PARAMETER_VALUE Rq 0 mm 0
PARAMETER_VALUE Wq 0 mm 0
PARAMETER_VALUE Pku 0 mm 0
PARAMETER_VALUE Rku 0 mm 0
PARAMETER_VALUE Wku 0 mm 0
PARAMETER_VALUE Psk 0 mm 0
PARAMETER_VALUE Rsk 0 mm 0
PARAMETER_VALUE Wsk 0 mm 0
PARAMETER_VALUE Pp 0 mm 0
PARAMETER_VALUE Rp 0 mm 0
PARAMETER_VALUE Wp 0 mm 0
PARAMETER_VALUE Pv 0 mm 0
PARAMETER_VALUE Rv 0 mm 0
PARAMETER_VALUE Wv 0 mm 0
PARAMETER_VALUE Pz 0 mm 0
PARAMETER_VALUE Rz 0 mm 0
PARAMETER_VALUE Wz 0 mm 0
PARAMETER_VALUE Pt 0 mm 0
PARAMETER_VALUE Rt 0 mm 0
PARAMETER_VALUE Wt 0 mm 0
PARAMETER_VALUE Pc 0 mm 0
PARAMETER_VALUE Rc 0 mm 0
PARAMETER_VALUE Wc 0 mm 0
PARAMETER_VALUE PSm 0 mm 0
PARAMETER_VALUE RSm 0 mm 0
PARAMETER_VALUE WSm 0 mm 0
PROFILE_FILTER Gaussian LS 0.0e0 LC 8.0e-1

-0.296539
-0.270753
-0.244967
-0.219181
......
-0.103144
-0.077358
-0.051572
-0.038679

30040



TXT Format:
The first data point: Data spacing in the x direction (Unit: micrometres)
The remaining data points: Height values in the z direction.  (Unit: micrometres)

Example

0.25
-0.296539
-0.270753
-0.244967
......
-0.077358
-0.051572
-0.038679

Reference:

K. J. Stout, P. J. Sullivan, W. P. Dong, E. Mainsah, N. Lou, T. Mathia and H. Zahouani, The Development of Methods for The Characterisation of Roughness in Three Dimensions, Report EUR 15178 EN. EC Brussels, 1993

ISO 5436-2 Geometrical Product Specifications (GPS) - Surface texture: Profile method; Measurement standards - Part 2: Software measurement standards. International Organization for Standardization, 2001.