In this recipe, we will learn how to plot given temperatures across the globe to visualize how they look relative to each other. You will need to download the temperature file required for plotting the map from http://data.nodc.noaa.gov/thredds/fileServer/woa/WOA09/NetCDFdata/temperature_annual_1deg.nc.
Plotting temperatures across the globe
Getting ready
You'll need to import the required libraries using the following commands:
from netCDF4 import Dataset
import matplotlib.pylab as plt
import numpy as np
from matplotlib import cm
import cartopy.crs as ccrs
from cartopy.util import add_cyclic_point