Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def nearest_gridpoint(self, geopoints):
"""
Instance method to take a list of observation geopoints and match the
forecast in the GRIB data for the nearest grid-point.
Returns a Geopoints instance with the same length of `geopoints` but
containing the forecast values.
:param geopoints: (Geopoints | List[Geopoint] | GeopointsLoader) An
iterable sequence of the observations.
:return: Geopoints instance containing list of geopoint values from
the forecast data.
:rtype: Geopoints
"""
return metview.nearest_gridpoint(self, geopoints)