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 simple_norm 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 = simple_norm(hdu1.data, stretch='log') fig, ((ax1, ax2), (ax3, ax4)) = plt.subplots(nrows=2, ncols=2) ax1.imshow(hdu1.data, norm=norm, origin='lower') ax1.set_title('IRAC Ch1 PSF') ax2.imshow(hdu2.data, norm=norm, origin='lower') ax2.set_title('IRAC Ch2 PSF') ax3.imshow(hdu3.data, norm=norm, origin='lower') ax3.set_title('IRAC Ch3 PSF') ax4.imshow(hdu4.data, norm=norm, origin='lower') ax4.set_title('IRAC Ch4 PSF') fig.tight_layout()
(
Source code,png,hires.png,pdf,svg)