mirror of
https://github.com/cds-astro/aladin-lite.git
synced 2026-01-09 03:43:25 -08:00
31 lines
1018 B
HTML
31 lines
1018 B
HTML
<!doctype html>
|
|
<html>
|
|
<head>
|
|
<!-- Recommendation for users smartphone/tablets users -->
|
|
<meta name="viewport" content="width=device-width, height=device-height, initial-scale=1.0, user-scalable=no">
|
|
</head>
|
|
<body>
|
|
|
|
<script src="https://code.jquery.com/jquery-1.10.1.min.js"></script>
|
|
<div id="aladin-lite-div" style="width: 500px; height: 400px"></div>
|
|
<div id='aladin-statsDiv'></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', {fov: 360, fullScreen: true, cooFrame: 'galactic'});
|
|
aladin.setProjection('AIT');
|
|
|
|
let survey = aladin.createImageSurvey("P/PanSTARRS/DR1/g", null, null, null, null, {
|
|
imgFormat: 'fits',
|
|
colormap: 'redtemperature'
|
|
});
|
|
aladin.setBaseImageLayer(survey);
|
|
aladin.getBaseImageLayer().setColormap("redtemperature", {stretch: "Asinh"});
|
|
});
|
|
</script>
|
|
|
|
</body>
|
|
</html>
|