HST & JWST
HST images take very long to download, so the user might prefer to download the images manually (or maybe use private data) and then use set_HST_image to include the image into HostPhot’s workflow. The download of JWST images has not been implemented yet, but the user can use their own images with set_JWST_image, similar as with HST. The rest of the example uses HST, but it is essentially the same for JWST.
The difference with other surveys is that HostPhot only handles one filter at a time when working with HST or JWST given the large combination of instruments and filters.
[1]:
import hostphot
print('HostPhot version:', hostphot.__version__)
HostPhot version: 3.0.0
[2]:
from hostphot.cutouts import set_HST_image
name = "ASASSN-13AR-HOST"
host_ra, host_dec = 19.67456, -7.44498
filt = 'WFC3_UVIS_F275W'
file = "../../tests/hst_16741_2v_wfc3_uvis_f275w_iepo2v_drc.fits"
set_HST_image(file, filt, name)
[3]:
from astropy.io import fits
hdu = fits.open("images/ASASSN-13AR-HOST/HST/HST_WFC3_UVIS_F275W.fits")
And the rest of the process is the same as with any other survey.
[ ]: