Posts by Categories Posts by Tags

2021

INTRODUCTION TO NUMPY FOR SCIENTIFIC COMPUTING

6 minute read      UTILITIES     

This tutorial gives a brief description of scientific computing using numpy by introducing arrays, methods, attributes, random numbers, indexing, broadcastin...

THE RIGHT WAY TO LOOP IN PYTHON

3 minute read      TECHNIQUES     

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.

MONTE CARLO METHODS AND EARTHQUAKE LOCATION PROBLEM

5 minute read      GEOPHYSICS     

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

PLOTTING A RECORD SECTION USING OBSPY

9 minute read      GEOPHYSICS     

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

A SIMPLE SYSTEM MONITOR APP IN PYTHON

less than 1 minute read      DESKTOPAPPS     

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.

WRITE ASCII DATA TO MSEED FILE USING OBSPY

4 minute read      UTILITIES     

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

LEAST-SQUARES METHOD IN GEOSCIENCES

10 minute read      GEOPHYSICS     

Least-squares method is a popular approach in geophysical inversion to estimate the parameters of a postulated Earth model from given observations. This meth...

SPEED-UP YOUR CODES BY PARALLEL COMPUTING IN PYTHON

6 minute read      TECHNIQUES     

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

ADVANCED 2D PLOTS WITH MATPLOTLIB IN PYTHON

5 minute read      TECHNIQUES     

Codes for plotting advanced 2D plots using matplotlib library in Python. Includes simple 2D plot, error bars, bar graphs, histograms, multiple plots, etc

Back to top ↑

2020

TIME-FREQUENCY ANALYSIS IN MATLAB

6 minute read      GEOPHYSICS     

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

NUMERICAL TESTS FOR SEISMIC RESOLUTION

7 minute read      GEOPHYSICS     

Seismic resolution and fidelity are the two important measures of the quality of the seismic record and the seismic images. Seismic resolution quantifies the...

EXPLORATORY FACTOR ANALYSIS

4 minute read      GEOPHYSICS     

Factor Analysis is an exploratory data analysis method used to search influential underlying factors or latent variables from a set of observed variables

WORKING WITH OBSPY AND BASEMAP

2 minute read      UTILITIES     

This post is aimed to resolve the issues regarding the conflicts of using obspy and basemap libraries together.

TIME SERIES ANALYSIS IN GEOPHYSICS

3 minute read      GEOPHYSICS     

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

GMT TUTORIAL FOR BEGINNERS

2 minute read      UTILITIES     

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

GETTING STARTED WITH OBSPY: DOWNLOADING WAVEFORM DATA

3 minute read      GEOPHYSICS     

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

WRITING NETCDF4 DATA USING PYTHON

4 minute read      UTILITIES     

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

3 minute read      UTILITIES     

It is essential to insert equation numbers in your thesis and/or any scientific paper. In this post, I discus some of the easiest way to insert equations

READING NETCDF4 DATA IN PYTHON

8 minute read      UTILITIES     

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

SOME HANDY MAC TWEAKS [MACOS]

2 minute read      LIFEHACKS     

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

INTRODUCTION TO AUTOMATING MAC [MACOS]

1 minute read      LIFEHACKS     

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

NUMERICAL TESTS ON TRAVEL TIME TOMOGRAPHY [MATLAB]

8 minute read      GEOPHYSICS     

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

HYPOTHESIS TEST [MATLAB]

1 minute read      STATISTICS     

Using Randomization to test the disprove the null hypothesis

Back to top ↑

2019

GMT ADVANCED TUTORIAL II

10 minute read      UTILITIES     

Plotting publishable quality maps using generic mapping tools (GMT)

GMT ADVANCED TUTORIAL

4 minute read      UTILITIES     

Plotting publishable quality maps using generic mapping tools (GMT)

USING GITHUB FOR TEAM COLLABORATION

10 minute read      TECHNIQUES     

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

Back to top ↑

2017

INTRODUCTION TO PYTHON FOR BEGINNERS

3 minute read      TECHNIQUES     

In this tutorial post, I give a quick demo of how to install Python (using anaconda) and then getting started with writing simple scripts.

Back to top ↑