[Kstars-devel] [kstars] kstars/data/tools: Clearly, we were underestimating the proper motion. This calls for a
Akarsh Simha
akarshsimha at gmail.com
Sun Jul 10 02:37:00 CEST 2011
Git commit 295eb75db00c267a0b4663d76c8c664f4f75dbfa by Akarsh Simha.
Committed on 10/07/2011 at 02:14.
Pushed by asimha into branch 'master'.
Clearly, we were underestimating the proper motion. This calls for a
rebuild of the USNO NOMAD 1e8 star catalog.
Also adding a comment about the separation margin.
(I hope I'm right here, because I don't recall the details and don't
see enough information regarding that in my e-mail, but that does make
sense)
CCMAIL: bowlin at mindspring.com, kstars-devel at kde.org
M +5 -1 kstars/data/tools/nomaddatatomysql.pl
http://commits.kde.org/kstars/295eb75db00c267a0b4663d76c8c664f4f75dbfa
diff --git a/kstars/data/tools/nomaddatatomysql.pl b/kstars/data/tools/nomaddatatomysql.pl
index dabeb32..639c46b 100755
--- a/kstars/data/tools/nomaddatatomysql.pl
+++ b/kstars/data/tools/nomaddatatomysql.pl
@@ -145,7 +145,11 @@ while(<>) {
my @trixels;
if( $star->{Name} eq "" && $star->{GName} eq "" ) {
- my $separation = sqrt( ($botRA - $topRA) * ($botRA - $topRA) + ($leftDec - $rightDec) * ($leftDec - $rightDec) );
+
+ my $separation = sqrt( hour2deg($botRA - $topRA) * hour2deg($botRA - $topRA) + ($leftDec - $rightDec) * ($leftDec - $rightDec) );
+
+ # HTMesh::intersect is called (in DeepStarComponent::draw()) with a 1 degree "safety" margin.
+ # So we tolerate upto < 1 degree of proper motion without duplication
if( $separation > 50.0 / 60.0 ) {
# $mesh->intersect_poly4( $botRA, $leftDec,
# $botRA - $epsilon, $leftDec + $epsilon,
More information about the Kstars-devel
mailing list