[Kstars-devel] branches/kstars/summer/kdeedu/kstars/kstars/data/tools

Akarsh Simha akarshsimha at gmail.com
Wed Jun 25 08:01:12 CEST 2008


SVN commit 824170 by asimha:

Adding feature to the binfiletester utility, to print the limiting
magnitude of the catalog.

CCMAIL: kstars-devel at kde.org



 M  +4 -0      binfiletester.c  


--- branches/kstars/summer/kdeedu/kstars/kstars/data/tools/binfiletester.c #824169:824170
@@ -307,6 +307,7 @@
 int main(int argc, char *argv[]) {
 
     FILE *f, *names;
+    int16_t maglim = -500;
     names = NULL;
     if(argc <= 1) {
         fprintf(stderr, "USAGE: %s filename [trixel]\n", argv[0]);
@@ -325,6 +326,9 @@
 
     verifyIndexValidity(f);
 
+    fread(&maglim, 2, 1, f);
+    fprintf(stdout, "Limiting Magnitude of Catalog File: %f\n", maglim / 100.0);
+
     if(argc > 2) {
         /*
           if(argc > 3)


More information about the Kstars-devel mailing list