PREM.
density
Calculates the Earth’s density at a given radius.
Supports passing an array of radii or a single radius.
Radius (m) at which to calculate density.
Density (g/cm^3) of the Earth at the given radii.
A Python package for simulation of neutrinos and radio antennas in ice. Version 1.10.0