Skip to content

Instantly share code, notes, and snippets.

View leouieda's full-sized avatar

Leonardo Uieda leouieda

View GitHub Profile
@leouieda
leouieda / fatiando_cookbook_gravmag_grav_tesseroid_parallel.py
Created February 21, 2013 18:13
Example of new tesseroid calculation in Fatiando using multiprocessing.
"""
GravMag: Forward modeling of the gravity anomaly using tesseroids in parallel
using ``multiprocessing``
"""
import time
from multiprocessing import Pool
from fatiando import gravmag, gridder, logger, utils
from fatiando.mesher import Tesseroid
from fatiando.vis import mpl, myv
@leouieda
leouieda / fatiando-maps-and-prisms.ipynb
Last active December 18, 2015 03:08
Generating and plotting synthetic gravity gradient tensor data with Fatiando a Terra
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@leouieda
leouieda / read_seismic_section_segy_obspy.ipynb
Last active January 22, 2018 22:14
IPython notebook showing how to read a seismic section from a SEG-Y file using obspy
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@leouieda
leouieda / bouguer_alps_egm08.grd
Created July 17, 2013 19:59
Bouguer Anomaly generated from EGM08 for the Alps region. In Surfer grid format
DSAA
222 182
0.000000E+00 1105000.000000
0.000000E+00 905000.000000
-251.926000 175.437000
109.39500 112.50700 115.76000 119.23400 122.35300 125.53100 129.07100 133.15000 137.67100 141.26300
143.92700 145.64300 146.52000 146.62200 145.97900 144.79500 143.31900 141.89100 141.19400 142.06100
143.53300 145.09200 146.87800 147.70100 147.91700 148.28600 148.63300 148.93800 149.15600 149.35900
149.58600 149.94700 150.69600 151.32100 151.87900 152.31800 152.91900 153.95900 154.76400 155.55400
156.44200 157.51900 159.29800 160.48200 161.62300 162.81000 164.19200 165.35800 166.50200 167.52200
@leouieda
leouieda / trial_inversion_refactor.ipynb
Last active December 20, 2015 15:58
A trial implementation for the refactor of the fatiando.inversion package
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@leouieda
leouieda / accelerate.ipynb
Created September 25, 2013 18:42
Trying out Anaconda Accelerate
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@leouieda
leouieda / plot_wav.py
Created February 17, 2014 01:33
Python code to plot a .wav file
# Load the required libraries:
# * scipy
# * numpy
# * matplotlib
from scipy.io import wavfile
from matplotlib import pyplot as plt
import numpy as np
# Load the data and calculate the time of each sample
samplerate, data = wavfile.read('Clapping.wav')
@leouieda
leouieda / janelas.ipynb
Created February 18, 2014 21:03
Mostra como selecionar valores em janelas em arrays do numpy
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@leouieda
leouieda / l-curve.ipynb
Created February 19, 2014 19:12
Prototype for an L-curse regularization parameter selection for Fatiando a Terra
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@leouieda
leouieda / borehole-prism-gravity.ipynb
Created August 8, 2014 15:08
Examine the gravity fields of a prism when calculate on boreholes through it.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.