Changeset 37602 for branches/eam_branches/ipp-20140904/Ohana/src/uniphot/src/initialize_setgalmodel.c
- Timestamp:
- Nov 14, 2014, 8:40:19 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20140904/Ohana/src/uniphot/src/initialize_setgalmodel.c
r37434 r37602 2 2 3 3 void usage_setgalmodel () { 4 fprintf (stderr, "USAGE: setgalmodel (corrections)[options]\n");4 fprintf (stderr, "USAGE: setgalmodel [options]\n"); 5 5 fprintf (stderr, " options:\n"); 6 6 fprintf (stderr, " -v : verbose mode\n"); … … 43 43 exit (1); 44 44 } 45 46 // XXX add to config? 47 if (!InitGalaxyModel ("ROESER")) { 48 fprintf (stderr, "failed to init galaxy model\n"); 49 exit (2); 50 } 45 51 } 46 52 … … 83 89 if ((N = get_argument (argc, argv, "-v"))) { 84 90 VERBOSE = TRUE; 91 remove_argument (N, &argc, argv); 92 } 93 94 TESTING = FALSE; 95 if ((N = get_argument (argc, argv, "-testing"))) { 96 TESTING = TRUE; 85 97 remove_argument (N, &argc, argv); 86 98 } … … 118 130 } 119 131 120 if (argc != 2) usage_setgalmodel();132 if (argc != 1) usage_setgalmodel(); 121 133 122 134 return (TRUE); … … 124 136 125 137 void usage_setgalmodel_client () { 126 fprintf (stderr, "USAGE: setgalmodel_client (correction)-hostID (hostID) -catdir (catdir) -hostdir (hostdir) [options]\n");138 fprintf (stderr, "USAGE: setgalmodel_client -hostID (hostID) -catdir (catdir) -hostdir (hostdir) [options]\n"); 127 139 fprintf (stderr, " options:\n"); 128 140 fprintf (stderr, " -region Rmin Rmax Dmin Dmax\n"); … … 158 170 exit (1); 159 171 } 172 173 // XXX add to config? 174 if (!InitGalaxyModel ("ROESER")) { 175 fprintf (stderr, "failed to init galaxy model\n"); 176 exit (2); 177 } 160 178 } 161 179 … … 223 241 if (!CATDIR) usage_setgalmodel_client(); 224 242 225 if (argc != 2) usage_setgalmodel_client();243 if (argc != 1) usage_setgalmodel_client(); 226 244 return (TRUE); 227 245 }
Note:
See TracChangeset
for help on using the changeset viewer.
