How to extract values against a point from a NetCDF precipitation raster using 3×3 kernel in any programming language?