Index: /branches/eam_branches/ipp-20150112/Ohana/src/relphot/src/relphot_synthphot_catalog.c
===================================================================
--- /branches/eam_branches/ipp-20150112/Ohana/src/relphot/src/relphot_synthphot_catalog.c	(revision 37876)
+++ /branches/eam_branches/ipp-20150112/Ohana/src/relphot/src/relphot_synthphot_catalog.c	(revision 37877)
@@ -86,5 +86,5 @@
       int Nsec = i - 1;
       float *value = (float *) zpts->matrix[Nsec].buffer;
-      float ZP = value[Npix];
+      float ZP = !isnan(value[Npix]) ? value[Npix] : 0.0;
       secfilt[Nsec].M  	 = measure[measSYN[i]].M + ZP;
       secfilt[Nsec].dM 	 = 0.6;
