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.
This commit is contained in:
Don Cross
2019-04-29 21:46:15 -04:00
parent f64b804869
commit 4081fbefce
2 changed files with 2 additions and 2 deletions

View File

@@ -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}`;

View File

@@ -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}`;