Basic methods for creating models.
Convolves wavelets against a reflectivity dataset.
Parameters: |
|
---|---|
Param: | data: An array of reflectivity data to convolve against. Must be indexed as [samples, traces ]. |
Returns: | an array of synthetic seismic traces, indexed as [samples, traces, wavelet]. |
Finds interfaces in the earth model
Parameters: | data – A numpy array of RGB values, indexed as (sample, trace, (R,G,B) ) |
---|---|
Returns: | a list of indices where a boundary occurs. |
Create reflectivities from an image of an earth model and a mapping of colours to rock properties. Will find each interface and use the specified reflectivity method to calculate the Vp reflection coefficient.
Parameters: |
|
---|---|
Returns: | The vp reflectivity coefficients corresponding to the earth model. Data will be indexed as [sample, trace, theta] |
A wrapper function for calling any of the reflection methods using rock property structures.
Parameters: |
|
---|---|
Returns: | the p-wave reflection coefficients for each value of theta. |
Makes a 3 layer earth model with the slabs defined by the user parameters.
Parameters: |
|
---|---|
Returns: | A numpy array of RGB values for the earth model. |
Makes a body. Used for tilted slabs and wedges. Give it pad, left and right thickness, traces, and an iterable of layers. Returns an SVG file name.
Parameters: |
|
---|---|
Returns: | a tempfile object holding the output svg filename. |
Makes a rounded channel. Give it pad, thickness, traces, and an iterable of layers. Returns an SVG file.
Parameters: |
|
---|---|
Param: | thickness: The radius of the channel (npoints). |
Returns: | a numpy array of the RGB values for the data model. |
Makes a rounded channel. Give it pad, thickness, traces, and an iterable of layers. Returns an SVG file.
Parameters: |
|
---|---|
Param: | thickness: The radius of the channel (npoints). |
Returns: | a tempfile object pointed to the model svg file. |
Turns a PNG into a numpy array.
Parameters: | infile – Path to PNG file |
---|---|
Returns: | a NumPy array. |
Wrapper for svg2png and png2array.
Parameters: |
|
---|---|
Returns: | a numpy array of the RGB levels from the svg. |
Convert an SVG file to PNG file. Uses calls to Imagemagick for the conversion.
Parameters: |
|
---|---|
Returns: | a tempfile.NamedTemporaryFile containing the png of the of the model. |
Given a URL string, make an SVG or PNG on the web into a NumPy array.
Parameters: |
|
---|
Returns an array of RGB values.