Skip to content

Commit

Permalink
🐛 Update Aladin#getViewWCS to have RADESYS instead of RADECSYS that i…
Browse files Browse the repository at this point in the history
…s now deprecated for the fits standard
  • Loading branch information
Xen0Xys committed May 29, 2024
1 parent c881d1c commit b2cfa4e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/js/Aladin.js
Original file line number Diff line number Diff line change
Expand Up @@ -2226,7 +2226,7 @@ aladin.on("positionChanged", ({ra, dec}) => {
let cooType2 = "LAT--";

// just in case it would be equatorial
let radecsys;
let radesys;

if (this.getBaseImageLayer().isPlanetaryBody()) {
const body = this.getBaseImageLayer().hipsBody;
Expand All @@ -2240,7 +2240,7 @@ aladin.on("positionChanged", ({ra, dec}) => {
case "J2000d":
cooType1 = "RA---";
cooType2 = "DEC--";
radecsys = "ICRS ";
radesys = "ICRS ";
break;
case "Galactic":
cooType1 = "GLON-";
Expand All @@ -2266,7 +2266,7 @@ aladin.on("positionChanged", ({ra, dec}) => {

// handle the case of equatorial coordinates that need
// the radecsys keyword
if (radecsys == "ICRS ") WCS.RADECSYS = radecsys;
if (radesys == "ICRS ") WCS.RADESYS = radesys;

return WCS;
};
Expand Down

0 comments on commit b2cfa4e

Please sign in to comment.