Index: trunk/Ohana/src/libautocode/Makefile.Targets
===================================================================
--- trunk/Ohana/src/libautocode/Makefile.Targets	(revision 12332)
+++ trunk/Ohana/src/libautocode/Makefile.Targets	(revision 12461)
@@ -29,4 +29,5 @@
 $(ASRC)/photreg.$(ARCH).o \
 $(ASRC)/photreg-old.$(ARCH).o \
+$(ASRC)/ps1_dev_0.$(ARCH).o \
 $(ASRC)/smpdata.$(ARCH).o \
 $(ASRC)/spectrum.$(ARCH).o \
@@ -66,4 +67,5 @@
 $(AINC)/photreg.h \
 $(AINC)/photreg-old.h \
+$(AINC)/ps1_dev_0.h \
 $(AINC)/smpdata.h \
 $(AINC)/spectrum.h \
Index: trunk/Ohana/src/libautocode/def/Stars.d
===================================================================
--- trunk/Ohana/src/libautocode/def/Stars.d	(revision 12332)
+++ trunk/Ohana/src/libautocode/def/Stars.d	(revision 12461)
@@ -2,8 +2,10 @@
 EXTNAME STARS
 TYPE    BINTABLE
-SIZE    188
+SIZE    232
 
 FIELD     X,                X,          double,    x coordinate on image,	     pixels
 FIELD     Y,                Y,          double,    y coordinate on image,	     pixels
+FIELD     dX,               dX,         double,    x coordinate error,	             pixels
+FIELD     dY,               dY,         double,    y coordinate error,  	     pixels
 FIELD     R,                R,          double,    ra coordinate on sky,	     decimal degrees
 FIELD     D,                D,          double,    dec coordinate on sky,	     decimal degrees
@@ -19,4 +21,5 @@
 FIELD     dM,               DM,         double,    error on mag
 FIELD     sky,              SKY,        double,    local sky counts
+FIELD     dsky,             dSKY,       double,    local sky error counts
 FIELD     fx,               FX,         double,    object FWHM x-dir,		     pixels?
 FIELD     fy,               FY,         double,    object FWHM y-dir,		     pixels?
@@ -24,12 +27,24 @@
 FIELD     Mgal,             MGAL,       double,    alternative (galaxy) magnitude
 FIELD     Map,              MAP,        double,    alternative (aperture) magnitude
+FIELD     Mpeak,            MPEAK,      double,    alternative (peak) magnitude
+FIELD     detID,            ID,         int,       detection identifier
 FIELD     found,            FOUND,      int,       found in database catalog?
 FIELD     t,                T,          e_time,    date/time of exposure (UNIX)
 FIELD     dt,               EXPTIME,    float,     exposure time,                    2.5*log(exptime)
-FIELD     code,             CODE,       short,     .
-FIELD     dophot,           DOPHOT,     char,      dophot type code
-FIELD     dummy,            DUMMY,      char[5],   .
+FIELD     psfProb,          PSF_PROB,   float
+FIELD     psfQual,          PSF_QUAL,   float
 FIELD     Mcal,             MCAL,       float,     image cal mag,	             mag
 FIELD     airmass,          AIRMASS,    float,     (airmass - 1),		     airmass
+FIELD     code,             CODE,       short
+FIELD     nFrames,          N_FRAMES,   short
+FIELD     dophot,           DOPHOT,     char,      dophot type code
+FIELD     dummy,            DUMMY,      char[3]
+
+# XXX I'm going to need azimuth (or load from image header?)
+
+# double:   24 * 8 : 192
+# int/float: 8 * 4 :  32
+# short:     2 * 2 :   4
+# char:      4 * 1 :   4
 
 # this structure is only used internally and for interprocess communication (addstar)
Index: trunk/Ohana/src/libautocode/def/ps1_dev_0.d
===================================================================
--- trunk/Ohana/src/libautocode/def/ps1_dev_0.d	(revision 12461)
+++ trunk/Ohana/src/libautocode/def/ps1_dev_0.d	(revision 12461)
@@ -0,0 +1,24 @@
+# name of structure type
+STRUCT  PS1_DEV_0
+EXTNAME PS1_DEV_0
+TYPE    BINTABLE
+SIZE    64
+
+# elements of data structure / FITS table
+FIELD detID,    IPP_IDET,      	  unsigned int, detection ID
+FIELD X,      	X_PSF,    	  float,    x coord,              pixels
+FIELD Y,      	Y_PSF,    	  float,    y coord,              pixels
+FIELD dX,      	X_PSF_SIG,    	  float,    x coord error,        pixels
+FIELD dY,      	Y_PSF_SIG,    	  float,    y coord error,        pixels
+FIELD M,      	PSF_INST_MAG,     float,    inst mags,            mags
+FIELD dM,     	PSF_INST_MAG_SIG, float,    inst mag error,       mags
+FIELD Mpeak,    PEAK_FLUX_AS_MAG, float,    inst mag error,       mags
+FIELD sky,    	SKY,              float,    sky flux,             cnts/sec
+FIELD dSky,    	SKY_SIG,          float,    sky flux errorf       cnts/sec
+FIELD psfProb,  PSF_PROBABILITY,  float,    psf probability
+FIELD fx,     	PSF_WIDTH_X,      float,    semi-major,           pixels
+FIELD fy,     	PSF_WIDTH_Y,      float,    semi-minor,           pixels
+FIELD df,     	PSF_THETA,        float,    ellipse angle,        degrees
+FIELD psfQual, 	PSF_QF,           float,    quality factor
+FIELD nFrames, 	N_FRAMES,         short,    images overlapping peak
+FIELD dummy,  	DUMMY,            short,    padding
