From 36933ff6ac4884fab0b33593bd86ee4c1d91d2ce Mon Sep 17 00:00:00 2001 From: Matthieu BAUMANN Date: Tue, 28 Feb 2023 19:42:04 +0100 Subject: [PATCH] async fits parsing ok --- examples/al-displayFITS.html | 4 +- examples/index.html | 2 + src/core/Cargo.toml | 1 + src/core/al-api/src/fov.rs | 3 + src/core/al-core/src/texture/mod.rs | 1 + src/core/src/app.rs | 117 +++++++++-- src/core/src/lib.rs | 10 +- src/core/src/renderable/image.rs | 293 +++++++++++++++++++++++++--- src/core/src/utils.rs | 5 + src/js/Aladin.js | 25 +-- src/js/AladinUtils.js | 14 +- src/js/Catalog.js | 4 +- src/js/Ellipse.js | 4 +- src/js/ImageFITS.js | 68 +++---- src/js/ImageSurvey.js | 13 +- src/js/MOC.js | 18 +- src/js/View.js | 145 ++++++++------ src/js/gui/HiPSLayer.js | 2 +- 18 files changed, 531 insertions(+), 198 deletions(-) diff --git a/examples/al-displayFITS.html b/examples/al-displayFITS.html index 90746da1..07fe1cba 100644 --- a/examples/al-displayFITS.html +++ b/examples/al-displayFITS.html @@ -26,9 +26,9 @@ minCut: 5000, maxCut: 17000, }, // no optional params - (ra, dec, fov, image) => { // ra, dec and fov are centered around the fits image + (ra, dec, fov, image) => { // ra, dec and fov are centered around the fits image + console.log(image) image.setColormap("magma", {stretch: "asinh"}); - aladin.gotoRaDec(ra, dec); aladin.setFoV(fov); } diff --git a/examples/index.html b/examples/index.html index 4dc60490..5752a61e 100644 --- a/examples/index.html +++ b/examples/index.html @@ -9,6 +9,8 @@