Skip to content

Commit

Permalink
comments on asteroid albedo, radius
Browse files Browse the repository at this point in the history
  • Loading branch information
mgarraha authored and alex-w committed Oct 24, 2024
1 parent 6a01c77 commit f61d86a
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion plugins/SolarSystemEditor/src/SolarSystemEditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1195,7 +1195,7 @@ SsoElements SolarSystemEditor::readMpcOneLineMinorPlanetElements(const QString &
if (q > 30 && semiMajorAxis > 250)
objectType = "sednoid";

// don't save estimated albedo and radius
// Loader will estimate albedo and radius

DiscoveryCircumstances dc = numberedMinorPlanets.value(minorPlanetNumber, DiscoveryCircumstances("",""));
if (!dc.first.isEmpty())
Expand Down
6 changes: 5 additions & 1 deletion src/core/modules/MinorPlanet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,11 @@ void MinorPlanet::updateEquatorialRadius(void)
if (equatorialRadius <= 0.)
{
if (albedo <= 0.0f)
albedo = 0.15f; // assumed
{
// ESA NEOCC and NASA CNEOS assume albedo between 0.05 and 0.25
// https://neo.ssa.esa.int/definitions-assumptions
albedo = 0.15f;
}
// Estimate as described at http://www.physics.sfasu.edu/astro/asteroids/sizemagnitude.html
float diameterKm = 1329.f / std::sqrt(albedo) * std::pow(10.f, -0.2f * absoluteMagnitude);
equatorialRadius = 0.5 * diameterKm / AU;
Expand Down
2 changes: 1 addition & 1 deletion src/core/modules/MinorPlanet.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ class MinorPlanet : public Planet
//! @param slope Slope parameter G. This is usually [0..1], sometimes slightly outside. Allowed here [-1..2].
void setAbsoluteMagnitudeAndSlope(const float magnitude, const float slope);

//! sets radius based on absolute magnitude.
//! sets radius based on absolute magnitude and albedo.
void updateEquatorialRadius(void);

//! renders the subscript in a minor planet IAU provisional designation with HTML.
Expand Down
2 changes: 1 addition & 1 deletion src/core/modules/SolarSystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1269,7 +1269,7 @@ bool SolarSystem::loadPlanets(const QString& filePath)
pd.value(secname+"/radius", 0.0).toDouble()/AU,
pd.value(secname+"/oblateness", 0.0).toDouble(),
color, // halo color
pd.value(secname+"/albedo", 0.15f).toFloat(),
pd.value(secname+"/albedo", 0.0f).toFloat(),
pd.value(secname+"/roughness",0.9f).toFloat(),
pd.value(secname+"/tex_map", "nomap.png").toString(),
pd.value(secname+"/normals_map", normalMapName).toString(),
Expand Down

0 comments on commit f61d86a

Please sign in to comment.