Extracting raster values from list of x,y points

This script extracts the value of the closest pixel in a raster to a list of x,y points.

The script assumes the following:

The script requires the following packages to be installed in your Python environment: