Index: trunk/psastro/src/psastroLoadGhosts.c
===================================================================
--- trunk/psastro/src/psastroLoadGhosts.c	(revision 23810)
+++ trunk/psastro/src/psastroLoadGhosts.c	(revision 24650)
@@ -46,5 +46,5 @@
     pmCell *cell = NULL;
     pmReadout *readout = NULL;
-    float zeropt, exptime;
+    float zeropt, exptime, MAX_MAG;
     psMetadata *md = NULL;
     psPolynomial2D *centerX = NULL;
@@ -71,6 +71,4 @@
     if (!strcasecmp(ghostFile, "NONE")) return true;
 
-    double MAX_MAG = psMetadataLookupF32 (&status, recipe, "GHOST_MAX_MAG");
-
     if (!pmConfigFileRead (&ghostModel, ghostFile, "GHOST MODEL")) {
 	psError(PSASTRO_ERR_CONFIG, true, "Trouble loading ghost model");
@@ -97,5 +95,5 @@
 
     // really error-out here?  or just skip?
-    if (!psastroZeroPointFromRecipe (&zeropt, &exptime, fpa, recipe)) {
+    if (!psastroZeroPointFromRecipe (&zeropt, &exptime, &MAX_MAG, fpa, recipe)) {
         psLogMsg ("psastro", PS_LOG_INFO, "failed to load zeropt data from recipe");
 	goto escape;
@@ -162,8 +160,8 @@
 		    // which encompass the full size of the ghost
 		    pmChip *ghostChip = psastroFindChip (&ghost->chip->x, &ghost->chip->y, fpa, -ghost->srcFP->x, -ghost->srcFP->y);
-		    fprintf (stderr, "raw chip position: %f, %f ", ghost->chip->x, ghost->chip->y);
+		    // fprintf (stderr, "raw chip position: %f, %f ", ghost->chip->x, ghost->chip->y);
 
 		    ghostChip = psastroFindChip (&ghost->chip->x, &ghost->chip->y, fpa, ghost->FP->x, ghost->FP->y);
-		    fprintf (stderr, "-> model chip position: %f, %f\n", ghost->chip->x, ghost->chip->y);
+		    // fprintf (stderr, "-> model chip position: %f, %f\n", ghost->chip->x, ghost->chip->y);
 
 		    if (!ghostChip) goto skip;
