[Kst] branches/kstars/summer/kdeedu/kstars/kstars/data
Akarsh Simha
akarshsimha at gmail.com
Mon Jun 2 09:50:27 CEST 2008
SVN commit 815557 by asimha:
Fixing faulty data and data generation utility (datatomysql.pl) that
was assigning wrong trixels to stars.
Instead of using the trivial $star->{ra}, I was trying to do some
inaccurate conversion of RA in HH:MM format into RA hours.
CCMAIL: kstars-devel at kde.org
M deepstars.dat
M shallowstars.dat
M starnames.dat
M +2 -6 tools/datatomysql.pl
--- branches/kstars/summer/kdeedu/kstars/kstars/data/tools/datatomysql.pl #815556:815557
@@ -79,12 +79,8 @@
$star->{line} = $.;
$VERBOSE and print_star_line($star);
- my $rah;
- my $ram;
- $star->{ra_hm} =~ /^(\d\d):/ and $rah = $1 or print "Format error in RA HM string\n";
- $star->{ra_hm} =~ /:(\d\d)$/ and $ram = $1 or print "Format error in RA HM string\n";
- $star->{trixel} = $mesh->lookup_name($rah + $ram/60.0, $star->{dec});
- $VERBOSE > 1 and print "Looked up " . ($rah + $ram/60.0) . " and " . $star->{dec} . " and got trixel = " . $star->{trixel};
+
+ $star->{trixel} = $mesh->lookup_name($star->{ra}, $star->{dec});
$star->{var_range} eq '' and $star->{var_range} = '0';
$star->{var_period} eq '' and $star->{var_period} = '0';
More information about the Kst
mailing list