Index: /trunk/Ohana/src/uniphot/include/setphot.h
===================================================================
--- /trunk/Ohana/src/uniphot/include/setphot.h	(revision 39355)
+++ /trunk/Ohana/src/uniphot/include/setphot.h	(revision 39356)
@@ -63,5 +63,5 @@
 int          CAM_RESET;
 
-int          SET_GAL_MODEL;
+char        *SET_GAL_MODEL;
 
 int          VERBOSE;
Index: /trunk/Ohana/src/uniphot/src/initialize_setphot.c
===================================================================
--- /trunk/Ohana/src/uniphot/src/initialize_setphot.c	(revision 39355)
+++ /trunk/Ohana/src/uniphot/src/initialize_setphot.c	(revision 39356)
@@ -81,8 +81,15 @@
   }
 
-  SET_GAL_MODEL = FALSE;
+  SET_GAL_MODEL = NULL;
   if ((N = get_argument (argc, argv, "-setgalmodel"))) {
-    SET_GAL_MODEL = TRUE;
-    remove_argument (N, &argc, argv);
+    remove_argument (N, &argc, argv);
+    SET_GAL_MODEL = strcreate (argv[N]);
+    remove_argument (N, &argc, argv);
+
+    if (!InitGalaxyModel (SET_GAL_MODEL)) {
+      fprintf (stderr, "failed to init galaxy model %s\n", SET_GAL_MODEL);
+      fprintf (stderr, "valid models: ROESER, FEAST-HIPPARCOS\n");
+      exit (2);
+    }
   }
 
Index: /trunk/Ohana/src/uniphot/src/initialize_setphot_client.c
===================================================================
--- /trunk/Ohana/src/uniphot/src/initialize_setphot_client.c	(revision 39355)
+++ /trunk/Ohana/src/uniphot/src/initialize_setphot_client.c	(revision 39356)
@@ -71,8 +71,15 @@
   CAM_PHOTOM_FILE = NULL;
 
-  SET_GAL_MODEL = FALSE;
+  SET_GAL_MODEL = NULL;
   if ((N = get_argument (argc, argv, "-setgalmodel"))) {
-    SET_GAL_MODEL = TRUE;
     remove_argument (N, &argc, argv);
+    SET_GAL_MODEL = strcreate (argv[N]);
+    remove_argument (N, &argc, argv);
+
+    if (!InitGalaxyModel (SET_GAL_MODEL)) {
+      fprintf (stderr, "failed to init galaxy model %s\n", SET_GAL_MODEL);
+      fprintf (stderr, "valid models: ROESER, FEAST-HIPPARCOS\n");
+      exit (2);
+    }
   }
 
Index: /trunk/Ohana/src/uniphot/src/update_dvo_setphot.c
===================================================================
--- /trunk/Ohana/src/uniphot/src/update_dvo_setphot.c	(revision 39355)
+++ /trunk/Ohana/src/uniphot/src/update_dvo_setphot.c	(revision 39356)
@@ -174,5 +174,5 @@
     if (CAM_ASTROM_FILE)  { strextend (&command, "-CAM %s", CAM_ASTROM_FILE); }
 
-    if (SET_GAL_MODEL)    { strextend (&command, "-setgalmodel"); }
+    if (SET_GAL_MODEL)    { strextend (&command, "-setgalmodel %s", SET_GAL_MODEL); }
 
     if (KH_RESET)      	  { strextend (&command, "-KH-reset"); }
