Index: trunk/Ohana/src/opihi/dvo/mextract.c
===================================================================
--- trunk/Ohana/src/opihi/dvo/mextract.c	(revision 34260)
+++ trunk/Ohana/src/opihi/dvo/mextract.c	(revision 34749)
@@ -108,5 +108,5 @@
   // this does all the work of re-packaging the command, calling it on the remote machines, then loading in the results
   if (PARALLEL && !HOST_ID) {
-    int status = HostTableParallelOps (argc, argv, RESULT_FILE, 0, VERBOSE);
+    int status = HostTableParallelOps (argc, argv, RESULT_FILE, TRUE, 0, VERBOSE);
 
     dbFreeFields (fields, Nfields);
@@ -313,7 +313,8 @@
     gprint (GP_ERR, "  Npos  : number of measurments used for astrometry\n");
 
-    gprint (GP_ERR, "  objflags  : object flags\n");
-    gprint (GP_ERR, "  photflags : detection flags from image analysis\n");
-    gprint (GP_ERR, "  dbflags : detection flags from database analysis\n");
+    gprint (GP_ERR, "  objflags  : object flags [alias: obj_flags]\n");
+    gprint (GP_ERR, "  secflags  : average photometry flags [aliases: obj_phot_flags, sec_flags, secfilt_flags]\n");
+    gprint (GP_ERR, "  photflags : detection flags from image analysis [alias: phot_flags]\n");
+    gprint (GP_ERR, "  dbflags : detection flags from database analysis [alias: db_flags]\n");
 
     gprint (GP_ERR, "  obj_flags : object flags\n");
@@ -321,4 +322,73 @@
     gprint (GP_ERR, "  db_flags : detection flags from database analysis\n");
 
+    gprint (GP_ERR, "  airmass : airmass of detection\n");
+    gprint (GP_ERR, "  meas_airmass : airmass of exposure\n");
+    gprint (GP_ERR, "  alt : altitude of detection\n");
+    gprint (GP_ERR, "  az  : azimuth of detection\n");
+    gprint (GP_ERR, "  exptime : exposure time [s]\n");
+    gprint (GP_ERR, "  photcode : photcode \n");
+    gprint (GP_ERR, "  photcode:equiv : equivalent average photcode \n");
+    gprint (GP_ERR, "  photcode:c : zero point of photcode \n");
+    gprint (GP_ERR, "  photcode:klam : airmass slope of photcode \n");
+    gprint (GP_ERR, "  time : time of exposure [Seconds since Jan 1, 1970/\n");
+    gprint (GP_ERR, "  fwhm : fwhm (average) of fitted PSF [pixels]\n");
+    gprint (GP_ERR, "  fwhm_maj : fwhm (major axis) of fitted PSF [pixels]\n");
+    gprint (GP_ERR, "  fwhm_min : fwhm (minor axis) of fitted PSF [pixels]\n");
+    gprint (GP_ERR, "  theta : position angle of fitted PSF\n");
+    gprint (GP_ERR, "  posangle : position angle of detector at measurement [degrees]\n");
+    gprint (GP_ERR, "  platescale : plate scale of detector at measurement [arcsec/pixel] (negative = sky parity)\n");
+
+    gprint (GP_ERR, "  Mxx : second moment in X [pixels^2]\n");
+    gprint (GP_ERR, "  Mxy : second moment cross term [pixels^2]\n");
+    gprint (GP_ERR, "  Myy : second moment in Y [pixels^2]\n");
+
+    gprint (GP_ERR, "  xccd : ccd x position\n");
+    gprint (GP_ERR, "  yccd : ccd y position\n");
+    gprint (GP_ERR, "  xoff : ccd x correction\n");
+    gprint (GP_ERR, "  yoff : ccd y correction\n");
+    gprint (GP_ERR, "  xccd:err : ccd x position error\n");
+    gprint (GP_ERR, "  yccd:err : ccd y position error\n");
+
+    gprint (GP_ERR, "  pos_sys_err : systematic position error\n");
+
+    gprint (GP_ERR, "  xmosaic : mosaic x position\n");
+    gprint (GP_ERR, "  ymosaic : mosaic y position\n");
+
+    gprint (GP_ERR, "  xchip : chip x position (= ccd position)\n");
+    gprint (GP_ERR, "  ychip : chip y position (= ccd position)\n");
+    gprint (GP_ERR, "  xfpa : fpa x position (= mosaic position)\n");
+    gprint (GP_ERR, "  yfpa : fpa y position (= mosaic position)\n");
+
+    gprint (GP_ERR, "  detID : ID of detection (unique on source image)\n");
+    gprint (GP_ERR, "  objID : object ID (32 bit, unique in catalog)\n");
+    gprint (GP_ERR, "  catID : catalog ID (32 bit)\n");
+    gprint (GP_ERR, "  imageID : ID of source image (32 bit)\n");
+    gprint (GP_ERR, "  externID : externID of source image (32 bit)\n");
+
+    gprint (GP_ERR, "  psf_qf : PSF quality factor (psf-weighted mask fraction)\n");
+    gprint (GP_ERR, "  psf_qf_perfect : PSF quality factor, perfect mask version (psf-weighted mask fraction)\n");
+
+    gprint (GP_ERR, "  psf_chisq : PSF fit chi square\n");
+    gprint (GP_ERR, "  psf_ndof : PSF number of degrees of freedom\n");
+    gprint (GP_ERR, "  psf_npix : PSF number of pixels\n");
+
+    gprint (GP_ERR, "  cr_nsigma : Nsigma deviation towards cosmic ray\n");
+    gprint (GP_ERR, "  ext_nsigma : Nsigma deviation towards extended source\n");
+
+    gprint (GP_ERR, "  sky : sky model flux at measurement location\n");
+    gprint (GP_ERR, "  sky_err : sky model stdev at measurement location\n");
+
+    gprint (GP_ERR, "  Mcal_offset : difference wrt nominal zero point (clouds are positive)\n");
+    gprint (GP_ERR, "  flat : flat-field correction (measure.Mcal - image.Mcal)\n");
+
+    gprint (GP_ERR, "  center_offset : distance to image center\n");
+    gprint (GP_ERR, "  flux : PSF flux\n");
+    gprint (GP_ERR, "  flux_err : PSF flux error\n");
+    gprint (GP_ERR, "  flux_psf : PSF flux\n");
+    gprint (GP_ERR, "  flux_psf_err : PSF flux error\n");
+    gprint (GP_ERR, "  flux_kron : KRON flux\n");
+    gprint (GP_ERR, "  flux_kron_err : KRON flux error\n");
+
+    gprint (GP_ERR, "  --- the following fields are selected by giving a photcode with the attached ending\n");
     gprint (GP_ERR, "  <photcode>:ave : average magnitude for photcode (or equivalent)\n");
     gprint (GP_ERR, "  <photcode>:ref : reference magnitude system for photcode (or equivalent)\n");
@@ -335,49 +405,19 @@
     gprint (GP_ERR, "  <photcode>:ncode : number of measurements in photcode\n");
     gprint (GP_ERR, "  <photcode>:nphot : number of measurements used for average magnitude\n");
-    gprint (GP_ERR, "  airmass : airmass of detection\n");
-    gprint (GP_ERR, "  alt : altitude of detection\n");
-    gprint (GP_ERR, "  az  : azimuth of detection\n");
-    gprint (GP_ERR, "  exptime : exposure time [s]\n");
-    gprint (GP_ERR, "  photcode : photcode \n");
-    gprint (GP_ERR, "  photcode:equiv : equivalent average photcode \n");
-    gprint (GP_ERR, "  time : time of exposure [Seconds since Jan 1, 1970/\n");
-    gprint (GP_ERR, "  fwhm : fwhm (average) of fitted PSF [pixels]\n");
-    gprint (GP_ERR, "  fwhm_maj : fwhm (major axis) of fitted PSF [pixels]\n");
-    gprint (GP_ERR, "  fwhm_min : fwhm (minor axis) of fitted PSF [pixels]\n");
-    gprint (GP_ERR, "  theta : position angle of fitted PSF\n");
-    gprint (GP_ERR, "  posangle : position angle of detector at measurement [degrees]\n");
-    gprint (GP_ERR, "  platescale : plate scale of detector at measurement [arcsec/pixel] \n");
-
-    gprint (GP_ERR, "  psf_qf : PSF quality factor (psf-weighted mask fraction)\n");
-    gprint (GP_ERR, "  psf_chisq : PSF fit chi square\n");
-    gprint (GP_ERR, "  psf_ndof : PSF number of degrees of freedom\n");
-    gprint (GP_ERR, "  psf_npix : PSF number of pixels\n");
-
-    gprint (GP_ERR, "  cr_nsigma : Nsigma deviation towards cosmic ray\n");
-    gprint (GP_ERR, "  ext_nsigma : Nsigma deviation towards extended source\n");
-
-    gprint (GP_ERR, "  Mxx : second moment in X [pixels^2]\n");
-    gprint (GP_ERR, "  Mxy : second moment cross term [pixels^2]\n");
-    gprint (GP_ERR, "  Myy : second moment in Y [pixels^2]\n");
-
-    gprint (GP_ERR, "  xccd : ccd x position\n");
-    gprint (GP_ERR, "  yccd : ccd y position\n");
-    gprint (GP_ERR, "  xccd:err : ccd x position error\n");
-    gprint (GP_ERR, "  yccd:err : ccd y position error\n");
-    gprint (GP_ERR, "  xmosaic : mosaic x position\n");
-    gprint (GP_ERR, "  ymosaic : mosaic y position\n");
-    gprint (GP_ERR, "  xchip : chip x position (= ccd position)\n");
-    gprint (GP_ERR, "  ychip : chip y position (= ccd position)\n");
-    gprint (GP_ERR, "  xfpa : fpa x position (= mosaic position)\n");
-    gprint (GP_ERR, "  yfpa : fpa y position (= mosaic position)\n");
-
-    gprint (GP_ERR, "  detID : ID of detection (unique on source image)\n");
-    gprint (GP_ERR, "  objID : object ID (32 bit, unique in catalog)\n");
-    gprint (GP_ERR, "  catID : catalog ID (32 bit)\n");
-    gprint (GP_ERR, "  imageID : ID of source image (32 bit)\n");
-    gprint (GP_ERR, "  externID : externID of source image (32 bit)\n");
-
-    gprint (GP_ERR, "  Mcal_offset : difference wrt nominal zero point (clouds are positive)\n");
-    gprint (GP_ERR, "  flat : flat-field correction (measure.Mcal - image.Mcal)\n");
+
+    gprint (GP_ERR, "  <photcode>:aperinst : instrumental aperture magnitude\n");
+    gprint (GP_ERR, "  <photcode>:aper_inst : instrumental aperture magnitude\n");
+    gprint (GP_ERR, "  <photcode>:kron : kron mag\n");
+    gprint (GP_ERR, "  <photcode>:kroninst : instrumental kron mag\n");
+    gprint (GP_ERR, "  <photcode>:kron_inst : instrumental kron mag\n");
+    gprint (GP_ERR, "  <photcode>:kronerr : kron mag error\n");
+
+    gprint (GP_ERR, "  <photcode>:photflags : photometry flags for measurements\n");
+    gprint (GP_ERR, "  <photcode>:flags : photometry flags for measurements\n");
+    gprint (GP_ERR, "  <photcode>:fluxpsf : average psf flux\n");
+    gprint (GP_ERR, "  <photcode>:fluxpsferr : average psf flux error\n");
+    gprint (GP_ERR, "  <photcode>:fluxkron : average kron flux\n");
+    gprint (GP_ERR, "  <photcode>:fluxkronerr : average kron flux error\n");
+
     return (FALSE);
   }
