mirror of
https://github.com/cds-astro/aladin-lite.git
synced 2026-01-09 03:43:25 -08:00
33 lines
981 B
HTML
33 lines
981 B
HTML
|
|
<!doctype html>
|
|
<html>
|
|
<head>
|
|
<!-- <link rel="stylesheet" href="../distrib/latest/aladin.min.css" /> -->
|
|
<!--<link rel="stylesheet" href="https://aladin.u-strasbg.fr/AladinLite/api/v2/latest/aladin.min.css" /> -->
|
|
</head>
|
|
<body>
|
|
|
|
<div id="aladin-lite-div" style="width:440px;height:300px"></div>
|
|
|
|
<script type="text/javascript" src="./../aladin.js" charset="utf-8"></script>
|
|
|
|
<script type="text/javascript">
|
|
let aladin;
|
|
A.init.then(() => {
|
|
aladin = A.aladin('#aladin-lite-div', {cooFrame: "icrs"});
|
|
|
|
aladin.displayFITS(
|
|
'http://data.astropy.org/tutorials/FITS-images/HorseHead.fits', // url of the fits file
|
|
{}, // no optional params
|
|
(ra, dec, fov, image) => { // ra, dec and fov are centered around the fits image
|
|
image.setColormap("magma", {stretch: "linear"});
|
|
|
|
aladin.gotoRaDec(ra, dec);
|
|
aladin.setFoV(fov);
|
|
}
|
|
);
|
|
});
|
|
</script>
|
|
</body>
|
|
</html>
|