The fatiando package has been deprecated. Please check out the new tools in the Fatiando a Terra website: www.fatiando.org

# Plotting seismic data with wiggles¶

One way to plot seismic data is using black and white wiggles. Function fatiando.vis.mpl.seismic_wiggle does exactly this. import numpy as np
import matplotlib.pyplot as plt
from fatiando.seismic import conv
from fatiando.vis.mpl import seismic_wiggle

# We need some data to plot, so let's generate some using the convolution model
# in fatiando.seismic.conv
n_samples, n_traces = 400, 20
dt = 2e-3    # the sampling interval
velocity = 1500*np.ones((n_samples, n_traces))
# Our model will have a different velocity layer in the middle. This will cause
# a reflection on the top and one on the bottom (with reversed polarity).
velocity[150:300, :] = 2500
# For simplicity, we'll assume constant density when calculating the
# reflectivity.
rc = conv.reflectivity(velocity, 2000*np.ones_like(velocity))
data = conv.convolutional_model(rc, f=30, wavelet=conv.rickerwave, dt=dt)

# Plot the data using wiggles
plt.figure(figsize=(6, 5))
plt.title("Seismic wiggles")
# The scale parameter makes the wiggles larger or smaller
seismic_wiggle(data, dt=dt, scale=3, color='k')
plt.ylabel('time (s)')
plt.xlabel('trace')
plt.show()


Total running time of the script: ( 0 minutes 0.085 seconds)

Generated by Sphinx-Gallery
{"ft_lang_label":"__label__en","ft_lang_prob":0.5155987,"math_prob":0.9662082,"size":1179,"snap":"2021-43-2021-49","text_gpt3_token_len":327,"char_repetition_ratio":0.11744681,"word_repetition_ratio":0.0,"special_character_ratio":0.2654792,"punctuation_ratio":0.18421052,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9952281,"pos_list":[0,1,2],"im_url_duplicate_count":[null,2,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2021-12-08T04:40:47Z\",\"WARC-Record-ID\":\"<urn:uuid:4ee54fca-1535-456f-b303-714f1bbfbd63>\",\"Content-Length\":\"13120\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:561c5ab9-8d93-42cf-9a77-84c36a356752>\",\"WARC-Concurrent-To\":\"<urn:uuid:0013e30d-7706-42c6-bb20-94a58dbfbf43>\",\"WARC-IP-Address\":\"185.199.111.153\",\"WARC-Target-URI\":\"https://legacy.fatiando.org/gallery/vis/seismic-wiggle.html\",\"WARC-Payload-Digest\":\"sha1:E6IWJC6ADQAYUX22JI57TCRYQVMGVQH7\",\"WARC-Block-Digest\":\"sha1:WSNCOQII3WVNR32UNIUTRELCUNL3DPS3\",\"WARC-Identified-Payload-Type\":\"application/xhtml+xml\",\"warc_filename\":\"/cc_download/warc_2021/CC-MAIN-2021-49/CC-MAIN-2021-49_segments_1637964363437.15_warc_CC-MAIN-20211208022710-20211208052710-00356.warc.gz\"}"}