Description of the desired feature
PRs #17 and #36 added a function to calculate the Moho depth based on an Airy isostasy model. It would be great to have a Pratt isostasy calculation function as well. It would take the topography/bathymetry, respective densities, and a compensation depth and output the lateral density variation. The function should look something like this:
def isostasy_pratt(topography, density_crust=2800, density_water=1000,
compensation_depth=100e3):
...
return density
The body will be very similar to isostasy_airy to allow numpy arrays or xarray.DataArray as input topographies. The docstring would benefit from having a figure to show what the terms in the equations are.
A good example case would be calculate the density variation along the mid-atlantic ridge.