Finding the brightest pixel#

How to find and overplot the location of the brightest pixel.

import matplotlib.pyplot as plt
import numpy as np

import astropy.units as u

from import AIA_171_IMAGE

We start with the sample data.

aia =

To find the brightest pixel, we find the maximum in the AIA image data then transform that pixel coordinate to a map coordinate.

Let’s now plot the results.

fig = plt.figure()
ax = fig.add_subplot(projection=aia)
ax.plot_coord(hpc_max, 'wx', fillstyle='none', markersize=10)
AIA $171 \; \mathrm{\mathring{A}}$ 2011-06-07 06:33:02

Total running time of the script: (0 minutes 0.251 seconds)

Gallery generated by Sphinx-Gallery