Miscellaneous¶
depthplot¶
- disba.depthplot(thickness, parameter, zmax=None, plot_args=None, ax=None)[source]¶
Plot parameter against depth.
- Parameters
thickness (array_like) – Layer’s thickness.
parameter (array_like) – Parameter to plot against depth.
zmax (scalar or None, optional, default None) – Depth of last data point.
plot_args (dict or None, optional, default None) – Plot arguments passed to
matplotlib.pyplot.plot()
.ax (matplotlib.pyplot.Axes or None, optional, default None) – Matplotlib axes. If None, use current active plot.
resample¶
- disba.resample(thickness, parameters, dz)[source]¶
Resample parameters.
- Parameters
thickness (array_like) – Layer thickness (in km).
parameters (array_like) – Parameters to resample.
dz (scalar) – Maximum layer thickness (in km).
- Returns
array_like – Resampled thickness.
array_like – Resampled parameters.