IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 12, 2009, 10:28:47 AM (17 years ago)
Author:
eugene
Message:

fixed memleaks & photcode defs; dvomerge now working

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/dvomerge/src/dvomerge.c

    r24745 r24750  
    2121  input2 = argv[3];
    2222  output = argv[5];
     23
     24  // the first input define the photcode table & db layout
     25  sprintf (filename, "%s/Photcodes.dat", input1);
     26  if (!LoadPhotcodes (filename, NULL)) {
     27    fprintf (stderr, "error loading photcode table %s\n", filename);
     28    exit (1);
     29  }
     30  // save the photcodes in the output catdir
     31  sprintf (filename, "%s/Photcodes.dat", output);
     32  if (!check_file_access (filename, TRUE, TRUE)) {
     33    fprintf (stderr, "error creating output catdir %s\n", output);
     34    exit (1);
     35  }
     36  if (!SavePhotcodesFITS (filename)) {
     37    fprintf (stderr, "error saving photcode table %s\n", filename);
     38    exit (1);
     39  }
    2340
    2441  // load the sky table for the existing database
     
    86103        continue;
    87104      }
    88       merge_catalogs_old (&outsky[0].regions[i], &outcatalog, &incatalog, 1.0);
     105      merge_catalogs_old (&outsky[0].regions[i], &outcatalog, &incatalog, RADIUS);
    89106      dvo_catalog_unlock (&incatalog);
    90107      dvo_catalog_free (&incatalog);
    91108    }
     109    SkyListFree (inlist);
     110
    92111    outcatalog.catflags = LOAD_AVES | LOAD_MEAS | LOAD_MISS | LOAD_SECF;
    93112    dvo_catalog_save (&outcatalog, VERBOSE);
Note: See TracChangeset for help on using the changeset viewer.