Changeset 39525 for trunk/Ohana/src/addstar/src/setobjflags_io.c
- Timestamp:
- Apr 9, 2016, 12:01:06 PM (10 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/addstar/src/setobjflags_io.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/addstar/src/setobjflags_io.c
r39496 r39525 29 29 gfits_define_bintable_column (&theader, "D", "DEC", "", "degree", 1.0, 0.0); 30 30 gfits_define_bintable_column (&theader, "J", "MYBIT", "", "", 1.0, FT_BZERO_INT32); 31 //gfits_define_bintable_column (&theader, "J", "averef", "", "", 1.0, FT_BZERO_INT32);32 //gfits_define_bintable_column (&theader, "J", "objID", "", "", 1.0, FT_BZERO_INT32);33 //gfits_define_bintable_column (&theader, "J", "catID", "", "", 1.0, FT_BZERO_INT32);34 31 35 32 int i; … … 37 34 double *dec = NULL; ALLOCATE (dec , double , Nstars); for (i = 0; i < Nstars; i++) dec [i] = stars[i].D ; 38 35 unsigned int *myBit = NULL; ALLOCATE (myBit , unsigned int, Nstars); for (i = 0; i < Nstars; i++) myBit [i] = stars[i].myBit ; 39 //unsigned int *averef = NULL; ALLOCATE (averef , unsigned int, Nstars); for (i = 0; i < Nstars; i++) averef [i] = stars[i].starpar.averef ;40 //unsigned int *objID = NULL; ALLOCATE (objID , unsigned int, Nstars); for (i = 0; i < Nstars; i++) objID [i] = stars[i].starpar.objID ;41 //unsigned int *catID = NULL; ALLOCATE (catID , unsigned int, Nstars); for (i = 0; i < Nstars; i++) catID [i] = stars[i].starpar.catID ;42 36 43 37 // generate the output array that carries the data … … 113 107 GET_COLUMN(dec , "DEC" , double , double ); 114 108 GET_COLUMN(myBit , "MYBIT" , unsigned int, int ); 115 //GET_COLUMN(averef , "averef" , unsigned int, int );116 //GET_COLUMN(objID , "objID" , unsigned int, int );117 //GET_COLUMN(catID , "catID" , unsigned int, int );118 109 119 110 gfits_free_header (&theader); … … 128 119 stars[i].D = dec [i]; 129 120 stars[i].myBit = myBit [i]; 121 stars[i].flag = FALSE; 122 stars[i].found = FALSE; 130 123 } 131 124
Note:
See TracChangeset
for help on using the changeset viewer.
