Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mast.Observations.query_criteria radius is a factor of ~10 bigger than supplied value #2946

Open
JordanDSilva opened this issue Feb 9, 2024 · 2 comments

Comments

@JordanDSilva
Copy link

I use
`
from astroquery.mast import Observations
from astropy.coordinates import SkyCoord

coord = SkyCoord(53.17644, -27.70218, frame = "icrs", unit = "deg")
rad = 0.01
Observations.query_criteria(coordinates=coord,
radius = rad,
project="HST",
dataproduct_type=["IMAGE", "image"]
)
`

Setting rad=0.01 and the final footprint ends up being basically 0.1 degrees in each direction. Any help much appreciated. Thanks.

@JordanDSilva JordanDSilva changed the title mas.Observations.query_criteria radius is a factor of ~10 bigger than supplied value mast.Observations.query_criteria radius is a factor of ~10 bigger than supplied value Feb 9, 2024
@bsipocz
Copy link
Member

bsipocz commented Feb 15, 2024

cc @astrojimig

@astrojimig
Copy link

Hi - If I understand your question correctly, this is not a bug! HST images from WFPC2, for example, can have fields of view up to ~2.7 arcminutes (0.045 degrees), which is considerably larger than your search radius. The "s_ra" and "s_dec" column that are returned by Observations.query_criteria() are the center position of each image, but do not capture the full extent of the image. From the center coordinate alone, the returned results may seem like they fall outside of your search radius, but your coordinates do fall within the full field of view of the HST image.

Here is the same search performed in the MAST web portal, for example. The AstroView window shows the footprints of each individual HST image. Many of them overlap with your coordinates, despite the center position being outside of your initial search radius. This makes the spatial footprint covered by the results much larger than your initial search radius.

The search radius assumes units of degrees unless it's supplied as an astropy Quantity object. You could use rad = 1*u.arcsec, for example, if you want to specify different units.
I hope that helps!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants