sasktran2.mie.refractive.RefractiveIndex#
- class sasktran2.mie.refractive.RefractiveIndex(refractive_index_fn: Callable[[float], complex], identifier: str)[source]#
Bases:
objectA generic implementation of a refractive index function. This class is a light wrapper on top of a callable function that returns the complex refractive index for a given wavelength, as well as providing a unique identifier for the refractive index.
- Parameters:
- __init__(refractive_index_fn: Callable[[float], complex], identifier: str) None[source]#
A generic implementation of a refractive index function. This class is a light wrapper on top of a callable function that returns the complex refractive index for a given wavelength, as well as providing a unique identifier for the refractive index.
Methods
__init__(refractive_index_fn, identifier)A generic implementation of a refractive index function.
refractive_index(wavelength_nm)Returns the complex refractive index for a given wavelength
Attributes
Get the unique identifier for this refractive index
Get the function that returns the complex refractive index
- property identifier#
Get the unique identifier for this refractive index
- refractive_index(wavelength_nm: ndarray) ndarray[source]#
Returns the complex refractive index for a given wavelength
- Parameters:
wavelength_nm (np.ndarray)
- Return type:
np.ndarray
- property refractive_index_fn#
Get the function that returns the complex refractive index