SolarSystemEditor.cpp   SolarSystemEditor.cpp 
skipping to change at line 725 skipping to change at line 725
//qDebug() << column << year << month << day; //qDebug() << column << year << month << day;
QDate epochDate(year, month, day); QDate epochDate(year, month, day);
if (!epochDate.isValid()) if (!epochDate.isValid())
{ {
qDebug() << "readMpcOneLineMinorPlanetElements():" qDebug() << "readMpcOneLineMinorPlanetElements():"
<< column << "unpacks to" << column << "unpacks to"
<< QString("%1-%2-%3").arg(year).arg(month).arg(day ) << QString("%1-%2-%3").arg(year).arg(month).arg(day )
<< "This is not a valid date for an Epoch." ; << "This is not a valid date for an Epoch." ;
return SsoElements(); return SsoElements();
} }
int epochJD = epochDate.toJulianDay(); //Epoch is at .0 TT, i.e. midnight
double epochJD;
StelUtils::getJDFromDate(&epochJD, year, month, day, 0, 0, 0);
result.insert("orbit_Epoch", epochJD); result.insert("orbit_Epoch", epochJD);
column = oneLineElements.mid(26, 9).trimmed(); column = oneLineElements.mid(26, 9).trimmed();
double meanAnomalyAtEpoch = column.toDouble(&ok);//degrees double meanAnomalyAtEpoch = column.toDouble(&ok);//degrees
if (!ok) if (!ok)
return SsoElements(); return SsoElements();
result.insert("orbit_MeanAnomaly", meanAnomalyAtEpoch); result.insert("orbit_MeanAnomaly", meanAnomalyAtEpoch);
//Radius and albedo //Radius and albedo
//Assume albedo of 0.15 and calculate a radius based on the absolute magnitude //Assume albedo of 0.15 and calculate a radius based on the absolute magnitude
 End of changes. 1 change blocks. 
1 lines changed or deleted 3 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/