- Timestamp:
- Nov 16, 2012, 3:30:03 PM (14 years ago)
- Location:
- trunk/ppTranslate/src
- Files:
-
- 2 edited
-
ppMopsRead.c (modified) (2 diffs)
-
ppMopsWrite.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppTranslate/src/ppMopsRead.c
r34650 r34672 364 364 det->mask->data.U8[row] = 0; 365 365 plateScale += scale; 366 //Update the platescale value (should be a constant) 367 if (isfinite(scale)) { 368 det->platescale = scale; 369 } 366 370 numGood++; 367 371 … … 385 389 det->raExtErr->data.F64[row] = errScale * sqrt(cosAngle2 * xErr2 + sinAngle2 * yErr2); 386 390 det->decExtErr->data.F64[row] = errScale * sqrt(sinAngle2 * xErr2 + cosAngle2 * yErr2); 387 //Update the platescale value (should be a constant)388 det->platescale = scale;389 391 } 390 392 } -
trunk/ppTranslate/src/ppMopsWrite.c
r34671 r34672 48 48 } 49 49 } 50 //Get the SEEING weighted mean 50 //Get the SEEING weighted mean. Update the PLTSCALE_EXT value 51 51 float seeing = 0.; 52 52 int totalGood = 0; … … 57 57 if (isfinite(((ppMopsDetections*) detections->data[d])->platescale)) { 58 58 det->platescale = ((ppMopsDetections*) detections->data[d])->platescale; 59 } 60 } 61 } 59 printf("plate-scale = [%g]\n", det->platescale); 60 } 61 } 62 } 63 printf("plate-scale = [%g]\n", det->platescale); 62 64 seeing /= (float) totalGood; 63 65 if (det != NULL) {
Note:
See TracChangeset
for help on using the changeset viewer.
