API reference
Core functions
SlimPlotting._plot_with_units
— Function_plot_with_units(image, spacing; perc=95, cmap=:cet_CET_L1,
o=(0, 0), interp="hanning", aspect=nothing, d_scale=0,
positive=false, labels=(:X, :Depth), cbar=false,
units=(:m, :m), name="RTM", new_fig=true, save=nothing)
Plot a 2D grided image with physical units defined by the grid spacing spacing
.
Arguments
image::Array{T, 2}
: image to be plottedspacing::Tuple
: grid spacing in physical unitsperc::Int
: (Optional) Clipping percentile, default=95cmap::Symbol
: (Optional) Color map, default=:lineargrey1095c0_n256o::Tuple
: (Optional) Origin of the image, default=(0, 0)interp::String
: (Optional) Interpolation method, default="hanning"aspect::Symbol
: (Optional) Aspect ratio, default=:autod_scale::Float
: (Optional) Depth scaling, default=1.5. Applied scaling is(1:max_depth).^d_scale
.positive::Bool
: (Optional) Plot positive only image (clip[0:max(image)]
), default=falselabels::Tuple
: (Optional) Labels for the axes, default=(:X, :Depth)name::String
: (Optional) Figure title, default="RTM"units::Tuple(String)
: (Optional) Physical units of each axis, default=(:m, :m).new_fig::Bool
: (Optional) Create a new figure, default=truesave::String
: (Optional) Save figure to file, default=nothing doesn't save the figurecbar::Bool
: (Optional) Show colorbar, default=false
Interface
SlimPlotting.plot_fslice
— Functionplot_fslice(image, spacing; perc=98, cmap=:diverging_bwr_20_95_c54_n256,
o=(0, 0), interp="hanning", aspect=nothing, d_scale=1.5,
name="Frequency slice", units="m", new_fig=true, save=nothing)
Plot a 2D frequency slice of seismic data. Calls _plot_with_units
.
Arguments
image::Array{T, 2}
: image to be plottedspacing::Tuple
: grid spacing in physical unitsperc::Int
: (Optional) Clipping percentile, default=95cmap::Symbol
: (Optional) Color map, default=:divergingbwr2095c54_n256o::Tuple
: (Optional) Origin of the image, default=(0, 0)interp::String
: (Optional) Interpolation method, default="hanning"aspect::Symbol
: (Optional) Aspect ratio, default=:autod_scale::Float
: (Optional) Depth scaling, default=1.5. Applied scaling is(1:max_depth).^d_scale
.labels::Tuple
: (Optional) Labels for the axes, default=(:X, :Depth)name::String
: (Optional) Figure title, default="RTM"units::Tuple(String)
: (Optional) Physical units of each axis, default=(:m, :m).new_fig::Bool
: (Optional) Create a new figure, default=truesave::String
: (Optional) Save figure to file, default=nothing doesn't save the figurecbar::Bool
: (Optional) Show colorbar, default=false
SlimPlotting.plot_velocity
— Functionplot_velocity(image, spacing; perc=98, cmap=:cet_rainbow,
o=(0, 0), interp="hanning", aspect=nothing, d_scale=1.5,
name="Velocity", units="m", new_fig=true, save=nothing)
Plot a velocity model. Calls _plot_with_units
.
Arguments
image::Array{T, 2}
: image to be plottedspacing::Tuple
: grid spacing in physical unitsperc::Int
: (Optional) Clipping percentile, default=95cmap::Symbol
: (Optional) Color map, default=:cet_rainbowo::Tuple
: (Optional) Origin of the image, default=(0, 0)interp::String
: (Optional) Interpolation method, default="hanning"aspect::Symbol
: (Optional) Aspect ratio, default=:autod_scale::Float
: (Optional) Depth scaling, default=1.5. Applied scaling is(1:max_depth).^d_scale
.labels::Tuple
: (Optional) Labels for the axes, default=(:X, :Depth)name::String
: (Optional) Figure title, default="RTM"units::Tuple(String)
: (Optional) Physical units of each axis, default=(:m, :m).new_fig::Bool
: (Optional) Create a new figure, default=truesave::String
: (Optional) Save figure to file, default=nothing doesn't save the figurecbar::Bool
: (Optional) Show colorbar, default=false
SlimPlotting.plot_simage
— Functionplot_simage(image, spacing; perc=98, cmap=:linear_grey_10_95_c0_n256,
o=(0, 0), interp="hanning", aspect=nothing, d_scale=1.5,
labels=(:X, :Depth), name="RTM", units=(:m, :m), new_fig=true,
save=nothing, cbar=false)
Plot a 2D seismic image with a grid spacing spacing
. Calls _plot_with_units
.
Arguments
image::Array{T, 2}
: image to be plottedspacing::Tuple
: grid spacing in physical unitsperc::Int
: (Optional) Clipping percentile, default=95cmap::Symbol
: (Optional) Color map, default=:lineargrey1095c0_n256o::Tuple
: (Optional) Origin of the image, default=(0, 0)interp::String
: (Optional) Interpolation method, default="hanning"aspect::Symbol
: (Optional) Aspect ratio, default=:autod_scale::Float
: (Optional) Depth scaling, default=1.5. Applied scaling is(1:max_depth).^d_scale
.labels::Tuple
: (Optional) Labels for the axes, default=(:X, :Depth)name::String
: (Optional) Figure title, default="RTM"units::Tuple(String)
: (Optional) Physical units of each axis, default=(:m, :m).new_fig::Bool
: (Optional) Create a new figure, default=truesave::String
: (Optional) Save figure to file, default=nothing doesn't save the figurecbar::Bool
: (Optional) Show colorbar, default=false
SlimPlotting.plot_sdata
— Functionplot_sdata(image, spacing; perc=98, cmap=:linear_grey_10_95_c0_n256,
o=(0, 0), interp="hanning", aspect=nothing, d_scale=1.5,
name="Shot", units="m", new_fig=true, save=nothing)
Plot seismic data gather (i.e shot record). Calls _plot_with_units
.
Arguments
image::Array{T, 2}
: image to be plottedspacing::Tuple
: grid spacing in physical unitsperc::Int
: (Optional) Clipping percentile, default=95cmap::Symbol
: (Optional) Color map, default=:lineargrey1095c0_n256o::Tuple
: (Optional) Origin of the image, default=(0, 0)interp::String
: (Optional) Interpolation method, default="hanning"aspect::Symbol
: (Optional) Aspect ratio, default=:autod_scale::Float
: (Optional) Depth scaling, default=1.5. Applied scaling is(1:max_depth).^d_scale
.labels::Tuple
: (Optional) Labels for the axes, default=(:X, :Depth)name::String
: (Optional) Figure title, default="RTM"units::Tuple(String)
: (Optional) Physical units of each axis, default=(:m, :m).new_fig::Bool
: (Optional) Create a new figure, default=truesave::String
: (Optional) Save figure to file, default=nothing doesn't save the figurecbar::Bool
: (Optional) Show colorbar, default=false
SlimPlotting.wiggle_plot
— Functionwiggle_plot(image, xrec, time_axis; t_scale=1.5,
new_fig=true)
wiggle_plot of a seismic traces.
Arguments
image::Array{T, 2}
: Shot record to be plottedxrec::Array{T, 1}
: Receiver coordinatestime_axis::Array{T, 1}
: Time axist_scale::Float
: (Optional) Time scaling, default=1.5. Applied scaling is(1:max_time).^t_scale
.new_fig::Bool
: (Optional) Create a new figure, default=true
Utilities
seiscm