Index: trunk/Ohana/src/getstar/include/getstar.h
===================================================================
--- trunk/Ohana/src/getstar/include/getstar.h	(revision 4810)
+++ trunk/Ohana/src/getstar/include/getstar.h	(revision 4828)
@@ -22,4 +22,6 @@
 char   GSCFILE[256];
 char   CATDIR[256];
+char   CATMODE[16];    /* raw, mef, split, mysql */
+char   CATFORMAT[16];  /* internal, elixir, loneos, panstarrs */
 double DEFAULT_RADIUS, NSIGMA, SNLIMIT;
 double ZeroPt;
Index: trunk/Ohana/src/getstar/src/ConfigInit.c
===================================================================
--- trunk/Ohana/src/getstar/src/ConfigInit.c	(revision 4810)
+++ trunk/Ohana/src/getstar/src/ConfigInit.c	(revision 4828)
@@ -40,4 +40,6 @@
   ScanConfig (config, "GSCFILE",                "%s", 0, GSCFILE);
   ScanConfig (config, "CATDIR",                 "%s", 0, CATDIR);
+  ScanConfig (config, "CATMODE",                "%s",  0, CATMODE);
+  ScanConfig (config, "CATFORMAT",              "%s",  0, CATFORMAT);
   ScanConfig (config, "MIN_SN_FSTAT",           "%lf", 0, &SNLIMIT);
   ScanConfig (config, "PHOTCODE_FILE",          "%s", 0, PhotCodeFile);
@@ -53,4 +55,7 @@
   ScanConfig (config, "CCDNUM-KEYWORD",         "%s", 0, CCDNumKeyword);
 
+  if (*CATMODE == 0) strcpy (CATMODE, "RAW");
+  if (*CATFORMAT == 0) strcpy (CATFORMAT, "ELIXIR");
+
   if (!LoadPhotcodes (PhotCodeFile)) {
     fprintf (stderr, "error loading photcodes\n");
Index: trunk/Ohana/src/getstar/src/gcatalog.c
===================================================================
--- trunk/Ohana/src/getstar/src/gcatalog.c	(revision 4810)
+++ trunk/Ohana/src/getstar/src/gcatalog.c	(revision 4828)
@@ -5,4 +5,7 @@
   int Nsecfilt;
   char mode;
+
+  /* no autodetect for CATMODE yet */
+  strcpy (catalog[0].catmode, CATMODE);
 
   /* read catalog header */
