For this example, we add a 0.1 μm thick coating with a refractive index of 1.5 to the top of the surface that was defined via the sample AFM data. The coatuf command used here is:
coatuf -t0.1 -sx2.5 -sy5 afm.dat afm_coat.dat
where -t sets the coating thickness and -sx/-sy sets the X/Y scaling factors needed to properly apply the coating in the normalized coordinates used in the data file. The new coating height profile is saved in the afm_coat.dat file. See Section E.F in the RSoft CAD manual for more detail about the coatuf utility.