Utilities

Contents

Utilities#

astrophot.utils.ls_open(ra, dec, size_arcsec, band='r', release='ls_dr9')[source]#

Retrieves and opens a FITS cutout from the deepest stacked image in the specified Legacy Survey data release using the Astro Data Lab SIA service.

Args:

ra (float): Right Ascension in decimal degrees. dec (float): Declination in decimal degrees. size_arcsec (float): Size of the square cutout (side length) in arcseconds. band (str): The filter band (e.g., ‘g’, ‘r’, ‘z’). Case-insensitive. release (str): The Legacy Survey Data Release (e.g., ‘DR9’).

Returns:

astropy.io.fits.HDUList: The opened FITS file object.