# Query\_criteria from Astroquery gives same results with different RA and dec

**URL:** <https://community.openastronomy.org/t/query-criteria-from-astroquery-gives-same-results-with-different-ra-and-dec/774>\
**Category:** Astropy\
**Tags:** astropy, fits, question\
**Created:** [October 7, 2023, 10:22am UTC](https://community.openastronomy.org/t/query-criteria-from-astroquery-gives-same-results-with-different-ra-and-dec/774 "2023-10-07T10:22:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![yeffoca](https://avatars.discourse-cdn.com/v4/letter/y/f04885/32.png) [@yeffoca](https://community.openastronomy.org/u/yeffoca)\
**Post date:** [October 7, 2023, 10:22am UTC](https://community.openastronomy.org/t/query-criteria-from-astroquery-gives-same-results-with-different-ra-and-dec/774/1 "2023-10-07T10:22:43Z")

</div>

I am trying to download JWST data from MAST using specific RA and dec coords, but I am getting the same results no matter what I put in for the coords.

```auto
print("Number of results:", Observations.query_criteria_count(filters='F090W',
                                        s_dec=dec,
                                        s_ra=RA,
                                        intentType="science",
                                        instrument_name='NIRCAM/IMAGE',
                                        dataproduct_type='IMAGE',
                                        obs_collection='JWST',
                                        dataRights="public",
                                        calib_level=3))

```

This gives 84 results no matter what and they are all the same. My RA and dec are input as floats, but even if I put a string into the function it doesn’t raise any errors or change the output. Any ideas why this might be?
