For how to read a netCDF data, please refer to the previous post. Also, check the package and tools required for writing the netCDF data, check the page for reading the netCDF data. Importing relevant libraries import netCDF4 import numpy as np Let us create a new empty netCDF file named "new.nc" in the "../../data"... Continue Reading →

# Reading NetCDF4 Data in 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 take a lot of memory as well as it is not fast to read, write and process it. One of the best tools to deal with... Continue Reading →

# Generic Mapping Tool (GMT) for Beginners

To download all the scripts, figures and data, click here. Basemap for Linear Plots: Bash script to generate above plots is here. Plotting Maps: Bash script to generate above plots is here and here. Writing Text on the Figure: Bash script to generate above plots is here. Contour Plots: Bash script to generate above plots... Continue Reading →

# Spectral Analysis of wide variety of data in MATLAB

Signals can be any time-varying or space-varying quantity. Examples: speech, temperature readings, seismic data, stock price fluctuations. 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 are recorded in time-domain but analyzing signals in frequency domain makes the task easier.... Continue Reading →

# Statistical Analysis in MATLAB

Doing statistical analysis in MATLAB is lot easier than other computer languages. Here, we can make use of the intrinsic "plot" to visualize the statistics of the data. Below are some programs for commonly used statistical analysis: Calculating mean, standard deviation, median etc of the data and visualizing the data using the histograms. Here, we... Continue Reading →

# Reading Complex Text Data (MATLAB)

Text data which is in one format all through the file is easier to read. But when the text data has numeric entries, string entries (different data formats), then it becomes little complicated to read and write. Sometimes, the data is also not arranged in regular rows and columns form which makes them even more... Continue Reading →

# Using a Function (MATLAB)

If we need to run the same algorithms or formula for computations again and again, then instead of writing the same stuffs in our script file many times, we can simply write a function. This makes our script look simpler and faster to run. Writing a function in MATLAB Examples: Calculating mean and standard deviation... Continue Reading →

# Writing and Reading Simple Text Data (MATLAB)

Working with text data is convenient as we can share our data with other systems without giving them the trouble to install a particular software to read our data. Let's see how we can read and write a text data using MATLAB. Reading text data in MATLAB Reading text Data %% Reading the data in... Continue Reading →

# Reading Data from Microsoft Excel (MATLAB)

The MATLAB is very easy to use language. This is one of the main reason why it is getting popular day by day. Here, we show how we can read data from the Microsoft excel into the MATLAB. Once we can read the data into the MATLAB, we can do other computations and operations quite... Continue Reading →