Changeset 38851
- Timestamp:
- Oct 13, 2015, 11:40:28 AM (11 years ago)
- Location:
- trunk/Ohana/src/dvopsps
- Files:
-
- 3 edited
-
include/dvopsps.h (modified) (1 diff)
-
src/insert_detections_dvopsps_catalog.c (modified) (4 diffs)
-
src/insert_skytable.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/dvopsps/include/dvopsps.h
r38674 r38851 20 20 float decErr; 21 21 float zp; 22 float zpFactor; 22 23 float telluricExt; 23 24 float airmass; -
trunk/Ohana/src/dvopsps/src/insert_detections_dvopsps_catalog.c
r38441 r38851 186 186 187 187 PrintIOBuffer (buffer, "INSERT INTO dvoDetectionFull (objID, detectID, ippObjID, ippDetectID, imageID, catID, "); 188 PrintIOBuffer (buffer, "ra, dec_, raErr, decErr, zp, telluricExt, airmass, expTime, ");188 PrintIOBuffer (buffer, "ra, dec_, raErr, decErr, zp, zpFactor, telluricExt, airmass, expTime, "); 189 189 PrintIOBuffer (buffer, "Mpsf, dMpsf, Mkron, dMkron, Map, dMap, flags) VALUES \n"); 190 190 … … 256 256 PRINT_FLOAT(buffer, detection->decErr, "%.6f, "); 257 257 PRINT_FLOAT(buffer, detection->zp, "%.6f, "); 258 PRINT_FLOAT(buffer, detection->zpFactor, "%.6e, "); 258 259 PRINT_FLOAT(buffer, detection->telluricExt, "%.6f, "); 259 260 PRINT_FLOAT(buffer, detection->airmass, "%.6f, "); … … 310 311 float nominalZP = code->C * 0.001 + code->K * (measure->airmass - 1); 311 312 float zp = nominalZP - measure->Mcal; 313 float zpFactor = pow(10.0, -0.4*zp + 3.56); 312 314 float telluricExt = - measure->Mcal; 313 315 float expTime = pow(10.0, 0.4 * measure->dt); … … 327 329 328 330 detection->zp = zp; 331 detection->zpFactor = zpFactor; 329 332 detection->telluricExt = telluricExt; 330 333 detection->airmass = airmass; -
trunk/Ohana/src/dvopsps/src/insert_skytable.c
r37048 r38851 64 64 } 65 65 66 PrintIOBuffer (buffer, "INSERT INTO dvoSkyTable (R_MIN, R_MAX, D_MIN, D_MAX, INDEX_, NAME) VALUES \n");66 PrintIOBuffer (buffer, "INSERT INTO dvoSkyTable (R_MIN, R_MAX, D_MIN, D_MAX, REGION_ID, NAME) VALUES \n"); 67 67 68 68 return TRUE;
Note:
See TracChangeset
for help on using the changeset viewer.
