- Timestamp:
- Feb 5, 2014, 6:09:47 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20131211/Ohana/src/relphot/src/ImageSubset.c
r35759 r36474 63 63 GET_COLUMN (map, "PHOTOM_MAP", int); 64 64 GET_COLUMN (flags, "FLAGS", int); 65 GET_COLUMN (tessID, "TESS_ID", int); 65 66 GET_COLUMN (projID, "PROJ_ID", int); 66 67 GET_COLUMN (skycellID, "SKYCELL_ID", int); … … 78 79 image[i].photom_map_id = map[i]; 79 80 image[i].flags = flags[i]; 81 image[i].tessID = tessID[i]; 80 82 image[i].projID = projID[i]; 81 83 image[i].skycellID = skycellID[i]; … … 91 93 free (map); 92 94 free (flags); 95 free (tessID); 93 96 free (projID); 94 97 free (skycellID); … … 130 133 gfits_define_bintable_column (&theader, "J", "FLAGS", "flags", NULL, 1.0, 1.0*0x8000); 131 134 135 gfits_define_bintable_column (&theader, "J", "TESS_ID", "ID", NULL, 1.0, 0.0); 132 136 gfits_define_bintable_column (&theader, "J", "PROJ_ID", "ID", NULL, 1.0, 0.0); 133 137 gfits_define_bintable_column (&theader, "J", "SKYCELL_ID", "ID", NULL, 1.0, 0.0); … … 143 147 float *Mcal, *dMcal; 144 148 unsigned int *imageID, *map, *flags, *tzero; 145 int * projID, *skycellID;149 int *tessID, *projID, *skycellID; 146 150 unsigned short *trate; 147 151 short *ucdist; … … 153 157 ALLOCATE (map, unsigned int, Nimage); 154 158 ALLOCATE (flags, unsigned int, Nimage); 159 ALLOCATE (tessID, int, Nimage); 155 160 ALLOCATE (projID, int, Nimage); 156 161 ALLOCATE (skycellID, int, Nimage); … … 169 174 trate[i] = image[i].trate; 170 175 ucdist[i] = image[i].ubercalDist; 176 tessID[i] = image[i].tessID; 171 177 projID[i] = image[i].projID; 172 178 skycellID[i] = image[i].skycellID; … … 179 185 gfits_set_bintable_column (&theader, &ftable, "PHOTOM_MAP", map, Nimage); 180 186 gfits_set_bintable_column (&theader, &ftable, "FLAGS", flags, Nimage); 187 gfits_set_bintable_column (&theader, &ftable, "TESS_ID", tessID, Nimage); 181 188 gfits_set_bintable_column (&theader, &ftable, "PROJ_ID", projID, Nimage); 182 189 gfits_set_bintable_column (&theader, &ftable, "SKYCELL_ID", skycellID, Nimage); … … 190 197 free (map); 191 198 free (flags); 199 free (tessID); 192 200 free (projID); 193 201 free (skycellID);
Note:
See TracChangeset
for help on using the changeset viewer.
