17.01.2014 Views

Thesis-PDF - IAP/TU Wien

Thesis-PDF - IAP/TU Wien

Thesis-PDF - IAP/TU Wien

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Annex 1<br />

This Igor script was used in order to remove image artifacts from acquired image<br />

data as described in 5.2.3 under AFM Software and Fig. 5.5 (page 70 and 72<br />

respectively).<br />

#pragma rtGlobals = 1 // Use modern global access method.<br />

menu "AFM_<strong>TU</strong>VIENNA" // add new entry into menu.<br />

"TraceRetrace Calculations... " , NewLayer()<br />

end<br />

function LateralTR (w) // function to add a new layer to an existing afm data wave<br />

Wave w<br />

Variable laynr<br />

end<br />

laynr = DimSize(w, 2) //number of layers<br />

Redimension/N=(-1,-1,laynr+1) w // create a new layer<br />

w[][][laynr] = w[p][q][laynr -2] - w[p][q][laynr -1]<br />

// calculate the lateral T - R signal<br />

// change LayerLabel so that the MFP-3D extension displays the new layer<br />

SetDimLabel 2, laynr, UserIn0Trace, w<br />

function min_htthtr (w) // function joining height trace and retrace<br />

Wave w<br />

Variable laynr<br />

end<br />

laynr = DimSize(w, 2) // get the number of layers<br />

Redimension/N=(-1,-1,laynr+1) w // create a new layer<br />

w[][][laynr]=min(w[p][q][0],w[p][q][1])<br />

// change LayerLabel so that the MFP-3D extension displays the new layer<br />

SetDimLabel 2, laynr, UserIn1Trace, w<br />

105

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!