How to extract raster values at coordinate locations?

Check this thread for geotiff rasters reading.