load_irac_psf#
- photutils.datasets.load_irac_psf(channel, show_progress=False)[source]#
Load a Spitzer IRAC PSF image.
- Parameters:
- channelint (1-4)
The IRAC channel number:
Channel 1: 3.6 microns
Channel 2: 4.5 microns
Channel 3: 5.8 microns
Channel 4: 8.0 microns
- show_progressbool, optional
Whether to display a progress bar during the download (default is
False
).
- Returns:
- hdu
ImageHDU
The IRAC PSF in a FITS image HDU.
- hdu
Examples
import matplotlib.pyplot as plt from astropy.visualization import ImageNormalize, LogStretch from photutils.datasets import load_irac_psf hdu1 = load_irac_psf(1) hdu2 = load_irac_psf(2) hdu3 = load_irac_psf(3) hdu4 = load_irac_psf(4) norm = ImageNormalize(hdu1.data, stretch=LogStretch()) fig, ((ax1, ax2), (ax3, ax4)) = plt.subplots(2, 2) ax1.imshow(hdu1.data, origin='lower', interpolation='nearest', norm=norm) ax1.set_title('IRAC Ch1 PSF') ax2.imshow(hdu2.data, origin='lower', interpolation='nearest', norm=norm) ax2.set_title('IRAC Ch2 PSF') ax3.imshow(hdu3.data, origin='lower', interpolation='nearest', norm=norm) ax3.set_title('IRAC Ch3 PSF') ax4.imshow(hdu4.data, origin='lower', interpolation='nearest', norm=norm) ax4.set_title('IRAC Ch4 PSF') plt.tight_layout() plt.show()
(
Source code
,png
,hires.png
,pdf
,svg
)