IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 14, 2014, 8:40:19 PM (12 years ago)
Author:
eugene
Message:

move galaxy parameter functions to libdvo

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20140904/Ohana/src/uniphot/src/initialize_setgalmodel.c

    r37434 r37602  
    22
    33void usage_setgalmodel () {
    4     fprintf (stderr, "USAGE: setgalmodel (corrections) [options]\n");
     4    fprintf (stderr, "USAGE: setgalmodel [options]\n");
    55    fprintf (stderr, "  options:\n");
    66    fprintf (stderr, "    -v : verbose mode\n");
     
    4343    exit (1);
    4444  }
     45
     46  // XXX add to config?
     47  if (!InitGalaxyModel ("ROESER")) {
     48    fprintf (stderr, "failed to init galaxy model\n");
     49    exit (2);
     50  }
    4551}
    4652
     
    8389  if ((N = get_argument (argc, argv, "-v"))) {
    8490    VERBOSE = TRUE;
     91    remove_argument (N, &argc, argv);
     92  }
     93
     94  TESTING = FALSE;
     95  if ((N = get_argument (argc, argv, "-testing"))) {
     96    TESTING = TRUE;
    8597    remove_argument (N, &argc, argv);
    8698  }
     
    118130  }
    119131
    120   if (argc != 2) usage_setgalmodel();
     132  if (argc != 1) usage_setgalmodel();
    121133
    122134  return (TRUE);
     
    124136
    125137void 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");
    127139  fprintf (stderr, "  options:\n");
    128140  fprintf (stderr, "    -region Rmin Rmax Dmin Dmax\n");
     
    158170    exit (1);
    159171  }
     172
     173  // XXX add to config?
     174  if (!InitGalaxyModel ("ROESER")) {
     175    fprintf (stderr, "failed to init galaxy model\n");
     176    exit (2);
     177  }
    160178}
    161179
     
    223241  if (!CATDIR) usage_setgalmodel_client();
    224242
    225   if (argc != 2) usage_setgalmodel_client();
     243  if (argc != 1) usage_setgalmodel_client();
    226244  return (TRUE);
    227245}
Note: See TracChangeset for help on using the changeset viewer.