Index: /branches/eam_branch_20080223/Ohana/src/addstar/src/LoadStars.c
===================================================================
--- /branches/eam_branch_20080223/Ohana/src/addstar/src/LoadStars.c	(revision 16653)
+++ /branches/eam_branch_20080223/Ohana/src/addstar/src/LoadStars.c	(revision 16654)
@@ -77,4 +77,14 @@
 
     LoadData (f, file[i], images, Nimages, &stars, Nstars, headers, extsize, headerSets, NheaderSets);
+
+    // XXX add a function to (optionally) load the extended source measurements
+    if (extSources) {
+      // not sure how to link the measurements here to the psf measurements above (though there is an ID in the det list)
+      LoadDataXSRC (f, file[i], images, Nimages, &stars, Nstars, headers, extsize, headerSets, NheaderSets);
+    }
+    if (extFits) {
+      LoadDataXFIT (f, file[i], images, Nimages, &stars, Nstars, headers, extsize, headerSets, NheaderSets);
+    }
+
   }
 
@@ -215,4 +225,7 @@
 }
 
+// XXX this function is somewhat specific to the elixir format output files 
+// it is capable of distinguishing several format versions defined for elixir/psphot
+
 // examine the header sets and set the Image entries for the the valid images
 int LoadData (FILE *f, char *file, Image **images, int *nvalid, Stars **stars, int *Nstars, Header **headers, int *extsize, HeaderSet *headerSets, int Nimages) {
@@ -248,4 +261,8 @@
     images[0][Nvalid].sourceID = 0;
 
+    // XXX EAM : I seemed to have dropped the ability to support TEXT (old-style cmp format files).
+    // I need to detect them here and load them with ReadStarsTEXT instead of calling the code
+    // below.
+
     // XXX use something to set the chip name? EXTNAME?
     if (!strcmp(headerSets[i].exthead, "PHU") && (Nimages == 1)) {
