PyREx

pyrex.earth_model.PREM.density

PREM.density(r)

Calculates the Earth’s density at a given radius.

Supports passing an array of radii or a single radius.

Parameters
rarray_like

Radius (m) at which to calculate density.

Returns
array_like

Density (g/cm^3) of the Earth at the given radii.

PyREx

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

Navigation