# Matchups with point data¶

A common challenge when working with netCDF data is matching up with point data. This is often difficult because point data is sparse both spatially and temporally, and when working in the ocean this data can be at varying depths. From version 0.4.4 on, nctoolkit has a dedicated class, Matchpoint for dealing with this problem. Here we will provide an overview of how to do this.

# Matching data at specific locations¶

First, we will illustrate how matchpoint works for data at spatial locations and depths. After this we will deal with different times. The data will be ocean nitrate from NOAA’s World Ocean Atlas.

[1]:

import nctoolkit as nc
ds = nc.open_thredds('https://data.nodc.noaa.gov/thredds/dodsC/ncei/woa/nitrate/all/1.00/woa18_all_n01_01.nc', checks = False)
ds.crop(lon =  [-40, 20], lat = [40, 70], nco = True)
ds.select(variables = "n_an")
ds.run()

nctoolkit is using Climate Data Operators version 2.0.5


This is a subset of the data covering a large part of the North Atlantic, and it has nitrate values from the sea surface to the sea floor.

[2]:

ds.plot()