Skip to content

Commit 0b7654d

Browse files
committed
ENH: filter out all non-spatial tables, too
1 parent 86335aa commit 0b7654d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

astroquery/ipac/irsa/core.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,9 @@ def list_catalogs(self, *, full=False, filter=None, include_metadata_tables=Fals
324324
if include_metadata_tables:
325325
more_filtering = ""
326326
else:
327-
more_filtering = "where irsa_dbms=21"
327+
# Filter out non-spatial catalogs and metadata tables with
328+
# irsa_pos=y and irsa_dbms=21
329+
more_filtering = "WHERE irsa_dbms=21 AND irsa_pos='y'"
328330

329331
tap_tables = self.query_tap(f"SELECT * FROM TAP_SCHEMA.tables {more_filtering}").to_table()
330332

0 commit comments

Comments
 (0)