Skip to content
This repository has been archived by the owner on Oct 10, 2022. It is now read-only.

Commit

Permalink
Fix transformation to degrees applied to field width instead of RA
Browse files Browse the repository at this point in the history
  • Loading branch information
GuLinux committed May 31, 2020
1 parent 3e4c173 commit 51427ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/PlateSolving/selectors.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,12 @@ const formatAladinParams = (solution) => {

const transformSolution = solution => ({
ra: deg2hours(solution.ASTROMETRY_RESULTS_RA.value),
raj2000: deg2hours(solution.ASTROMETRY_RESULTS_RA.value),
raj2000: solution.ASTROMETRY_RESULTS_RA.value,
dec: solution.ASTROMETRY_RESULTS_DE.value,
dej2000: solution.ASTROMETRY_RESULTS_DE.value,
raLabel: formatRA(solution.ASTROMETRY_RESULTS_RA.value),
decLabel: formatDegrees(solution.ASTROMETRY_RESULTS_DE.value),
widthDegrees: solution.ASTROMETRY_RESULTS_WIDTH.value / 24.0 * 360.0,
widthDegrees: solution.ASTROMETRY_RESULTS_WIDTH.value,
heightDegrees: solution.ASTROMETRY_RESULTS_HEIGHT.value,
width: formatDegrees(solution.ASTROMETRY_RESULTS_WIDTH.value),
height: formatDegrees(solution.ASTROMETRY_RESULTS_HEIGHT.value),
Expand Down

0 comments on commit 51427ac

Please sign in to comment.