xopto.materials.ri.seawater module

class Nootz(t: float = 293.15)[source]

Bases: xopto.materials.ri.base.RefractiveIndex

Refractive index of seawater as given in:

Gero Nootz V1.0 07/08/2015 “Xiaohong Quan and Edward S. Fry, Empirical equation for the index of refraction of seawater”, Applied Optics, Vol. 34, No. 18 (1995)” http://www.mathworks.com/matlabcentral/fileexchange/52030-refractive-index-of-seawater

Parameters

t (float) – Temperature of the medium.

check_salinity(salinity: float)[source]

Check if the salinity is within valid range and display a warning if not.

Parameters

salinity (float) – Salinity in (kg/kg).

is_valid_salinity(salinity: float)bool[source]

Check if the salinity is within the valid range.

Parameters

salinity (float or np.ndarray) – Water salinity (kg/kg).

Returns

valid – True if the salinity is within the valid range.

Return type

bool

material = 'seawater'