def get_cutout_range_for_galaxy(self, galaxy_name):
"""
This function ...
:param galaxy_name:
:return:
"""
# Find the index of the galaxy in the LEDA - WISE table
index = tables.find_index(self.leda_wise_table, galaxy_name)
# Get the RA and DEC
ra = self.leda_wise_table["ra2000"][index] * Unit("deg")
dec = self.leda_wise_table["de2000"][index] * Unit("deg")
# Get the D25
d25_arcmin = self.leda_wise_table["d25"][index]
if d25_arcmin < 6: width = .5 * Unit("deg")
else: width = 1. * Unit("deg")
# Return the RA, DEC and width (all in degrees)
return ra, dec, width
# -----------------------------------------------------------------
评论列表
文章目录