Index: trunk/ppTranslate/src/ppMopsWrite.c
===================================================================
--- trunk/ppTranslate/src/ppMopsWrite.c	(revision 34675)
+++ trunk/ppTranslate/src/ppMopsWrite.c	(revision 34779)
@@ -51,4 +51,5 @@
   float seeing = 0.;
   int totalGood = 0;
+  int platescale_has_been_set = 0;
   for (int d = 0; d < detections->n; d++) {
     if ( (detections->data[d] != NULL) && (isfinite(((ppMopsDetections*) detections->data[d])->seeing)) ) {
@@ -56,9 +57,19 @@
       totalGood += 1;
       if (isfinite(((ppMopsDetections*) detections->data[d])->platescale)) {
+          if (platescale_has_been_set == 0) {
           det->platescale = ((ppMopsDetections*) detections->data[d])->platescale;
-      }
-    }
-  }
-  printf("plate-scale = [%g]\n", det->platescale);
+              platescale_has_been_set = 1;
+          } else {
+              if (det->platescale != ((ppMopsDetections*) detections->data[d])->platescale) {
+                  printf("Different values for platescale: %g - %g in detection %d\n",
+                         det->platescale,
+                         ((ppMopsDetections*) detections->data[d])->platescale,
+                         d);
+      }
+    }
+  }
+    }
+  }
+  //printf("plate-scale = [%g]\n", det->platescale);
   seeing /= (float) totalGood;
   if (det != NULL) {
