mirror of
https://github.com/cds-astro/aladin-lite.git
synced 2025-12-12 07:40:26 -08:00
65 lines
2.5 KiB
HTML
65 lines
2.5 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head> </head>
|
|
<body>
|
|
<div id="aladin-lite-div" style="width: 1024px; height: 768px"></div>
|
|
|
|
<script type="module">
|
|
import A from "../src/js/A.js";
|
|
let aladin;
|
|
A.init.then(() => {
|
|
aladin = A.aladin("#aladin-lite-div", {
|
|
target: "03 36 31.65 -35 17 43.1",
|
|
survey: "CDS/P/DES-DR2/ColorIRG",
|
|
fov: 3 / 60,
|
|
fullScreen: true,
|
|
showContextMenu: true,
|
|
showZoomControl: true,
|
|
showSettingsControl: true,
|
|
showSimbadPointerControl: true,
|
|
samp: true,
|
|
});
|
|
// define custom draw function
|
|
|
|
/*var hips = A.catalogHiPS(
|
|
"https://axel.u-strasbg.fr/HiPSCatService/Simbad",
|
|
{
|
|
onClick: "showTable",
|
|
name: "Simbad",
|
|
color: "cyan",
|
|
hoverColor: "red",
|
|
shape: (s) => {
|
|
let galaxy = ["Seyfert","Seyfert_1", "Seyfert_2","LSB_G","PartofG","RadioG","Gin","GinPair","HII_G","LensedG","BClG","BlueCompG","EmG","GinCl","GinGroup","StarburstG","LINER","AGN","Galaxy"].some((n) => s.data.main_type.indexOf(n) >= 0);
|
|
if (!galaxy) return;
|
|
|
|
let a = +s.data.size_maj;
|
|
let b = +s.data.size_min;
|
|
|
|
let theta = +s.data.size_angle || 0.0;
|
|
return A.ellipse(s.ra, s.dec, a / 60, b / 60, theta, { color: "cyan" });
|
|
},
|
|
}
|
|
);*/
|
|
var hips = A.catalogHiPS(
|
|
"https://axel.cds.unistra.fr/HiPSCatService/II/371/des_dr2",
|
|
{
|
|
onClick: "showTable",
|
|
name: "Simbad",
|
|
color: "cyan",
|
|
hoverColor: "red",
|
|
shape: (s) => {
|
|
let a = +s.data['Aimg']/3600;
|
|
let b = +s.data['Bimg']/3600;
|
|
|
|
let theta = +s.data['PA'];
|
|
|
|
return A.ellipse(s.ra, s.dec, a, b, theta, { color: "cyan" });
|
|
},
|
|
}
|
|
)
|
|
aladin.addCatalog(hips);
|
|
});
|
|
</script>
|
|
</body>
|
|
</html>
|