IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 7, 2014, 6:20:06 AM (12 years ago)
Author:
eugene
Message:

more careful calculation of mag vs flux; add catID to output

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20140717/Ohana/src/dvopsps/src/DetectionOps.c

    r37176 r37198  
    5151  GET_COLUMN(ippDetectID , "ippDetectID", int);
    5252  GET_COLUMN(imageID     , "imageID",     int);
     53  GET_COLUMN(catID       , "catID",       int);
    5354  GET_COLUMN(ra          , "ra",          double); // XXX signed vs unsigned?
    5455  GET_COLUMN(dec         , "dec",         double);
     
    7677    detections[i].ippDetectID  = ippDetectID[i];
    7778    detections[i].imageID      = imageID[i];   
     79    detections[i].catID        = catID[i];   
    7880    detections[i].ra           = ra[i];         
    7981    detections[i].dec          = dec[i];       
     
    99101  free (ippDetectID);
    100102  free (imageID    );
     103  free (catID      );
    101104  free (ra         );
    102105  free (dec        );
     
    166169  gfits_define_bintable_column (&theader, "J", "ippDetectID", NULL, NULL, 1.0, FT_BZERO_INT32);
    167170  gfits_define_bintable_column (&theader, "J", "imageID",     NULL, NULL, 1.0, FT_BZERO_INT32);
     171  gfits_define_bintable_column (&theader, "J", "catID",       NULL, NULL, 1.0, FT_BZERO_INT32);
    168172  gfits_define_bintable_column (&theader, "D", "ra",          NULL, NULL, 1.0, 0.0);
    169173  gfits_define_bintable_column (&theader, "D", "dec",         NULL, NULL, 1.0, 0.0);
     
    191195  uint32_t   *ippDetectID ; ALLOCATE (ippDetectID ,  uint32_t, Ndetections);
    192196   int32_t   *imageID     ; ALLOCATE (imageID     ,   int32_t, Ndetections);
     197   int32_t   *catID       ; ALLOCATE (catID       ,   int32_t, Ndetections);
    193198  double     *ra          ; ALLOCATE (ra          ,  double,   Ndetections);
    194199  double     *dec         ; ALLOCATE (dec         ,  double,   Ndetections);
     
    214219    ippDetectID[i] = detections[i].ippDetectID ;
    215220    imageID[i]     = detections[i].imageID     ;
     221    catID[i]       = detections[i].catID       ;
    216222    ra[i]          = detections[i].ra          ;
    217223    dec[i]         = detections[i].dec         ;
     
    237243  gfits_set_bintable_column (&theader, &ftable, "ippDetectID", ippDetectID , Ndetections);
    238244  gfits_set_bintable_column (&theader, &ftable, "imageID",     imageID     , Ndetections);
     245  gfits_set_bintable_column (&theader, &ftable, "catID",       catID       , Ndetections);
    239246  gfits_set_bintable_column (&theader, &ftable, "ra",          ra          , Ndetections);
    240247  gfits_set_bintable_column (&theader, &ftable, "dec",         dec         , Ndetections);
     
    258265  free (ippDetectID );
    259266  free (imageID     );
     267  free (catID       );
    260268  free (ra          );
    261269  free (dec         );
Note: See TracChangeset for help on using the changeset viewer.