IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 24, 2013, 1:37:30 PM (13 years ago)
Author:
eugene
Message:

merge changes from trunk

Location:
branches/eam_branches/ipp-20130509
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20130509

  • branches/eam_branches/ipp-20130509/Ohana

  • branches/eam_branches/ipp-20130509/Ohana/src/dvopsps/src/DetectionOps.c

    r35098 r35594  
    5454  GET_COLUMN(ippObjID    , "ippObjID",    int64_t);
    5555  GET_COLUMN(objID       , "objID",       int64_t);
     56  GET_COLUMN(photcode    , "photcode",    int);
    5657  GET_COLUMN(flags       , "flags",       int);
    5758  GET_COLUMN(zp          , "zp",          float);
     
    7374    detections[i].ippObjID     = ippObjID[i];   
    7475    detections[i].objID        = objID[i];     
     76    detections[i].photcode     = photcode[i];     
    7577    detections[i].flags        = flags[i];     
    7678    detections[i].zp           = zp[i];         
     
    9092  free (ippObjID   );
    9193  free (objID      );
     94  free (photcode   );
    9295  free (flags      );
    9396  free (zp         );
     
    154157  // gfits_define_bintable_column (&theader, "K", "ippObjID",    NULL, NULL, 1.0, BZERO_INT64);
    155158  // gfits_define_bintable_column (&theader, "K", "objID",       NULL, NULL, 1.0, BZERO_INT64);
     159  gfits_define_bintable_column (&theader, "J", "photcode",    NULL, NULL, 1.0, 0.0);
    156160  gfits_define_bintable_column (&theader, "J", "flags",       NULL, NULL, 1.0, BZERO_INT32);
    157161  gfits_define_bintable_column (&theader, "E", "zp",          NULL, NULL, 1.0, 0.0);
     
    173177  uint64_t   *ippObjID    ; ALLOCATE (ippObjID    ,  uint64_t, Ndetections);
    174178  uint64_t   *objID       ; ALLOCATE (objID       ,  uint64_t, Ndetections);
     179  int        *photcode    ; ALLOCATE (photcode    ,  int,      Ndetections);
    175180  uint32_t   *flags       ; ALLOCATE (flags       ,  uint32_t, Ndetections);
    176181  float      *zp          ; ALLOCATE (zp          ,  float,    Ndetections);
     
    190195    ippObjID[i]    = detections[i].ippObjID    ;
    191196    objID[i]       = detections[i].objID       ;
     197    photcode[i]    = detections[i].photcode    ;
    192198    flags[i]       = detections[i].flags       ;
    193199    zp[i]          = detections[i].zp          ;
     
    207213  gfits_set_bintable_column (&theader, &ftable, "ippObjID",    ippObjID    , Ndetections);
    208214  gfits_set_bintable_column (&theader, &ftable, "objID",       objID       , Ndetections);
     215  gfits_set_bintable_column (&theader, &ftable, "photcode",    photcode    , Ndetections);
    209216  gfits_set_bintable_column (&theader, &ftable, "flags",       flags       , Ndetections);
    210217  gfits_set_bintable_column (&theader, &ftable, "zp",          zp          , Ndetections);
     
    222229  free (ippObjID    );
    223230  free (objID       );
     231  free (photcode    );
    224232  free (flags       );
    225233  free (zp          );
Note: See TracChangeset for help on using the changeset viewer.