PyREx

pyrex.earth_model.CoreMantleCrustModel.slant_depth

CoreMantleCrustModel.slant_depth(endpoint, direction, step=500)

Calculates the column density of a chord cutting through Earth.

Integrates the Earth’s density along the chord, resulting in a column density (or material thickness) with units of mass per area.

Parameters
endpointarray_like

Vector position (m) of the chord endpoint, in a coordinate system centered on the surface of the Earth (e.g. a negative third coordinate represents the depth below the surface).

directionarray_like

Vector direction of the chord, in a coordinate system centered on the surface of the Earth (e.g. a negative third coordinate represents the chord pointing into the Earth).

stepfloat, optional

Step size (m) for the density integration.

Returns
float

Column density (g/cm^2) along the chord starting at endpoint and passing through the Earth at the given direction.

See also

PREM.density

Calculates the Earth’s density at a given radius.

PyREx

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

Navigation