# Posts

## Writing NetCDF4 Data using Python

NetCDF file format has been designed for storing multidimensional scientific data such as temperature, rainfall, humidity, etc. In this post, we will see how...

## How to insert equation numbering in MS Word

It is of essential to insert equation number if you are working on your thesis and/or any scientific paper that consists of a lot of equations. The easiest a...

## Reading NetCDF4 Data in Python [Python]

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...

## PyGMT: High-Resolution Topographic Map in Python [Python]

A simple tutorial on how to plot high resolution topographic map using GMT tools in Python

## Plotting track and trajectory of hurricanes on a topographic map [Python]

Short demostration of how to plot the track or trajectory of a hurricane on a map. Codes are included.

## Topographic map clipped by coastlines [Python]

This post demonstrate how to use Python to set up clip topographic map based on coastlines.

## Topographic map with shading [Python]

Generating GMT style shaded relief map in Python

## How to plot topographic station map [Python]

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

## Plotting 1 arc-minute global relief map [Python]

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)

## Why we should use generators? [Python]

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

## Getting started with Obspy for seismologists: Part I

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 ...

## Plotting seismograms with increasing epicentral distance [Python]

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.

## Automatically Plotting Record Section for an Earthquake in the Given Time Range [Python]

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...

## Non-linear curve fitting to a model with multiple observational variables [MATLAB]

How to fit data to non-linear model

## Some Handy Mac Tweaks [macOS]

Some handy tweaks for mac like relocating default screenshot location, renaming batch files etc

## Introduction to Automating Mac [macOS]

Mac can be easily automated by the help of several tools such as automator, quick actions, applescripts

## iPhone Shortcut to Quickly Log Body Temperature [iOS]

Shortcut code for quickly logging temperature in Apple health app

## Mac Quick Action to Rate the Songs in Apple Music App [macOS]

Quick action for mac to easily love, dislike, rate songs in apple music app

## Statistical Analysis [MATLAB]

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

## Hypothesis Test [MATLAB]

Using Randomization to test the disprove the null hypothesis

## Estimation of the degrees of freedom of time series [Python]

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 ...

## Time Series Analysis: Filtering or Smoothing Data [Python]

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...

## Visualizing power spectral density using Obspy [Python]

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

## Monte Carlo Simulation to test for the correlation between two dataset [MATLAB]

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

## Interactive data visualization [Python]  