Changeset 29318
- Timestamp:
- Oct 4, 2010, 4:29:37 PM (16 years ago)
- Location:
- trunk/ippToPsps/src
- Files:
-
- 2 edited
-
ippToPspsBatchDetection.c (modified) (5 diffs)
-
ippToPspsBatchTest.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippToPsps/src/ippToPspsBatchDetection.c
r29295 r29318 51 51 52 52 // FrameMeta values 53 fits_write_col(this->fitsOut, TLONG, FRAMEMETA_FRAMEID, 1, 1, 1, &this-> expId, &status);53 fits_write_col(this->fitsOut, TLONG, FRAMEMETA_FRAMEID, 1, 1, 1, &this->id, &status); 54 54 fits_write_col(this->fitsOut, TSTRING, FRAMEMETA_FRAMENAME, 1, 1, 1, &this->expName, &status); 55 55 56 int8_t surveyID = -1; 57 if (!ippToPspsConfig_getSurveyId(this->config, this->surveyType, &surveyID)) {return PS_EXIT_DATA_ERROR;} 58 fits_write_col(this->fitsOut, TBYTE, FRAMEMETA_SURVEYID, 1, 1, 1, &surveyID, &status); 56 fits_write_col(this->fitsOut, TBYTE, FRAMEMETA_SURVEYID, 1, 1, 1, &this->surveyID, &status); 59 57 60 58 int8_t filterID = -1; … … 83 81 84 82 // stuff for detections table 85 time_t now;86 struct tm *ts;87 char timeStr[12];88 now = time(NULL);89 ts = gmtime(&now); // TODO should be UTC90 strftime(timeStr, sizeof(timeStr), "%Y-%m-%d", ts);91 92 83 uint32_t s,d, invalidDvoRows, smfJumps, unmatched, totalDetections = 0; 93 84 … … 114 105 115 106 filterIDs[s] = filterID; 116 surveyIDs[s] = surveyID;117 strcpy(assocDate[s], t imeStr);107 surveyIDs[s] = this->surveyID; 108 strcpy(assocDate[s], this->todaysDate); 118 109 } 119 110 … … 178 169 179 170 // create unique int from 'frameID' (aka exposure ID) and ccd number 180 pspsImageId = (this-> expId*100) + image->ccdnum;171 pspsImageId = (this->id*100) + image->ccdnum; 181 172 182 173 // now get DVO detections … … 192 183 imageFlags = (uint64_t)image->flags; 193 184 fits_write_col(this->fitsOut, TLONGLONG, IMAGEMETA_IMAGEID, 1, 1, 1, &pspsImageId, &status); 194 fits_write_col(this->fitsOut, TLONG, IMAGEMETA_FRAMEID, 1, 1, 1, &this-> expId, &status);185 fits_write_col(this->fitsOut, TLONG, IMAGEMETA_FRAMEID, 1, 1, 1, &this->id, &status); 195 186 fits_write_col(this->fitsOut, TSHORT, IMAGEMETA_CCDID, 1, 1, 1, &image->ccdnum, &status); 196 187 fits_write_col(this->fitsOut, TLONG, IMAGEMETA_PHOTOCALID, 1, 1, 1, &image->photcode, &status); -
trunk/ippToPsps/src/ippToPspsBatchTest.c
r29296 r29318 45 45 46 46 // FrameMeta values 47 // fits_write_col(this->fitsOut, TLONG, FRAMEMETA_FRAMEID, 1, 1, 1, &this-> expId, &status);47 // fits_write_col(this->fitsOut, TLONG, FRAMEMETA_FRAMEID, 1, 1, 1, &this->id, &status); 48 48 49 49 int8_t filterID = -1; … … 177 177 178 178 // create unique int from 'frameID' (aka exposure ID) and ccd number 179 pspsImageId = (this-> expId*100) + pImage->ccdnum;179 pspsImageId = (this->id*100) + pImage->ccdnum; 180 180 181 181 // now get DVO detections
Note:
See TracChangeset
for help on using the changeset viewer.
