[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [marble] /: - Fixing Spring Equinox bright star: Ignore novae and Dsos
From: Torsten Rahn <rahn () kde ! org>
Date: 2012-12-28 10:07:25
Message-ID: 20121228100725.2695AA6091 () git ! kde ! org
[Download RAW message or body]
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 = line.mid( 83, 7 );
- double deSign = ( decString.mid( 0, 1 ) == "-" ) ? -1.0 : 1.0;
+ double deSign = ( decString.mid( 0, 1 ) == "-" ) ? -1.0 : 1.0;
double deHH = decString.mid( 1, 2 ).toDouble();
double deMM = decString.mid( 3, 2 ).toDouble();
double deSS = 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:" << colorIdx;
- out << idValue;
- out << raValue;
- out << deValue;
- out << magValue;
- out << colorIdx;
+ if (raValue != 0 && deValue != 0) { // Filter out Novae and DSOs
+ 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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic