astropy / astropy/astroquery

MAST Catalogs.query_criteria() column criteria does not work for TIC / CTL

Open
#2,449 1 comment 0 reactions 0 assignees View on GitHub
bug mast
Dominant language
Python
Stars
791
Forks
451
Avg merge
1d 3h
Merged PRs (30d)
4

Description

Query `Tic` / `Ctl` Catalogs to get a subset of columns with [`query_criteria(columns=...)`](https://astroquery.readthedocs.io/en/latest/api/astroquery.mast.CatalogsClass.html#astroquery.mast.CatalogsClass.query_criteria) does not appear to work.

[MAST documentation](https://catalogs.mast.stsci.edu/docs/general_catalog_service.html#selecting-columns) suggests that `columns` is supported.

Sample codes:
```python
from astroquery.mast import Catalogs

# catalog="Ctl" would show the same warning.
result = Catalogs.query_criteria(catalog="Tic", ID=403224672, columns=["ID", "ra", "dec"])
```

It outputs:
```python
WARNING: InputWarning: Filter columns does not exist. This filter will be skipped. [astroquery.mast.discovery_portal]
```

Similar search with `query_object()` and `query_region()` also ignore the `columns` parameter. There is no warning in those cases.

---

The issue appears to be similar to #2355 , but #2355 appears to be PANSTARRS-specific.

Contributor guide

Open the contributing guide

Research direction

Reproduce the TIC example with Catalogs.query_criteria(catalog="Tic", ID=403224672, columns=["ID", "ra", "dec"]), then compare it with the columns behavior in query_object() and query_region(). Trace the MAST discovery portal handling of the columns argument and the warning about the missing filter. Done means the requested columns are honored for TIC and CTL without the warning.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api, data
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.