Skip to content

Issue with spatial constraints in Alma.query #2147

Description

@astrofrog

The following script:

import matplotlib.pyplot as plt
from astroquery.alma import Alma
from astropy.coordinates import SkyCoord
archive = Alma.query({'spatial_resolution': '0..0.5', 'galactic':'0..360 -2..2'})
coords = SkyCoord(archive['gal_longitude'], archive['gal_latitude'], frame='galactic')
plt.scatter(coords.l.deg, coords.b.deg)
plt.savefig('distribution.png')

produces the following plot:

distribution

I would have expected all sources to lie between -2 and 2 in latitude, so it seems there is a bug somewhere along the way?

Metadata

Metadata

Assignees

Labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions