This patch fixes the magnitude parameter of observable comets by using a different formula altogether.

Review Request #101650 - Created June 17, 2011 and submitted

Information
Samikshan Bairagya
kstars
astroupdates
Reviewers
kstars
The patch is dirty now. Will look into it. This patch fixes the magnitude parameter of observable comets by using a different formula altogether.
T-Mag = M1 + 5*log10(rearth) + k1*log10(rsun). Comets for which data are not available will have abnormal magnitudes of 99.
For formula refer: http://ssd.jpl.nasa.gov/horizons.cgi

Changed CometsComponent::updateDataFile() to store the k1,k2 parameters as well in the comets.dat file
Changed CometsComponent::loadData() to load M1, M2, K1, K2 parameters as well. Also if M1, M2, K1, K2 data are not available set abnormal values as default.
Changed KSComet.h and KSComet.cpp to accept M1, M2, K1, K2 parameters as well. Also modified KSComet::findMagnitude() to use the above formula.
Changed setMag() function in SkyObject.h so that for any magnitudes >=30 abnormally high value(99) is set. 
Tested for various comets.
Samikshan Bairagya
Akarsh Simha
Akarsh Simha
Akarsh Simha
Samikshan Bairagya
Review request changed

Status: Closed (submitted)

Loading...