Index: /branches/eam_branches/ipp-20120805/psModules/src/objects/Makefile.am
===================================================================
--- /branches/eam_branches/ipp-20120805/psModules/src/objects/Makefile.am	(revision 34374)
+++ /branches/eam_branches/ipp-20120805/psModules/src/objects/Makefile.am	(revision 34375)
@@ -26,4 +26,5 @@
 	pmSourceDiffStats.c \
 	pmSourceExtendedPars.c \
+	pmSourceSatstar.c \
 	pmSourceUtils.c \
 	pmSourceSky.c \
@@ -100,4 +101,5 @@
 	pmSourceDiffStats.h \
 	pmSourceExtendedPars.h \
+	pmSourceSatstar.h \
 	pmSourceUtils.h \
 	pmSourceSky.h \
Index: /branches/eam_branches/ipp-20120805/psModules/src/objects/pmSource.c
===================================================================
--- /branches/eam_branches/ipp-20120805/psModules/src/objects/pmSource.c	(revision 34374)
+++ /branches/eam_branches/ipp-20120805/psModules/src/objects/pmSource.c	(revision 34375)
@@ -40,4 +40,5 @@
 #include "pmSourceDiffStats.h"
 #include "pmSourcePhotometry.h"
+#include "pmSourceSatstar.h"
 #include "pmSource.h"
 
@@ -61,9 +62,9 @@
     psFree(tmp->modelFits);
     psFree(tmp->extFitPars);
+    psFree(tmp->blends);
+    psFree(tmp->satstar);
     psFree(tmp->extpars);
-    psFree(tmp->moments);
     psFree(tmp->diffStats);
     psFree(tmp->radialAper);
-    psFree(tmp->blends);
     psTrace("psModules.objects", 10, "---- end ----\n");
 }
@@ -160,4 +161,5 @@
     source->region = psRegionSet(NAN, NAN, NAN, NAN);
     source->blends = NULL;
+    source->satstar = NULL;
     source->extpars = NULL;
     source->diffStats = NULL;
Index: /branches/eam_branches/ipp-20120805/psModules/src/objects/pmSource.h
===================================================================
--- /branches/eam_branches/ipp-20120805/psModules/src/objects/pmSource.h	(revision 34374)
+++ /branches/eam_branches/ipp-20120805/psModules/src/objects/pmSource.h	(revision 34375)
@@ -114,4 +114,5 @@
     psRegion region;                    ///< area on image covered by selected pixels
     psArray *blends;                    ///< collection of sources thought to be confused with object
+    pmSourceSatstar *satstar;
     pmSourceExtendedPars *extpars;      ///< extended source parameters
     pmSourceDiffStats *diffStats;       ///< extra parameters for difference detections
Index: /branches/eam_branches/ipp-20120805/psModules/src/objects/pmSourceSatstar.c
===================================================================
--- /branches/eam_branches/ipp-20120805/psModules/src/objects/pmSourceSatstar.c	(revision 34375)
+++ /branches/eam_branches/ipp-20120805/psModules/src/objects/pmSourceSatstar.c	(revision 34375)
@@ -0,0 +1,46 @@
+/** @file  pmSourceSatstar.c
+ *
+ *  Functions to manage saturated star profiles
+ *  @author EAM, IfA
+ *
+ *  @version $Revision: 1.5 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2009-02-06 02:31:25 $
+ *
+ *  Copyright 2012 University of Hawaii
+ */
+
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
+#include <pslib.h>
+#include "pmSourceSatstar.h"
+
+// pmSourceSatstar defines the profile
+static void pmSourceSatstarFree(pmSourceSatstar *satstar)
+{
+    if (!satstar) return;
+    psFree(satstar->logRmodel);
+    psFree(satstar->logFmodel);
+}
+
+pmSourceSatstar *pmSourceSatstarAlloc()
+{
+    pmSourceSatstar *satstar = (pmSourceSatstar *)psAlloc(sizeof(pmSourceSatstar));
+    psMemSetDeallocator(satstar, (psFreeFunc) pmSourceSatstarFree);
+
+    satstar->logRmodel = NULL;
+    satstar->logFmodel = NULL;
+
+    satstar->Xo = NAN;
+    satstar->Yo = NAN;
+    satstar->Rmax = NAN;
+
+    return satstar;
+}
+
+bool psMemCheckSourceSatstar(psPtr ptr)
+{
+    PS_ASSERT_PTR(ptr, false);
+    return ( psMemGetDeallocator(ptr) == (psFreeFunc) pmSourceSatstarFree);
+}
Index: /branches/eam_branches/ipp-20120805/psModules/src/objects/pmSourceSatstar.h
===================================================================
--- /branches/eam_branches/ipp-20120805/psModules/src/objects/pmSourceSatstar.h	(revision 34375)
+++ /branches/eam_branches/ipp-20120805/psModules/src/objects/pmSourceSatstar.h	(revision 34375)
@@ -0,0 +1,27 @@
+/* @file  pmSourceSatstar.h
+ *
+ * @author EAM, IfA
+ * @date $Date: 2012-08-30 $
+ * Copyright 2012 University of Hawaii
+ */
+
+# ifndef PM_SOURCE_SATSTAR_H
+# define PM_SOURCE_SATSTAR_H
+
+/// @addtogroup Objects Object Detection / Analysis Functions
+/// @{
+
+typedef struct {
+    float Xo;
+    float Yo;
+    float Rmax;
+    psVector *logFmodel;
+    psVector *logRmodel;
+} pmSourceSatstar;
+
+
+pmSourceSatstar *pmSourceSatstarAlloc();
+bool psMemCheckSourceSatstar(psPtr ptr);
+
+/// @}
+# endif /* PM_SOURCE_SATSTAR_H */
