Skip to content

Commit

Permalink
final touches
Browse files Browse the repository at this point in the history
  • Loading branch information
jchate6 committed Dec 5, 2024
1 parent 7cf7407 commit 17c2f1f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tom_targets/templates/tom_targets/partials/aladin_skymap.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,16 @@
name: 'Targets',
color: 'blue',
sourceSize: 16};
var targetCatalog = A.catalog(catalogOptions);

// add targets to the catalog
for (var i = 0; i < targets.length; i++) {
var target = targets[i];
var targetCatalog = A.catalog({name: target.name , color: 'blue', sourceSize: 16});
aladin.addCatalog(targetCatalog);
popupInfo = ['RA: '.concat(target.ra, '<br>', 'Dec: ', target.dec)];
targetCatalog.addSources([A.marker(target.ra, target.dec, {popupTitle: target.name, popupDesc: popupInfo})]);
}
aladin.addCatalog(targetCatalog);


// extract Moon information from the context
const moonRaDeg = {{ moon_ra|safe }};
Expand Down Expand Up @@ -66,7 +67,7 @@
};

// create a catalog for the moon
const moonImage = A.catalog({shape: drawMoon});
const moonImage = A.catalog({shape: drawMoon, color: 'gray', name: 'Moon'});

const popupMoonDescription = `Illumination: ${moonIllumination} <br> RA: ${moonRaDeg.toFixed(4)} <br> Dec: ${moonDecDeg.toFixed(4)}`;

Expand Down

0 comments on commit 17c2f1f

Please sign in to comment.