pwspy.utility.reflection.reflectanceHelper.getReflectance

pwspy.utility.reflection.reflectanceHelper.getReflectance(mat1, mat2, wavelengths=None, NA=0)[source]

Given the names of two interfaces this provides the reflectance in units of percent. If given a series as wavelengths the data will be interpolated and reindexed to match the wavelengths.

Parameters
  • mat1 (Union[Number, Series, Material]) – The first material comprising the reflective interface. This can either be a number or series of numbers representing the refractive index at different wavelengths or it can be a Material in which case the refractive index will be automatically calculated.

  • mat2 (Union[Number, Series, Material]) – The second material comprising the reflective interface. This can either be a number or series of numbers representing the refractive index at different wavelengths or it can be a Material in which case the refractive index will be automatically calculated.

  • wavelengths (Union[ndarray, List, Tuple, None]) – The wavelengths to calculate the reflectance at.

  • NA (float) – The numerical aperture of the system. Reflectance will be calculated by radially integrating results over the range of angles present within the numerical aperture. If left as None the result is calculated for light with a 0 degree angle of incidence.

Return type

Series

Returns

The percentage reflectance. The index of the pandas Series is the wavelengths.