Skip to content

Commit

Permalink
fix legacy pixscale
Browse files Browse the repository at this point in the history
  • Loading branch information
nmcardoso committed Sep 4, 2024
1 parent 8962e87 commit 3f45c72
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions components/xtable/XTableBody.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -206,11 +206,11 @@ export default function XTableBody() {

// legacy imaging column
if (schema.legacyImaging) {
const size = Math.round((tcState.legacyImaging.pixelScale * 600) / 0.4)
row.legacyImaging = legacyService.getRGBUrl(
ra,
dec,
size,
600,
tcState.legacyImaging.pixelScale,
tcState.legacyImaging.dataRelease
)
}
Expand Down
3 changes: 2 additions & 1 deletion services/LegacyService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,11 @@ export default class LegacyService {
ra: number | string,
dec: number | string,
size: number | string = 600,
pixscale: number | string = 0.55,
dataRelease: string = '10',
) {
const layer = dataRelease == '10' ? 'ls-dr10' : 'ls-dr9'
return `${LEGACY_RGB}?ra=${ra}&dec=${dec}&layer=${layer}&pixscale=0.4&size=${size}`
return `${LEGACY_RGB}?ra=${ra}&dec=${dec}&layer=${layer}&pixscale=${pixscale}&size=${size}`
}

async getNearbyRedshift(ra: any, dec: any, radius: number) {
Expand Down

0 comments on commit 3f45c72

Please sign in to comment.