Index: trunk/Ohana/src/relphot/src/load_catalogs.c
===================================================================
--- trunk/Ohana/src/relphot/src/load_catalogs.c	(revision 38470)
+++ trunk/Ohana/src/relphot/src/load_catalogs.c	(revision 38471)
@@ -42,11 +42,8 @@
     char hostfile[1024];
     snprintf (hostfile, 1024, "%s/%s.cpt", hostpath, skylist[0].regions[i]->name);
+    dvo_catalog_init (&tcatalog, TRUE);
     tcatalog.filename    = hostID ? hostfile : skylist[0].filename[i];
     tcatalog.catflags    = DVO_LOAD_AVERAGE | DVO_LOAD_MEASURE | DVO_LOAD_SECFILT;    // don't need to load all data at this point
     tcatalog.Nsecfilt    = GetPhotcodeNsecfilt ();               // set the desired number in case we need to create the catalog
-
-    // tcatalog.catformat   = dvo_catalog_catformat (CATFORMAT);    // set the default catformat from config data
-    // tcatalog.catmode     = dvo_catalog_catmode (CATMODE);        // set the default catmode from config data
-    // tcatalog.catcompress = dvo_catalog_catcompress (CATCOMPRESS); // set the default catcompress from config data
 
     if (!dvo_catalog_open (&tcatalog, skylist[0].regions[i], VERBOSE2, "r")) {
Index: trunk/Ohana/src/relphot/src/reload_catalogs.c
===================================================================
--- trunk/Ohana/src/relphot/src/reload_catalogs.c	(revision 38470)
+++ trunk/Ohana/src/relphot/src/reload_catalogs.c	(revision 38471)
@@ -49,4 +49,6 @@
     char hostfile[1024];
     snprintf (hostfile, 1024, "%s/%s.cpt", hostpath, skylist[0].regions[i]->name);
+
+    dvo_catalog_init (&catalog, TRUE);
     catalog.filename = hostID ? hostfile : skylist[0].filename[i];
 
@@ -59,7 +61,4 @@
     TIMESTAMP(time1);
 
-    // catalog.catformat   = dvo_catalog_catformat (CATFORMAT);    // set the default catformat from config data
-    // catalog.catmode     = dvo_catalog_catmode (CATMODE);        // set the default catmode from config data
-    // catalog.catcompress = dvo_catalog_catcompress (CATCOMPRESS); // set the default catcompress from config data
     catalog.catflags    = DVO_LOAD_AVERAGE | DVO_LOAD_MEASURE | DVO_LOAD_MISSING | DVO_LOAD_SECFILT;
     catalog.Nsecfilt    = GetPhotcodeNsecfilt ();               // set the desired number in case we need to create the catalog
Index: trunk/Ohana/src/relphot/src/relphot_objects.c
===================================================================
--- trunk/Ohana/src/relphot/src/relphot_objects.c	(revision 38470)
+++ trunk/Ohana/src/relphot/src/relphot_objects.c	(revision 38471)
@@ -42,8 +42,7 @@
     char hostfile[1024];
     snprintf (hostfile, 1024, "%s/%s.cpt", hostpath, skylist[0].regions[i]->name);
+
+    dvo_catalog_init (&catalog, TRUE);
     catalog.filename    = hostID ? hostfile : skylist[0].filename[i];
-    // catalog.catformat   = dvo_catalog_catformat (CATFORMAT);    // set the default catformat from config data
-    // catalog.catmode     = dvo_catalog_catmode (CATMODE);        // set the default catmode from config data
-    // catalog.catcompress = dvo_catalog_catcompress (CATCOMPRESS); // set the default catcompress from config data
     catalog.catflags    = DVO_LOAD_AVERAGE | DVO_LOAD_MEASURE | DVO_LOAD_MISSING | DVO_LOAD_SECFILT;
     catalog.Nsecfilt    = GetPhotcodeNsecfilt ();
Index: trunk/Ohana/src/relphot/src/relphot_synthphot.c
===================================================================
--- trunk/Ohana/src/relphot/src/relphot_synthphot.c	(revision 38470)
+++ trunk/Ohana/src/relphot/src/relphot_synthphot.c	(revision 38471)
@@ -41,8 +41,7 @@
     char hostfile[1024];
     snprintf (hostfile, 1024, "%s/%s.cpt", hostpath, skylist[0].regions[i]->name);
+
+    dvo_catalog_init (&catalog, TRUE);
     catalog.filename    = hostID ? hostfile : skylist[0].filename[i];
-    // catalog.catformat   = dvo_catalog_catformat (CATFORMAT);    // set the default catformat from config data
-    // catalog.catmode     = dvo_catalog_catmode (CATMODE);        // set the default catmode from config data
-    // catalog.catcompress = dvo_catalog_catcompress (CATCOMPRESS); // set the default catcompress from config data
     catalog.catflags    = DVO_LOAD_AVERAGE | DVO_LOAD_MEASURE | DVO_LOAD_SECFILT;
     catalog.Nsecfilt    = GetPhotcodeNsecfilt ();
Index: trunk/Ohana/src/relphot/src/setMrelCatalog.c
===================================================================
--- trunk/Ohana/src/relphot/src/setMrelCatalog.c	(revision 38470)
+++ trunk/Ohana/src/relphot/src/setMrelCatalog.c	(revision 38471)
@@ -128,5 +128,6 @@
 
     // these bits should not be set unless we use them in this pass
-    measure[k].dbFlags &= ~(ID_MEAS_PHOTOM_PSF | ID_MEAS_PHOTOM_APER | ID_MEAS_PHOTOM_KRON);
+    // (note that we can only un-set them in the final pass when we actually have measure, not just measureT
+    if (measure) measure[k].dbFlags &= ~(ID_MEAS_PHOTOM_PSF | ID_MEAS_PHOTOM_APER | ID_MEAS_PHOTOM_KRON);
 
     // skip measurements that do not have a valid photcode (raise exception?)
