In [1]:
from astropy.table import Table
In [6]:
database = '/Users/rs548/GitHub/dmu_products'
In [7]:
cosmos = Table.read("{}/dmu0/dmu0_2MASS-extended-sources/data/2MASS-XSC_COSMOS.fits".format(database))
In [8]:
cosmos.colnames
Out[8]:
In [10]:
cosmos.sort('r_k20e')
In [13]:
f = open('data/cosmos_extended.txt','w')
f.write('#? filter ra dec sw sh image mask variance # column descriptor \n')
for galaxy in cosmos:
if galaxy['r_k20e'] > 10.:
f.write(' HSC-G {} {} 50asec 50asec true true true \n'.format(galaxy['raj2000'],galaxy['dej2000']))
f.write(' HSC-R {} {} 50asec 50asec true true true \n'.format(galaxy['raj2000'],galaxy['dej2000']))
f.write(' HSC-I {} {} 50asec 50asec true true true \n'.format(galaxy['raj2000'],galaxy['dej2000']))
f.write(' HSC-Z {} {} 50asec 50asec true true true \n'.format(galaxy['raj2000'],galaxy['dej2000']))
f.write(' HSC-Y {} {} 50asec 50asec true true true \n'.format(galaxy['raj2000'],galaxy['dej2000']))
f.close()
The resulting file is uploaded here to download the images: https://hsc-release.mtk.nao.ac.jp/das_quarry/#bulk