extract_along_coord

sunpy.map.extract_along_coord(smap, coord)[source]

Return the value of the image array at every pixel the coordinate path intersects.

For a given coordinate coord, find all the pixels that cross the coordinate and extract the values of the image array in smap at these points. This is done by applying Bresenham’s line algorithm between the consecutive coordinates, in pixel space, and then indexing the data array of smap at those points.

Parameters:
  • smap (GenericMap) – The sunpy map.

  • coord (SkyCoord) – Coordinate along which to extract intensity.

Returns: