Visualization
Model
You can plot models using the dispatches
SubsurfaceCore.plot_model Function
plot_model(model::m_type; half_space_thickness=1.25 * sum(model.h),
kwargs...)returns a figure and an axis with the plot of geophysical model parameterized by model
Arguments
ax:axison which models are plottedmodel: geophysical model to be plotted
Keyword Arguments
half_space_thickness: thickness of last layer (extent to which the last layer aka the half space should go), defaults to 1.25 × total model thicknesskwargs: keyword arguments to be splatted into theMakieplotting routine
Usage
Checkout relevant documentation
sourceSubsurfaceCore.plot_model! Function
plot_model!(ax, model::m_type; half_space_thickness=1.25 * sum(model.h),
kwargs...)plots on ax the geophysical model parameterized by model
Arguments
ax:axison which models are plottedmodel: geophysical model to be plotted
Keyword Arguments
half_space_thickness: thickness of last layer (extent to which the last layer aka the half space should go), defaults to 1.25 × total model thicknesskwargs: keyword arguments to be splatted into theMakieplotting routine
Usage
Checkout relevant documentation
sourceNote
Do note that the above functions only plot the parameter denoted by m, even though there might be other parameters, e.g. for Rayleigh wave models, we invert of shear wave velocity even though the model also requires p-wave velocities and densities.
Response
Similarly, to plot response for different geophysical surveys, we have
SubsurfaceCore.plot_response Function
plot_response(vars, resp::response; errs=zero(resp), plt_type=:plot,
kwargs...)returns a figure and axis with plots of corresponding parameters of response resp parameterized on vars
Arguments
vars: parameter for forward sol, eg. ω for MT, ab/2 for DC resistivityresp: response to be plotted
Keyword Arguments
errs: errors in response, should be of the same type asresp, defaults tozero(resp)plt_type: type of plot, available options are ::scatter: data points are plotted as points:plot: data points are connected in a curve:errors: plot errors along with the data points Defaults to:plot
kwargs: keyword arguments to be splatted into theMakieplotting routine
Usage
Checkout relevant documentation
sourceSubsurfaceCore.plot_response! Function
plot_response!(axs, vars, resp::response; errs=zero(resp), plt_type=:plot,
kwargs...)plots on axs, a vector of axis corresponding parameters of response resp parameterized on vars
Arguments
axs: vector ofaxisto plot onvars: parameter for forward sol, eg. ω for MT, ab/2 for DC resistivityresp: response to be plotted
Keyword Arguments
errs: errors in response, should be of the same type asresp, defaults tozero(resp)plt_type: type of plot, available options are ::scatter: data points are plotted as points:plot: data points are connected in a curve:errors: plot errors along with the data points Defaults to:plot
kwargs: keyword arguments to be splatted into theMakieplotting routine
Usage
Checkout relevant documentation
source