Changeset 34839 for branches/eam_branches/ipp-20121130/ippToPsps/src/Dvo.c
- Timestamp:
- Dec 18, 2012, 5:57:19 AM (14 years ago)
- Location:
- branches/eam_branches/ipp-20121130/ippToPsps
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20121130/ippToPsps
- Property svn:mergeinfo changed
/branches/czw_branch/20120906/ippToPsps (added) merged: 34772,34786 /trunk/ippToPsps (added) merged: 34782,34800,34806-34811,34832-34834
- Property svn:mergeinfo changed
-
branches/eam_branches/ipp-20121130/ippToPsps/src/Dvo.c
r34629 r34839 21 21 if (this->mysql) mysql_close(this->mysql); 22 22 23 free(this); 23 // libohana redirects free and gets confused by thigns allocated by calloc 24 // so call the real free funtion through this warpper 25 real_free(this); 24 26 } 25 27 … … 94 96 PhotCode *code = GetPhotcodebyCode(meas->photcode); 95 97 sprintf(sql, 96 "INSERT INTO dvoDetection (imageID, ippDetectID, detectID, ippObjID, objID, flags, zp, zpErr, airMass, expTime, ra, dec_, raErr, decErr) VALUES (%d, %u, %lu, %lu, %lu, %u, %f, %f, %f, %f, %lf, %lf, %f %f)",98 "INSERT INTO dvoDetection (imageID, ippDetectID, detectID, ippObjID, objID, flags, zp, zpErr, airMass, expTime, ra, dec_, raErr, decErr) VALUES (%d, %u, %lu, %lu, %lu, %u, %f, %f, %f, %f, %lf, %lf, %f, %f)", 97 99 image->imageID, // imageID 98 100 meas->detID, // ippDetectID 99 101 meas->extID, // detectID 100 102 (uint64_t)ave->catID*1000000000 + (uint64_t)ave->objID, // ippObjID 101 dvoDetections[i].ave.extID, // objID102 meas->dbFlags, // flags103 ave->extID, // objID 104 meas->dbFlags, // flags 103 105 code->C * 0.001 + code->K * (meas->airmass - 1) - meas->Mcal, // zp 104 meas->dMcal, // zpErr106 meas->dMcal, // zpErr 105 107 meas->airmass, 106 108 pow(10.0, 0.4 * meas->dt), // expTime 107 109 ave->R - meas->dR / 3600., // ra 108 110 ave->D - meas->dR / 3600., // dec 109 meas->dXccd * meas->pltscale, // estimate of raErr110 meas->dYccd * meas->pltscale// estimate of decErr111 meas->dXccd * 0.01 * fabs(meas->pltscale), // estimate of raErr 112 meas->dYccd * 0.01 * fabs(meas->pltscale) // estimate of decErr 111 113 ); 112 114
Note:
See TracChangeset
for help on using the changeset viewer.
