From 4081fbefceef98c0acccefaee793fbeff2bdb038 Mon Sep 17 00:00:00 2001 From: Don Cross Date: Mon, 29 Apr 2019 21:46:15 -0400 Subject: [PATCH] Fixed visual magnitude calculation for Uranus. Now Uranus calculations match output of JPL Horizons closely. I figured this out by graphing JPL Horizons data and tweaking my phase curve formula to match. --- generate/template/astronomy.js | 2 +- source/js/astronomy.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/generate/template/astronomy.js b/generate/template/astronomy.js index c0670aaa..8e186644 100644 --- a/generate/template/astronomy.js +++ b/generate/template/astronomy.js @@ -1492,7 +1492,7 @@ function VisualMagnitude(body, phase, helio_dist, geo_dist) { break; case 'Mars': c0 = -1.52; c1 = +1.60; break; case 'Jupiter': c0 = -9.40; c1 = +0.50; break; - case 'Uranus': c0 = -7.19; break; + case 'Uranus': c0 = -7.19; c1 = +0.25; break; case 'Neptune': c0 = -6.87; break; case 'Pluto': c0 = -1.00; c1 = +4.00; break; default: throw `VisualMagnitude: unsupported body ${body}`; diff --git a/source/js/astronomy.js b/source/js/astronomy.js index 150f4cd0..e6c96f9d 100644 --- a/source/js/astronomy.js +++ b/source/js/astronomy.js @@ -2329,7 +2329,7 @@ function VisualMagnitude(body, phase, helio_dist, geo_dist) { break; case 'Mars': c0 = -1.52; c1 = +1.60; break; case 'Jupiter': c0 = -9.40; c1 = +0.50; break; - case 'Uranus': c0 = -7.19; break; + case 'Uranus': c0 = -7.19; c1 = +0.25; break; case 'Neptune': c0 = -6.87; break; case 'Pluto': c0 = -1.00; c1 = +4.00; break; default: throw `VisualMagnitude: unsupported body ${body}`;