Authors: Mathabo Malange, Phangoxolo Sishuba

3.4. Modules Relevant to Ocean Colour Data Analysis#

The following table introduces a list of modules relevant to the discussion of this manual. This list is not exhausting but enough for the data analysis that will follow in latter parts of the book.

Table 3.3 Modules for data manipulation and analysis in Python.#

Module Name

Short Description

Cartopy

Python package designed for geospatial data processing in order to produce maps and other geospatial data analyses

h5py

Python interface to the HDF5 (Hierarchical Data Format) binary data

Matplotlib

Python library for creating static, animated, and interactive visualisations

netCDF4

Python interface to the NetCDF (Network Common Data Form) C library

Numpy

The fundamental package for scientific computing with Python

Pandas

Python based data analysis and manipulation tool

Pyresample

Resampling of geospatial image data in Python

pyproj

Python interface to the library for cartographic projections and coordinate transformations (PROJ)

Requests

Library for making HTTP/1.1 requests in Python

3.4.1. Importing Modules into Python#

To use packages or libraries in Python, you will need to import them at the start of your Python code:

import matplotlib.pytplot as plt
import numpy as np
import pandas as pd
import h5py

Note that for the matplotlib library we can also import it using the following synthax from import as exemplified below.

from matplotlib import pyplot as plt