Index: /branches/eam_branches/ipp-20220316/psphot/src/psphotChoosePSF.c
===================================================================
--- /branches/eam_branches/ipp-20220316/psphot/src/psphotChoosePSF.c	(revision 42186)
+++ /branches/eam_branches/ipp-20220316/psphot/src/psphotChoosePSF.c	(revision 42187)
@@ -594,9 +594,22 @@
     psVector *psfExtra2 = psVectorAllocEmpty (100, PS_DATA_F32);
 
+    // count how many PSF stars are defined
+    int nPSFstars = 0; // count the number of PSF stars
     for (int i = 0; i < sources->n; i++) {
-
 	pmSource *source = sources->data[i];
-
 	if (!(source->mode & PM_SOURCE_MODE_PSFSTAR)) continue;
+    }
+
+    for (int i = 0; i < sources->n; i++) {
+
+	pmSource *source = sources->data[i];
+
+	// If no sources are PSFSTARs, then let's just use all with S/N > 0.1.
+	// (This can happen if all are supplied)
+	if (nPSFstars) {
+	    if (!(source->mode & PM_SOURCE_MODE_PSFSTAR)) continue;
+	} else {
+	    if (source->psfMagErr > 0.1) continue;
+	}
 
 	float xc = source->peak->xf;
Index: /branches/eam_branches/ipp-20220316/psphot/src/psphotSkyReplace.c
===================================================================
--- /branches/eam_branches/ipp-20220316/psphot/src/psphotSkyReplace.c	(revision 42186)
+++ /branches/eam_branches/ipp-20220316/psphot/src/psphotSkyReplace.c	(revision 42187)
@@ -4,4 +4,7 @@
 {
     bool status = true;
+
+    fprintf (stdout, "\n");
+    psLogMsg ("psphot", PS_LOG_INFO, "--- psphot Replace Sky ---");
 
     int num = psphotFileruleCount(config, filerule);
