Index: /trunk/psastro/src/psastroChipAstrom.c
===================================================================
--- /trunk/psastro/src/psastroChipAstrom.c	(revision 12711)
+++ /trunk/psastro/src/psastroChipAstrom.c	(revision 12712)
@@ -55,13 +55,15 @@
 		char *chipname = psMetadataLookupStr (NULL, chip->concepts, "CHIP.NAME");
 
-		psStringAppend (&filename, "rawstars.ch.%s.dat", chipname);
-		psastroDumpStars (rawstars, filename);
-		psFree (filename);
-		filename = NULL;
+		if (psTraceGetLevel("psastro.dump") > 0) {
+		    psStringAppend (&filename, "rawstars.ch.%s.dat", chipname);
+		    psastroDumpStars (rawstars, filename);
+		    psFree (filename);
+		    filename = NULL;
 
-		psStringAppend (&filename, "refstars.ch.%s.dat", chipname);
-		psastroDumpStars (refstars, filename);
-		psFree (filename);
-		filename = NULL;
+		    psStringAppend (&filename, "refstars.ch.%s.dat", chipname);
+		    psastroDumpStars (refstars, filename);
+		    psFree (filename);
+		    filename = NULL;
+		}
 
 		// save WCS and analysis metadata in update header
Index: /trunk/psastro/src/psastroLuminosityFunction.c
===================================================================
--- /trunk/psastro/src/psastroLuminosityFunction.c	(revision 12711)
+++ /trunk/psastro/src/psastroLuminosityFunction.c	(revision 12712)
@@ -37,5 +37,5 @@
   int nBin = 1 + (mMax - mMin) / dMag;
   if (nBin <= 1) {
-    psError(PSASTRO_ERR_DATA, true, "magnitude range of 0.0\n");
+    psLogMsg ("psastro", 4, "insufficient valid stars for this readout\n");
     return NULL;
   }
@@ -92,5 +92,5 @@
 
   if (!psVectorClipFitPolynomial1D(line, stats, mask, 0xff, lnMag, NULL, Mag)) {
-      psError(PS_ERR_UNKNOWN, false, "Failed the fit the luminosity function\n");
+      psLogMsg ("psastro", 4, "Failed to fit the luminosity function\n");
       return(NULL);
   }
Index: /trunk/psastro/src/psastroMosaicGradients.c
===================================================================
--- /trunk/psastro/src/psastroMosaicGradients.c	(revision 12711)
+++ /trunk/psastro/src/psastroMosaicGradients.c	(revision 12712)
@@ -15,4 +15,5 @@
         psTrace ("psastro", 4, "Chip %d: %x %x\n", view->chip, chip->file_exists, chip->process);
         if (!chip->process || !chip->file_exists) { continue; }
+	if (!chip->toFPA) { continue; }
 	
 	psRegion *region = pmChipExtent (chip);
Index: /trunk/psastro/src/psastroOneChip.c
===================================================================
--- /trunk/psastro/src/psastroOneChip.c	(revision 12711)
+++ /trunk/psastro/src/psastroOneChip.c	(revision 12712)
@@ -141,5 +141,7 @@
     
     // XXX check if we correctly applied the new transformation:
-    psastroDumpRawstars (rawstars, fpa, chip);
+    if (psTraceGetLevel("psastro.dump") > 0) {
+	psastroDumpRawstars (rawstars, fpa, chip);
+    }
 
     if (psTraceGetLevel("psastro.plot") > 0) {
Index: /trunk/psastro/src/psastroRefstarSubset.c
===================================================================
--- /trunk/psastro/src/psastroRefstarSubset.c	(revision 12711)
+++ /trunk/psastro/src/psastroRefstarSubset.c	(revision 12712)
@@ -23,12 +23,12 @@
   pmLumFunc *rawfunc = psastroLuminosityFunction (rawstars);
   if (rawfunc == NULL) {
-    psError(PSASTRO_ERR_DATA, false, "error measuring rawstar luminosity function\n");
-    return false;
+    psLogMsg ("psastro", 4, "giving up on rawstars for this readout\n");
+    return true;
   }
   psLogMsg ("psastro", 4, "measuring luminosity function for refstars\n");
   pmLumFunc *reffunc = psastroLuminosityFunction (refstars);
   if (reffunc == NULL) {
-    psError(PSASTRO_ERR_DATA, false, "error measuring refstar luminosity function\n");
-    return false;
+    psLogMsg ("psastro", 4, "giving up on refstars for this readout\n");
+    return true;
   }
 
Index: /trunk/psastro/src/psastroUtils.c
===================================================================
--- /trunk/psastro/src/psastroUtils.c	(revision 12711)
+++ /trunk/psastro/src/psastroUtils.c	(revision 12712)
@@ -38,5 +38,6 @@
 	    pmChip *chip = fpa->chips->data[i];
 	    if (!chip->process || !chip->file_exists) { continue; }
-	    
+	    if (!chip->toFPA) { continue; }
+
 	    pixelScale1 = hypot (chip->toFPA->x->coeff[1][0], chip->toFPA->x->coeff[0][1]);
 	    pixelScale2 = hypot (chip->toFPA->y->coeff[1][0], chip->toFPA->y->coeff[0][1]);
@@ -52,4 +53,5 @@
 	pmChip *chip = fpa->chips->data[i];
 	if (!chip->process || !chip->file_exists) { continue; }
+	if (!chip->toFPA) { continue; }
 
 	psPlaneTransform *toFPA = chip->toFPA;
