TgInterpolator API Reference
geoloop.geoloopcore.strat_interpolator.TgInterpolator
class to manage interpolation of temperature over depth.
__init__
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
z_Tg
|
array_like or None
|
Depth values (m) at which temperature samples in |
required |
Tg
|
float or array_like
|
Ground temperature value(s).
- If float: temperature at surface.
- If array_like: temperature profile at depths |
required |
Tgrad
|
float
|
Geothermal gradient (C/m). Used only when |
required |
interp_Tg
Interpolate temperature at depth.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
z
|
array_like
|
Depth(s) in meters. |
required |
Returns:
| Type | Description |
|---|---|
ndarray
|
Interpolated temperature values. |