sample_at_coords¶
- sunpy.map.sample_at_coords(smap, coordinates)[source]¶
Samples the data in a map at given series of coordinates. Uses nearest-neighbor interpolation of coordinates in map, as it effectively uses array indexing.
- Parameters:
smap (
GenericMap
) – A SunPy map.coordinates (
SkyCoord
) – Input coordinates.
- Returns:
numpy.array
– Anumpy.array
corresponding to the data obtained from the map, at the input coordinates.