Index: trunk/Ohana/src/opihi/dvo/pmeasure.c
===================================================================
--- trunk/Ohana/src/opihi/dvo/pmeasure.c	(revision 4800)
+++ trunk/Ohana/src/opihi/dvo/pmeasure.c	(revision 4833)
@@ -19,7 +19,9 @@
 
   Ngraph = -1;
+  if (!InitPhotcodes ()) return (FALSE);
   if (!GetGraph (&graphmode, NULL, &Ngraph)) return (FALSE);
   if (VarConfig ("CATDIR", "%s", catdir) == NULL) return (FALSE);
-  if (!InitPhotcodes ()) return (FALSE);
+  if (VarConfig ("CATMODE", "%s", catalog.catmode) == NULL) 
+    strcpy (catalog.catmode, "RAW");
 
   regions = (RegionFile *) NULL;
