From cf656a30def385b193ebddf802278e9c39f547f2 Mon Sep 17 00:00:00 2001 From: bmatthieu3 Date: Mon, 17 Mar 2025 14:44:16 +0100 Subject: [PATCH] NED tap access --- examples/al-obscore.html | 2 ++ src/js/URLBuilder.js | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/examples/al-obscore.html b/examples/al-obscore.html index 25d0a3cb..c962b6e6 100644 --- a/examples/al-obscore.html +++ b/examples/al-obscore.html @@ -17,6 +17,8 @@ }); aladin.addCatalog(A.catalogFromVizieR("B/assocdata/obscore", "0 +0", 20, {onClick: 'showTable', hoverColor: 'yellow', limit: 1000})) + aladin.addCatalog(A.catalogFromSKAORucio("0 +0", 70, {onClick: 'showTable', hoverColor: 'yellow', limit: 1000})) + }); diff --git a/src/js/URLBuilder.js b/src/js/URLBuilder.js index 02495414..8d3397e9 100644 --- a/src/js/URLBuilder.js +++ b/src/js/URLBuilder.js @@ -54,7 +54,8 @@ export let URLBuilder = (function() { }, buildNEDPositionCSURL: function(ra, dec, radiusDegrees) { - return 'https://ned.ipac.caltech.edu/cgi-bin/nph-objsearch?search_type=Near+Position+Search&of=xml_main&RA=' + ra + '&DEC=' + dec + '&SR=' + radiusDegrees; + //OLD return 'https://ned.ipac.caltech.edu/cgi-bin/nph-objsearch?search_type=Near+Position+Search&of=xml_main&RA=' + ra + '&DEC=' + dec + '&SR=' + radiusDegrees; + return 'https://ned.ipac.caltech.edu/tap/sync?query=SELECT+*+FROM+objdir+WHERE+CONTAINS(POINT(\'J2000\',ra,dec),CIRCLE(\'J2000\',' + ra + ',' + dec + ',' + radiusDegrees + '))=1&LANG=ADQL&REQUEST=doQuery&FORMAT=votable' }, buildNEDObjectCSURL: function(object, radiusDegrees) {