From b2cfa4e43d983bd8ca339112a5de175e9ffbaed5 Mon Sep 17 00:00:00 2001 From: Xen0Xys Date: Wed, 29 May 2024 14:59:16 +0200 Subject: [PATCH 1/2] :bug: Update Aladin#getViewWCS to have RADESYS instead of RADECSYS that is now deprecated for the fits standard --- src/js/Aladin.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/js/Aladin.js b/src/js/Aladin.js index a66390f6..12f373e3 100644 --- a/src/js/Aladin.js +++ b/src/js/Aladin.js @@ -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 "J2000d": cooType1 = "RA---"; cooType2 = "DEC--"; - radecsys = "ICRS "; + radesys = "ICRS "; break; case "Galactic": 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; }; From 244603796875be47ad115fbce05990600b588a51 Mon Sep 17 00:00:00 2001 From: Xen0Xys Date: Wed, 29 May 2024 15:00:49 +0200 Subject: [PATCH 2/2] :memo: Update changelog --- CHANGELOG.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 24ecba43..6f2bb5ee 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelogs +## Unreleased + +* [fixed] Change `RADECSYS` to `RADESYS` for `Aladin#getViewWCS` to follow fits standard deprecation + ## 3.3.3 * [feat] UI: add HiPS basic filter that filters the `hipsList` given @@ -353,4 +357,4 @@ New in the API: ### Fin 2013 * ajout catalogue progressif -* ajout on select, objectClicked, objectHovered \ No newline at end of file +* ajout on select, objectClicked, objectHovered