mirror of
https://github.com/cds-astro/aladin-lite.git
synced 2026-01-18 07:46:11 -08:00
🐛 Update Aladin#getViewWCS to have RADESYS instead of RADECSYS that is now deprecated for the fits standard
This commit is contained in:
committed by
Matthieu Baumann
parent
2b5f8a751a
commit
4d1a3f08d7
@@ -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;
|
||||
@@ -2240,7 +2240,7 @@ aladin.on("positionChanged", ({ra, dec}) => {
|
||||
case "ICRSd":
|
||||
cooType1 = "RA---";
|
||||
cooType2 = "DEC--";
|
||||
radecsys = "ICRS ";
|
||||
radesys = "ICRS ";
|
||||
break;
|
||||
case "GAL":
|
||||
cooType1 = "GLON-";
|
||||
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user