Concatenating daily seismic traces into one miniseed file
I concatenate the daily seismic traces for 15 days into one miniseed file for further analysis. Then I obtained the spectrogram of the 15 days seismic data. ...
I concatenate the daily seismic traces for 15 days into one miniseed file for further analysis. Then I obtained the spectrogram of the 15 days seismic data. ...
We will learn how to convert a mseed data file into mat format and then read and analyze it using MATLAB
We learn how to read huge csv file containing time series data by breaking it into chunks and then visualizing it with matplotlib
This tutorial gives a brief description of scientific computing using Pandas by introducing Series, DataFrame, Pandas common operations, methods, conditional...
This tutorial gives a brief description of scientific computing using numpy by introducing arrays, methods, attributes, random numbers, indexing, broadcastin...
We learn how to make the three-dimensional map using both GMT and PyGMT
GMT or generic mapping tools have become synonymous with plotting maps in Earth, Ocean, and Planetary sciences. It can be used for processing data, generatin...
How can we use the MATLAB functions in Python? MATLAB implementation are usually reliable as it is developed by the professionals. But the advantages of usin...
If you are ready to use the Microsoft Word as your favourite tool for writing your awesome scientific thoughts and ideas into a manuscript, then I would like...
In this post, I will read a ASCII file whose first few lines contains the header information and then the three-component data. I will read using the pandas ...
This post is aimed to resolve the issues regarding the conflicts of using obspy and basemap libraries together.
The Generic Mapping Tools is widely used across Earth and Planetary and other fields of studies to process data and generate high-quality illustrations. This...
NetCDF file format has been designed for storing multidimensional scientific data such as temperature, rainfall, humidity, etc. In this post, we will see how...
It is essential to insert equation numbers in your thesis and/or any scientific paper. In this post, I will show you some of the easiest ways to insert equat...
In Earth Sciences, we often deal with multidimensional data structures such as climate data, GPS data. It ‘s hard to save such data in text files as it would...
A simple tutorial on how to plot high resolution topographic map using GMT tools in Python
Short demonstration of how to plot the track or trajectory of a hurricane on a map. Codes are included.
This post demonstrate how to use Python to set up clip topographic map based on coastlines.
Generating GMT style shaded relief map in Python
We read the station information from a file to plot the 1 arc-minute relief map
Plotting 1 arc-minute topographic map in python
Plotting publishable quality maps using generic mapping tools (GMT)
Plotting publishable quality maps using generic mapping tools (GMT)
Generators don’t hold the entire result in memory. It yields one result at a time.
An introduction to the wavelet analysis for a real geophysical data set. I compared the analysis to the Fourier analysis. Codes included!
An introduction to the basics of genetic algorithm along with a simple numerical example and solution of an earthquake location problem
In geophysics, it is important to understand and identify the complex and unknown relationships between two time-series. Cross-correlation is an established ...
The common geophysical problems most often have multimodal objective function with many possible minima. In this post, we will look into the Monte Carlo meth...
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...
Least-squares method is a popular approach in geophysical inversion to estimate the parameters of a postulated Earth model from given observations. This meth...
A signal has one or more frequency components in it and can be viewed from two different standpoints: time-domain and frequency domain. In general, signals a...
Most often data analyst consider correlation between two time-series as a causation effect. Two time-series are correlated that does not imply that one cause...
Numerical tests to understand the degrees of freedom in time series
Seismic resolution and fidelity are the two important measures of the quality of the seismic record and the seismic images. Seismic resolution quantifies the...
Simple earthquake location problem and its solution using Geiger’s method
Factor Analysis is an exploratory data analysis method used to search influential underlying factors or latent variables from a set of observed variables
Time-series analysis is essential in most fields of science, including geophysics, economics, etc. Most of the geophysical data comes in a time-series format...
Obspy is an open-source Python framework developed for the processing of seismological data. In this post, I will introduce how to use Obspy along with some ...
We demonstrate how to model a simple wave, obtain its frequencies, apply Hilbert transform, and perform edge detection
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.
Python code to automatically plot the record section for the highest magnitude earthquake in the given time range
Introduction to the concepts of tomography with equations and codes. Introduction to the concepts of overdetermined, underdetermined and mix-determined probl...
In geosciences, we most frequently have to make geospatial plots, but the available data is unevenly distributed and irregular. We like to show the data, in ...
How to fit data to non-linear model
Read the seismic traces from the miniseed files and compute the cross-correlation and spectrogram
We will learn the basics of Fourier analysis and implement it to remove noise from the synthetic and real signals
We will learn the basics of Fourier analysis and implement it to remove noise from the synthetic and real signals
What is the fastest and most efficient way to loop in Python. We found that the numpy is fastest and python builtins are the most memory efficient.
Parallel computing is quickly becoming a necessity. Modern computers comes with more than one process and we most often only use single process to do most of...
Codes for plotting advanced 2D plots using matplotlib library in Python. Includes simple 2D plot, error bars, bar graphs, histograms, multiple plots, etc
In this post, we will see how we can use Python to low pass filter the 10 year long daily fluctuations of GPS time series. We need to use the “Scipy” package...
Short demonstration of the ppsd class defined in Obspy using 3 days of data for station PB-B075
We test for the correlation coefficients or the covariance between two sets of random numbers selected from normal distribution using the Monte Carlo simulat...
Tutorial on how to use Git and GitHub for team collaboration on a project. Content includes installing, setting up, creating a repository, making commits, un...
In this tutorial post, I give a quick demo of how to install Python (using anaconda) and then getting started with writing simple scripts.
We pose a null hypothesis and enquire that given that the null hypothesis is true, how likely is the observed pattern of results? This likelihood is known as...
Visualize the statistics of the data using MATLAB: mean, median, std, interquartile range, skewness, kurtosis, t-statistic, degrees of freedom
Using Randomization to test the disprove the null hypothesis
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 ...
Some handy tweaks for mac like relocating default screenshot location, renaming batch files etc
Mac can be easily automated by the help of several tools such as automator, quick actions, applescripts
Shortcut code for quickly logging temperature in Apple health app
Quick action for mac to easily love, dislike, rate songs in apple music app
Transfer learning using the pre-trained deep learning networks from MATLAB can be easily implemented to achieve fast and impressive results
In this introduction to the concepts of Pytorch data structures, we will learn about how to create and reshape tensors using Pytorch and compare it with the ...
I used the sktime library to forecast the airline data using NaiveForecaster, KNeighborsRegressor, Statistical forecasters, and auto ARIMA model.
This post gives a quick introduction on how to build a web application using Flask and deploy on Heroku server. Then, I share my codes for building advanced ...
A basic to advanced guide to making interactive plots in Bokeh.
A PyQt5 application for retrieving and visualizing sound waveforms in real time. Codes included.
A simple Python app for system CPU and RAM usage monitoring in real time. The app is build mainly using the PyQt5, pyqtgraph and psutil.