PyREx

pyrex.ice_model.AntarcticIce.depth_with_index

AntarcticIce.depth_with_index(n)

Calculates the corresponding depth for a given index of refraction.

Assumes that the function for the index of refraction is invertible. Index of refraction goes as n(z)=n0-k*exp(az), so the inversion goes as z(n)=log((n0-n)/k)/a. Supports passing an array of indices.

Parameters
narray_like

Indices of refraction.

Returns
array_like

(Negative-valued) depths corresponding to the given n values.

Notes

For indices of refraction outside of the range of indices in the ice, returns the bounds of the ice. For example, if given an index of refraction less than the minimum in the valid range, the upper boundary depth will be returned.

PyREx

A Python package for simulation of neutrinos and radio antennas in ice. Version 1.10.0

Navigation