Skip to content

Instantly share code, notes, and snippets.

View rowanc1's full-sized avatar
🚀
Working on the future

Rowan Cockett rowanc1

🚀
Working on the future
View GitHub Profile
@rowanc1
rowanc1 / table.m
Created December 3, 2013 18:18
This function will print an ASCII table, in matlab.
%% Print Table
%
% This function will print an ASCII table, for example:
%
% Decrease in Error, t_fo = 100
% ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
% mu=0.1 mu=0.5 mu=1.0
% .--------------------------------------------
% h=0.01 | 8.692922e-01 8.530311e-01 4.018080e-01
% h=0.02 | 5.797046e-01 6.220551e-01 7.596669e-02
@rowanc1
rowanc1 / description.md
Last active January 2, 2016 08:38
Richards Equation - Comparison to Ceilia et al. 1990

There are two different forms of Richards equation that differ on how they deal with the non-linearity in the time-stepping term. Here we reproduce results from a seminal paper, and show the ease with which you can do this in SimPEG and Richards python packages.

@rowanc1
rowanc1 / description.md
Last active January 2, 2016 08:39
SimPEG Tutorial - Linear Problem

In this tutorial we will create a simple linear problem from scratch using the SimPEG framework.

@rowanc1
rowanc1 / syntheticSeismogram.py
Created January 9, 2014 17:52
Generates a synthetic seismogram for a simple 1-D layered model.
import numpy as np
import matplotlib.pyplot as plt
def syntheticSeismogram(v, rho, d):
"""
function syntheticSeismogram()
syntheicSeismogram generates a synthetic seismogram for a simple 1-D
@rowanc1
rowanc1 / description.md
Last active January 2, 2016 17:59
SimPEG Play - Anisotropic Block

Playing with anisotropy in SimPEG.

@rowanc1
rowanc1 / description.md
Last active January 2, 2016 18:48
SimPEG Tutorial - Creating a Mesh

In this tutorial we will go over creating a mesh, and the basics of numbering, counting, and naming conventions. With these skills you can move faster, and move between different meshes (hopefully) with ease!

@rowanc1
rowanc1 / description.md
Last active January 3, 2016 14:59
SimPEG Play - DC Resistivity Inversion

Working to incorporate DC resistivity inversions in the new SimPEG framework.

@rowanc1
rowanc1 / cc.m
Created June 3, 2014 19:31
Clear, close all, clc, quit: cc.m
clear;
clear CLASSES;
clc;
close all;
try
dbquit('all');
clear;
end;
@rowanc1
rowanc1 / index.html
Last active August 29, 2015 14:02
Visible Geology in Python
<div class="cell border-box-sizing code_cell rendered">
<div class="input">
<div class="prompt input_prompt">
In&nbsp;[10]:
</div>
<div class="inner_cell">
<div class="input_area">
<div class="highlight"><pre><span class="kn">import</span> <span class="nn">visiblegeology</span> <span class="kn">as</span> <span class="nn">VG</span>
<span class="n">GH</span> <span class="o">=</span> <span class="p">(</span>
<span class="n">VG</span><span class="o">.</span><span class="n">Erosion</span><span class="p">()</span> <span class="o">+</span>
@rowanc1
rowanc1 / Korean Flag.ipynb
Created August 12, 2014 04:49
Korean Flag in Python
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.