IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 33220


Ignore:
Timestamp:
Feb 8, 2012, 8:32:30 AM (14 years ago)
Author:
eugene
Message:

fix some low-level bugs (dvomergeUpdate needs to use the depth of the actual input catalog, not the first input catalog

Location:
branches/eam_branches/ipp-20111122/Ohana/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20111122/Ohana/src/addstar/src/loadsupercos_rawdata.c

    r33006 r33220  
    157157      }
    158158         
    159       if (VERBOSE) fprintf (stderr, "selected %d stars (%10.6f - %10.6f, %10.6f - %10.6f)\n", Nstars,
     159      if (DEBUG) fprintf (stderr, "selected %d stars (%10.6f - %10.6f, %10.6f - %10.6f)\n", Nstars,
    160160                          region[0].Rmin, region[0].Rmax, region[0].Dmin, region[0].Dmax);
    161161
  • branches/eam_branches/ipp-20111122/Ohana/src/addstar/src/mkcmf.c

    r33169 r33220  
    4343  }
    4444
    45   static double mjd = NAN;
     45  static double mjd;
     46  mjd = NAN;
    4647  if ((N = get_argument (argc, argv, "-mjd"))) {
    4748    remove_argument (N, &argc, argv);
  • branches/eam_branches/ipp-20111122/Ohana/src/dvomerge/src/dvomergeUpdate.c

    r33213 r33220  
    33int dvomergeUpdate (int argc, char **argv) {
    44
    5   int depth, CONTINUE;
    6   off_t i, j, Ns, Ne;
     5  int CONTINUE;
     6  off_t i, j;
    77  SkyTable *outsky, *insky;
    88  SkyList *outlist, *inlist;
     
    101101  // loop over the populatable output tables; check for data in input in the corresponding regions
    102102
    103   SkyListPopulatedRange (&Ns, &Ne, inlist, 0);
    104   depth = inlist[0].regions[Ns][0].depth;
     103  // XXX this is not really used...
     104  // SkyListPopulatedRange (&Ns, &Ne, inlist, 0);
     105  // depth = inlist[0].regions[Ns][0].depth;
    105106 
    106107  SetPhotcodeTable(NULL);
     
    126127    // compare to a slightly reduced footprint
    127128    float dPos = 2.0/3600.0;
    128     outlist = SkyListByBounds (outsky, depth, inlist[0].regions[i][0].Rmin + dPos, inlist[0].regions[i][0].Rmax - dPos, inlist[0].regions[i][0].Dmin + dPos, inlist[0].regions[i][0].Dmax - dPos);
     129    outlist = SkyListByBounds (outsky, inlist[0].regions[i][0].depth, inlist[0].regions[i][0].Rmin + dPos, inlist[0].regions[i][0].Rmax - dPos, inlist[0].regions[i][0].Dmin + dPos, inlist[0].regions[i][0].Dmax - dPos);
    129130    for (j = 0; j < outlist[0].Nregions; j++) {
    130131      if (VERBOSE) fprintf (stderr, "output : %s\n", outlist[0].regions[j][0].name);
  • branches/eam_branches/ipp-20111122/Ohana/src/dvomerge/src/dvomergeUpdate_threaded.c

    r33213 r33220  
    6161    // compare to a slightly reduced footprint
    6262    float dPos = 2.0/3600.0;
     63    // XXX probably need to use threadData->region->depth
    6364    outlist = SkyListByBounds (threadData->outsky, threadData->depth, threadData->region->Rmin + dPos, threadData->region->Rmax - dPos, threadData->region->Dmin + dPos, threadData->region->Dmax - dPos);
    6465    for (j = 0; (j < outlist[0].Nregions) && (threadData->state != TS_FAIL); j++) {
Note: See TracChangeset for help on using the changeset viewer.