pybacktrack.convert_stratigraphic_depth_to_age
- pybacktrack.convert_stratigraphic_depth_to_age(age, depth_to_age_model)
Convert stratigraphic depth to age using a specified depth-to-age model.
- Parameters:
depth (float) – The stratigraphic depth in metres.
depth_to_age_model (function) – The model to use when converting stratigraphic depth to age. A callable function accepting a single non-negative depth parameter (in metres) and returning age (in Ma).
- Returns:
Age (in Ma) as a positive number.
- Return type:
float
- Raises:
ValueError – If depth is negative.
TypeError – If depth_to_age_model is not a function accepting a single parameter.
Notes
Added in version 1.5.