- Timestamp:
- Aug 7, 2014, 6:20:06 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20140717/Ohana/src/dvopsps/src/DetectionOps.c
r37176 r37198 51 51 GET_COLUMN(ippDetectID , "ippDetectID", int); 52 52 GET_COLUMN(imageID , "imageID", int); 53 GET_COLUMN(catID , "catID", int); 53 54 GET_COLUMN(ra , "ra", double); // XXX signed vs unsigned? 54 55 GET_COLUMN(dec , "dec", double); … … 76 77 detections[i].ippDetectID = ippDetectID[i]; 77 78 detections[i].imageID = imageID[i]; 79 detections[i].catID = catID[i]; 78 80 detections[i].ra = ra[i]; 79 81 detections[i].dec = dec[i]; … … 99 101 free (ippDetectID); 100 102 free (imageID ); 103 free (catID ); 101 104 free (ra ); 102 105 free (dec ); … … 166 169 gfits_define_bintable_column (&theader, "J", "ippDetectID", NULL, NULL, 1.0, FT_BZERO_INT32); 167 170 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); 168 172 gfits_define_bintable_column (&theader, "D", "ra", NULL, NULL, 1.0, 0.0); 169 173 gfits_define_bintable_column (&theader, "D", "dec", NULL, NULL, 1.0, 0.0); … … 191 195 uint32_t *ippDetectID ; ALLOCATE (ippDetectID , uint32_t, Ndetections); 192 196 int32_t *imageID ; ALLOCATE (imageID , int32_t, Ndetections); 197 int32_t *catID ; ALLOCATE (catID , int32_t, Ndetections); 193 198 double *ra ; ALLOCATE (ra , double, Ndetections); 194 199 double *dec ; ALLOCATE (dec , double, Ndetections); … … 214 219 ippDetectID[i] = detections[i].ippDetectID ; 215 220 imageID[i] = detections[i].imageID ; 221 catID[i] = detections[i].catID ; 216 222 ra[i] = detections[i].ra ; 217 223 dec[i] = detections[i].dec ; … … 237 243 gfits_set_bintable_column (&theader, &ftable, "ippDetectID", ippDetectID , Ndetections); 238 244 gfits_set_bintable_column (&theader, &ftable, "imageID", imageID , Ndetections); 245 gfits_set_bintable_column (&theader, &ftable, "catID", catID , Ndetections); 239 246 gfits_set_bintable_column (&theader, &ftable, "ra", ra , Ndetections); 240 247 gfits_set_bintable_column (&theader, &ftable, "dec", dec , Ndetections); … … 258 265 free (ippDetectID ); 259 266 free (imageID ); 267 free (catID ); 260 268 free (ra ); 261 269 free (dec );
Note:
See TracChangeset
for help on using the changeset viewer.
