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.
An error is raised if any of the coordinates fall outside the map bounds.
- Parameters:
smap (
GenericMap
) – A SunPy map.coordinates (
SkyCoord
) – Input coordinates.
- Returns:
Quantity
– An array of the map data at the input coordinates.
Examples