# Geophysics

#### Empirical orthogonal function analysis to inspect the spatial coherency in the geospatial data (codes included)

Empirical Orthogonal Functions analysis decomposes the continuous space-time field into a set of orthogonal spatial patterns along with a set of associated u...

#### Plotting a record section using obspy (codes included)

Quickly plot record section of a stream using Obspy. I will introduce you how to make a stream from a set of SAC data, plot the record section and store it a...

#### Plotting seismograms with increasing epicentral distance using python (codes included)

Short demostration of how to plot the distance vs seismic waveforms and mark the P and S arrival times using the IASP91 earth model. Codes are included.

#### Visualizing power spectral density using obspy in python (codes included)

Short demonstration of the ppsd class defined in Obspy using 3 days of data for station PB-B075

#### Automatically plotting record section for an earthquake in the given time range in python (codes included)

Python code to automatically plot the record section for the highest magnitude earthquake in the given time range

#### Numerical tests on travel time tomography [matlab]

Introduction to the concepts of tomography with equations and codes. Introduction to the concepts of overdetermined, underdetermined and mix-determined probl...

#### Monte carlo simulation to test for the correlation between two dataset in matlab (codes included)

We test for the correlation coefficients or the covariance between two sets of random numbers selected from normal distribution using the Monte Carlo simulat...

#### Easy statistical analysis using the tools of matlab (codes included)

Visualize the statistics of the data using MATLAB: mean, median, std, interquartile range, skewness, kurtosis, t-statistic, degrees of freedom

#### Hypothesis test in matlab (codes included)

Using Randomization to test the disprove the null hypothesis

#### Topographic map with shading in python (codes included)

Generating GMT style shaded relief map in Python

#### How to plot topographic station map in python (codes included)

We read the station information from a file to plot the 1 arc-minute relief map

#### Non-linear curve fitting to a model with multiple observational variables in matlab (codes included)

How to fit data to non-linear model

#### Estimation of the degrees of freedom of time series in python (codes included)

Two time series with predominant linear trends (very low DOF) can have a very high correlation coefficient, which can hardly be construed as an evidence for ...

#### Gmt advanced tutorial, part ii (codes included)

Plotting publishable quality maps using generic mapping tools (GMT)

#### Why we should use generators? [python]

Generators don’t hold the entire result in memory. It yields one result at a time.