pybacktrack.convert_age_to_depth

pybacktrack.convert_age_to_depth(age, model=pybacktrack.AGE_TO_DEPTH_DEFAULT_MODEL)

Convert ocean basin age to basement depth using a specified age/depth model.

Parameters:
  • age (float) – The age in Ma.

  • model ({pybacktrack.AGE_TO_DEPTH_MODEL_RHCW18, pybacktrack.AGE_TO_DEPTH_MODEL_CROSBY_2007, pybacktrack.AGE_TO_DEPTH_MODEL_GDH1} or function, optional) – The model to use when converting ocean age to basement depth. It can be one of the enumerated values, or a callable function accepting a single non-negative age parameter and returning depth (in metres).

Returns:

Depth (in metres) as a positive number.

Return type:

float

Raises:
  • ValueError – If age is negative.

  • TypeError – If model is not a recognised model, or a function accepting a single parameter.