Index: trunk/Ohana/src/opihi/dvo/dmt.c
===================================================================
--- trunk/Ohana/src/opihi/dvo/dmt.c	(revision 4800)
+++ trunk/Ohana/src/opihi/dvo/dmt.c	(revision 4834)
@@ -17,6 +17,9 @@
   Vector *vec1, *vec2, *vec3, *vec4, *vec5;
 
+  if (!InitPhotcodes ()) return (FALSE);
+
   VarConfig ("CATDIR", "%s", catdir);
-  if (!InitPhotcodes ()) return (FALSE);
+  if (VarConfig ("CATMODE", "%s", catalog.catmode) == NULL) 
+    strcpy (catalog.catmode, "RAW");
 
   vec1 = vec2 = vec3 = vec4 = vec5 = NULL;
