IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 26338


Ignore:
Timestamp:
Dec 4, 2009, 3:55:27 PM (16 years ago)
Author:
bills
Message:

set parentID and externID

Location:
trunk/Ohana/src/addstar/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/addstar/src/FilterStars.c

    r21508 r26338  
    11# include "addstar.h"
    2 # define EXTERNAL_ID FALSE
     2# define EXTERNAL_ID TRUE
    33
    44/* exclude some detections based on various filter options:
  • trunk/Ohana/src/addstar/src/LoadData.c

    r26286 r26338  
    1010  char *name;
    1111  int i, j, Nvalid, Nhead, Ndata, Nskip;
     12  unsigned int parentID = UINT_MAX;
    1213  Stars *inStars;
    1314
     
    5859    // skip the table if there is no data segment (eg, mosaic WRP image)
    5960    if (!strcmp(headerSets[i].extdata, "NONE")) {
     61      if (!strcmp(headerSets[i].exthead, "PHU") && (Nimages > 1)) {
     62        // This image is the parent of subsequent images
     63        parentID = Nvalid;
     64        images[0][Nvalid].parentID = UINT_MAX;
     65      }
    6066      Nvalid++;
    6167      CHECK_REALLOCATE (images[0], Image, NVALID, Nvalid, 10);
    6268      continue;
    6369    }
     70    images[0][Nvalid].parentID = parentID;
    6471
    6572    // advance the pointer to the start of the corresponding table block
  • trunk/Ohana/src/addstar/src/UpdateImageIDs.c

    r21508 r26338  
    4040  for (i = 0; i < Nimages; i++) {
    4141    images[i].imageID += imageID;
     42    if (images[i].parentID == UINT_MAX) {
     43        images[i].parentID = 0;
     44    } else {
     45        images[i].parentID += imageID;
     46    }
    4247  }
    4348
Note: See TracChangeset for help on using the changeset viewer.