Plotting

nctoolkit provides automatic plotting of netCDF data in a similar way to the command line tool ncview.

If you have a dataset, simply use the plot method to create an interactive plot that matches the data type.

We can illustate this using a sea surface temperature dataset available here.

Let’s start by calculating mean sea surface temperature for the year 2000 and plotting it:

[1]:
import nctoolkit as nc
ff =  "sst.mon.mean.nc"
ds = nc.open_data(ff)
ds.select(year = 2000)
ds.tmean()
ds.plot()
nctoolkit is using Climate Data Operators version 1.9.10