IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 18, 2012, 5:56:48 AM (14 years ago)
Author:
eugene
Message:

merge changes from trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20121130/ppTranslate/src/ppMopsWrite.c

    r34675 r34838  
    5151  float seeing = 0.;
    5252  int totalGood = 0;
     53  int platescale_has_been_set = 0;
    5354  for (int d = 0; d < detections->n; d++) {
    5455    if ( (detections->data[d] != NULL) && (isfinite(((ppMopsDetections*) detections->data[d])->seeing)) ) {
     
    5657      totalGood += 1;
    5758      if (isfinite(((ppMopsDetections*) detections->data[d])->platescale)) {
     59          if (platescale_has_been_set == 0) {
    5860          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);
    6374  seeing /= (float) totalGood;
    6475  if (det != NULL) {
Note: See TracChangeset for help on using the changeset viewer.