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

Adding a CSC HEASARC test and a HEASARC upload cross correlation. #69

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions input/heasarc/heasarc_cscXupload_tap.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#
# This needs to be called with uploads={"mytable":"inputs/heasarc/heasarc_nwayawgxmm_votable.xml"}
# and must be sync not async.
#
[
{'base_name': 'HEASARC_cscXupload',
'service_type': 'tap',
'access_url': 'https://heasarc.gsfc.nasa.gov/xamin/vo/tap',
'adql':'''
SELECT *, DISTANCE(
POINT('J2000', a.ra, a.dec),
POINT('J2000', b.ra, b.dec)
) as dist
FROM csc as a, tap_upload.mytable as b
WHERE 1=CONTAINS(
POINT('J2000', a.ra, a.dec),
CIRCLE('J2000', b.ra, b.dec, 1)
) ORDER BY dist ASC
'''
}
]
7 changes: 7 additions & 0 deletions input/heasarc/heasarc_csc_cone.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[
{'base_name': 'HEASARC_csc',
'service_type': 'cone',
'access_url': 'https://heasarc.gsfc.nasa.gov/cgi-bin/vo/cone/coneGet.pl?table=csc&',
'adql': ''
}
]
17 changes: 17 additions & 0 deletions input/heasarc/heasarc_csc_tap.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
## Note that to make the same query at HEASARC and at CXC,
## their cone_distance() function uses arcmin not degrees
## like HEASARC's distance() or contains().
[
{'base_name': 'HEASARC_csc',
'service_type': 'tap',
'access_url': 'https://heasarc.gsfc.nasa.gov/xamin/vo/tap',
'adql':'''
SELECT
*
FROM csc
WHERE
1=CONTAINS(POINT('ICRS', ra, dec),
CIRCLE('ICRS', {}, {}, {}/60.))
'''
}
]
Loading