Changeset 34779 for trunk/ppTranslate/src/ppMopsWrite.c
- Timestamp:
- Dec 7, 2012, 12:28:26 PM (14 years ago)
- File:
-
- 1 edited
-
trunk/ppTranslate/src/ppMopsWrite.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppTranslate/src/ppMopsWrite.c
r34675 r34779 51 51 float seeing = 0.; 52 52 int totalGood = 0; 53 int platescale_has_been_set = 0; 53 54 for (int d = 0; d < detections->n; d++) { 54 55 if ( (detections->data[d] != NULL) && (isfinite(((ppMopsDetections*) detections->data[d])->seeing)) ) { … … 56 57 totalGood += 1; 57 58 if (isfinite(((ppMopsDetections*) detections->data[d])->platescale)) { 59 if (platescale_has_been_set == 0) { 58 60 det->platescale = ((ppMopsDetections*) detections->data[d])->platescale; 59 } 60 } 61 } 62 printf("plate-scale = [%g]\n", det->platescale); 61 platescale_has_been_set = 1; 62 } else { 63 if (det->platescale != ((ppMopsDetections*) detections->data[d])->platescale) { 64 printf("Different values for platescale: %g - %g in detection %d\n", 65 det->platescale, 66 ((ppMopsDetections*) detections->data[d])->platescale, 67 d); 68 } 69 } 70 } 71 } 72 } 73 //printf("plate-scale = [%g]\n", det->platescale); 63 74 seeing /= (float) totalGood; 64 75 if (det != NULL) {
Note:
See TracChangeset
for help on using the changeset viewer.
