refind.n_metal

refind.n_metal(wl, type='gold')

Returns refractive index of some metals (Au, Ag, Cu, Al, Cr). Uses cubic interpolation of experimental values obtained from Johnson and Christy 1972 (Ag, Au, Cu) and Rakic 1998 (Al, Cr).

Parameters:
  • wl (array) – Wavelength axis in um.
  • type (str) – Type of metal (‘Au’/’gold’, ‘Ag’/’silver’, ‘Cu’/’copper’, ‘Al’/’aluminum’/’aluminium’, ‘Cr’/’chromium’).
Returns:

(Complex) Refractive index for given wavelength axis (same shape as wl).

Note

Interpolation is done via SciPy’s interp1d function, which throws an exception when the new x-coordinate is out of range.