API reference

Core functions

SlimPlotting._plot_with_unitsFunction
_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 plotted
  • spacing::Tuple: grid spacing in physical units
  • perc::Int: (Optional) Clipping percentile, default=95
  • cmap::Symbol: (Optional) Color map, default=:lineargrey1095c0_n256
  • o::Tuple: (Optional) Origin of the image, default=(0, 0)
  • interp::String: (Optional) Interpolation method, default="hanning"
  • aspect::Symbol: (Optional) Aspect ratio, default=:auto
  • d_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=false
  • 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=true
  • save::String: (Optional) Save figure to file, default=nothing doesn't save the figure
  • cbar::Bool: (Optional) Show colorbar, default=false
source

Interface

SlimPlotting.plot_fsliceFunction
plot_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 plotted
  • spacing::Tuple: grid spacing in physical units
  • perc::Int: (Optional) Clipping percentile, default=95
  • cmap::Symbol: (Optional) Color map, default=:divergingbwr2095c54_n256
  • o::Tuple: (Optional) Origin of the image, default=(0, 0)
  • interp::String: (Optional) Interpolation method, default="hanning"
  • aspect::Symbol: (Optional) Aspect ratio, default=:auto
  • d_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=true
  • save::String: (Optional) Save figure to file, default=nothing doesn't save the figure
  • cbar::Bool: (Optional) Show colorbar, default=false
source
SlimPlotting.plot_velocityFunction
plot_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 plotted
  • spacing::Tuple: grid spacing in physical units
  • perc::Int: (Optional) Clipping percentile, default=95
  • cmap::Symbol: (Optional) Color map, default=:cet_rainbow
  • o::Tuple: (Optional) Origin of the image, default=(0, 0)
  • interp::String: (Optional) Interpolation method, default="hanning"
  • aspect::Symbol: (Optional) Aspect ratio, default=:auto
  • d_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=true
  • save::String: (Optional) Save figure to file, default=nothing doesn't save the figure
  • cbar::Bool: (Optional) Show colorbar, default=false
source
SlimPlotting.plot_simageFunction
plot_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 plotted
  • spacing::Tuple: grid spacing in physical units
  • perc::Int: (Optional) Clipping percentile, default=95
  • cmap::Symbol: (Optional) Color map, default=:lineargrey1095c0_n256
  • o::Tuple: (Optional) Origin of the image, default=(0, 0)
  • interp::String: (Optional) Interpolation method, default="hanning"
  • aspect::Symbol: (Optional) Aspect ratio, default=:auto
  • d_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=true
  • save::String: (Optional) Save figure to file, default=nothing doesn't save the figure
  • cbar::Bool: (Optional) Show colorbar, default=false
source
SlimPlotting.plot_sdataFunction
plot_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 plotted
  • spacing::Tuple: grid spacing in physical units
  • perc::Int: (Optional) Clipping percentile, default=95
  • cmap::Symbol: (Optional) Color map, default=:lineargrey1095c0_n256
  • o::Tuple: (Optional) Origin of the image, default=(0, 0)
  • interp::String: (Optional) Interpolation method, default="hanning"
  • aspect::Symbol: (Optional) Aspect ratio, default=:auto
  • d_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=true
  • save::String: (Optional) Save figure to file, default=nothing doesn't save the figure
  • cbar::Bool: (Optional) Show colorbar, default=false
source
SlimPlotting.wiggle_plotFunction
wiggle_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 plotted
  • xrec::Array{T, 1}: Receiver coordinates
  • time_axis::Array{T, 1}: Time axis
  • t_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
source

Utilities

seiscm