Skip to content

Commit

Permalink
Merge pull request #43 from linea-it/39-hips-dp02
Browse files Browse the repository at this point in the history
Closed #39 Added LSST DP0.2 Hips Image
  • Loading branch information
glaubervila authored Jan 8, 2025
2 parents 8609419 + 6ac8e60 commit 9d62e76
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 47 deletions.
74 changes: 37 additions & 37 deletions docker-compose.local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ services:
depends_on:
- postgres
- redis
- mailpit
# - mailpit
volumes:
- ./backend:/app:z
env_file:
Expand Down Expand Up @@ -52,49 +52,49 @@ 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
container_name: sky_viewer_local_redis
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
30 changes: 20 additions & 10 deletions frontend/components/Aladin/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand All @@ -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(
Expand Down

0 comments on commit 9d62e76

Please sign in to comment.