Git commit a4c66e3b536d551bbfe19370fb123feac18814d2 by Torsten Rahn. Committed on 28/12/2012 at 11:05. Pushed by rahn into branch 'master'. - Fixing Spring Equinox bright star: Ignore novae and Dsos M +- -- data/stars/stars.dat M +9 -7 tools/stars/stars.cpp M +- -- tools/stars/stars.dat http://commits.kde.org/marble/a4c66e3b536d551bbfe19370fb123feac18814d2 diff --git a/data/stars/stars.dat b/data/stars/stars.dat index 20b7d26..7231306 100644 Binary files a/data/stars/stars.dat and b/data/stars/stars.dat differ diff --git a/tools/stars/stars.cpp b/tools/stars/stars.cpp index e4e67c3..f998637 100644 --- a/tools/stars/stars.cpp +++ b/tools/stars/stars.cpp @@ -66,7 +66,7 @@ int main(int argc, char *argv[]) = QString decString =3D line.mid( 83, 7 ); = - double deSign =3D ( decString.mid( 0, 1 ) =3D=3D "-" ) ? -1.0 = : 1.0; = + double deSign =3D ( decString.mid( 0, 1 ) =3D=3D "-" ) ? -1.0 = : 1.0; double deHH =3D decString.mid( 1, 2 ).toDouble(); double deMM =3D decString.mid( 3, 2 ).toDouble(); double deSS =3D decString.mid( 5, 2 ).toDouble(); @@ -95,12 +95,14 @@ int main(int argc, char *argv[]) = // qDebug() << "Rec:" << recString << "Dec.:" << decString << "= Mag.:" << magString; if ( !line.isNull() && magValue < 6.0 ) { - qDebug() << "ID:" << idValue << "RA:" << raValue << "DE:" = << deValue << "mag:" << magValue << "B-V:" << bvString << "idx:" << colorId= x; - out << idValue; - out << raValue; - out << deValue; - out << magValue; - out << colorIdx; + if (raValue !=3D 0 && deValue !=3D 0) { // Filter out Novae and D= SOs + qDebug() << "ID:" << idValue << "RA:" << raValue << "DE:" << deValue= << "mag:" << magValue << "B-V:" << bvString << "idx:" << colorIdx; + out << idValue; + out << raValue; + out << deValue; + out << magValue; + out << colorIdx; + } } } while ( !line.isNull() ); } diff --git a/tools/stars/stars.dat b/tools/stars/stars.dat index 40def72..7231306 100644 Binary files a/tools/stars/stars.dat and b/tools/stars/stars.dat differ