Commit be775d6e authored by Alexandre Beelen's avatar Alexandre Beelen

Added IRAM obslog

parent 181ad024
Pipeline #1545 canceled with stages
This diff is collapsed.
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
from astroquery.vizier import Vizier
from astropy.coordinates import SkyCoord
import astropy.units as u
fields = {'GOODSN': {'coord': SkyCoord(189.229278564, 62.2437744141, unit="deg"),
'size': 0.000555555555556 * 601},
'COSMOS': {'coord': SkyCoord(150.000000000, 2.25000000000, unit="deg"),
'size': 0.000555555555556 * 2401}
}
Vizier.ROW_LIMIT = 10000000
for field, item in fields.items():
results = Vizier.query_region(item['coord'], radius=item['size'] * u.deg, catalog='B/iram')
for data in results:
del(data.meta['description'])
coords = SkyCoord([" ".join([ra, dec])
for ra, dec in zip(data["RAJ2000"], data["DEJ2000"])],
unit=('hourangle', 'deg'), frame="fk5")
data['_ra'] = coords.ra
data['_dec'] = coords.dec
data.write('{}_{}.fits'.format(field, data.meta['name'].replace('/','_')))
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment