From 6ac8e60da300ee73b425908f9961c30240185124 Mon Sep 17 00:00:00 2001 From: glaubervila Date: Wed, 8 Jan 2025 22:44:12 +0000 Subject: [PATCH] Closed #39 Added LSST DP0.2 Hips Image --- docker-compose.local.yml | 74 ++++++++++++++--------------- frontend/components/Aladin/index.js | 30 ++++++++---- 2 files changed, 57 insertions(+), 47 deletions(-) diff --git a/docker-compose.local.yml b/docker-compose.local.yml index be44281..0a9a01b 100644 --- a/docker-compose.local.yml +++ b/docker-compose.local.yml @@ -13,7 +13,7 @@ services: depends_on: - postgres - redis - - mailpit + # - mailpit volumes: - ./backend:/app:z env_file: @@ -52,16 +52,16 @@ services: depends_on: - backend - frontend - - flower - - mailpit + # - flower + # - mailpit - mailpit: - image: docker.io/axllent/mailpit:latest - container_name: sky_viewer_local_mailpit - environment: - - MP_WEBROOT=/mailpit/ - ports: - - "8025:8025" + # mailpit: + # image: docker.io/axllent/mailpit:latest + # container_name: sky_viewer_local_mailpit + # environment: + # - MP_WEBROOT=/mailpit/ + # ports: + # - "8025:8025" redis: image: docker.io/redis:6 @@ -69,32 +69,32 @@ services: volumes: - sky_viewer_local_redis_data:/data - celeryworker: - <<: *backend - image: sky_viewer_local_celeryworker - container_name: sky_viewer_local_celeryworker - depends_on: - - redis - - postgres - - mailpit - ports: [] - command: /start-celeryworker + # celeryworker: + # <<: *backend + # image: sky_viewer_local_celeryworker + # container_name: sky_viewer_local_celeryworker + # depends_on: + # - redis + # - postgres + # - mailpit + # ports: [] + # command: /start-celeryworker - celerybeat: - <<: *backend - image: sky_viewer_local_celerybeat - container_name: sky_viewer_local_celerybeat - depends_on: - - redis - - postgres - - mailpit - ports: [] - command: /start-celerybeat + # celerybeat: + # <<: *backend + # image: sky_viewer_local_celerybeat + # container_name: sky_viewer_local_celerybeat + # depends_on: + # - redis + # - postgres + # - mailpit + # ports: [] + # command: /start-celerybeat - flower: - <<: *backend - image: sky_viewer_local_flower - container_name: sky_viewer_local_flower - ports: - - '5555:5555' - command: /start-flower + # flower: + # <<: *backend + # image: sky_viewer_local_flower + # container_name: sky_viewer_local_flower + # ports: + # - '5555:5555' + # command: /start-flower diff --git a/frontend/components/Aladin/index.js b/frontend/components/Aladin/index.js index 65615e3..e3b3006 100644 --- a/frontend/components/Aladin/index.js +++ b/frontend/components/Aladin/index.js @@ -98,8 +98,11 @@ export default class Aladin extends React.Component { // fullScreen: false // }) - this.aladin = A.aladin(`#${this.id}`, {}) - + this.aladin = A.aladin(`#${this.id}`, { + // target: "239.306940 -47.5654074" + target: "04 08 35.53 -37 06 27.6", + fov: 0.5, + }) // https://aladin.cds.unistra.fr/AladinLite/doc/API/#image-layers // https://aladin.cds.unistra.fr/AladinLite/doc/API/ @@ -108,21 +111,28 @@ export default class Aladin extends React.Component { "DES DR2 IRG at LIneA", "https://scienceserver-dev.linea.org.br/secondary/images/coadd/hips_rgb/", "equatorial", + ), { imgFormat: 'hips' }) + this.aladin.setImageSurvey(this.aladin.createImageSurvey( + "LSST_DP02_IRG_LIneA", + "LSST DP0.2 IRG at LIneA", + "https://scienceserver-dev.linea.org.br/data/releases/lsst/dp02/hips/", + "equatorial", + ), { imgFormat: 'hips' }) // DES DR2 Catalog HIPScat/HATS // https://aladin.cds.unistra.fr/AladinLite/doc/API/examples/catalog-hips-filter/ // https://hipscat.cds.unistra.fr/HiPSCatService/I/345/gaia2/ // https://aladin.cds.unistra.fr/AladinLite/doc/tutorials/interactive-finding-chart/ - var hips = A.catalogHiPS( - 'https://scienceserver-dev.linea.org.br/secondary/catalogs/hats', - { - onClick: 'showTable', - color: 'orange', - name: 'DES DR2', - }); - this.aladin.addCatalog(hips); + // var hips = A.catalogHiPS( + // 'https://scienceserver-dev.linea.org.br/secondary/catalogs/hats', + // { + // onClick: 'showTable', + // color: 'orange', + // name: 'DES DR2', + // }); + // this.aladin.addCatalog(hips); {/* aladin.setImageSurvey( aladin.createImageSurvey(