add limited support for extrapolation when reading values from netcdf files.
a slightly more advanced exptrapolation algorithm that takes the average value of all extrapolation points