IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 6684


Ignore:
Timestamp:
Mar 26, 2006, 1:14:47 PM (21 years ago)
Author:
eugene
Message:

removed IMAGE_CATALOG from config, finished proper-motion additions, minor fixes in graphing

Location:
trunk/Ohana/src
Files:
34 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/addstar/src/ConfigInit.c

    r6675 r6684  
    6060  ScanConfig (config, "TYCHO_DIR",             "%s",  0, TYCHO_DIR);
    6161
    62   ScanConfig (config, "IMAGE_CATALOG",          "%s",  0, ImageCat);
    6362  ScanConfig (config, "GSCFILE",                "%s",  0, GSCFILE);
    6463  ScanConfig (config, "CATDIR",                 "%s",  0, CATDIR);
    … …  
    7271    SKY_TABLE[0] = 0;
    7372  }
     73  sprintf (ImageCat, "%s/Images.dat", CATDIR);
     74
     75  /* dropped: ScanConfig (config, "IMAGE_CATALOG",          "%s",  0, ImageCat); */
     76
    7477
    7578  /* used by client/server setup */
  • trunk/Ohana/src/addstar/src/addstar.c

    r6683 r6684  
    1515
    1616  double dtime;
    17   struct timeval start, stop, t1, t2;
     17  struct timeval start, stop;
    1818
    1919  gettimeofday (&start, NULL);
    … …  
    3838  status = dvo_image_lock (&db, ImageCat, 3600.0, LCK_XCLD);
    3939  if (!status) Shutdown ("ERROR: failure to lock image catalog %s", db.filename);
    40   gettimeofday (&stop, NULL);
    41   dtime = DTIME (stop, start);
    4240
    4341  switch (options.mode) {
    … …  
    6563  if (VERBOSE) fprintf (stderr, "writing to %d regions\n", skylist[0].Nregions);
    6664
    67   gettimeofday (&stop, NULL);
    68   dtime = DTIME (stop, start);
    69   fprintf (stderr, "mark: gstars: time %9.4f sec\n", dtime);
    70 
    7165  Naverage = Nmeasure = 0;
    7266  for (i = 0; i < skylist[0].Nregions; i++) {
    73 
    74     gettimeofday (&t1, NULL);
    7567
    7668    catalog.filename = skylist[0].filename[i];
    … …  
    8779    Ns = Nstars;
    8880
    89     gettimeofday (&t2, NULL);
    90     dtime = DTIME (t2, t1);
    91     fprintf (stderr, "load time %9.4f sec for %5d stars, %6d average, %7d measure\n", dtime, Ns, Na, Nm);
    92 
    9381    Naverage += catalog.Naverage;
    9482    Nmeasure += catalog.Nmeasure;
    95 
    96     gettimeofday (&t1, NULL);
    9783
    9884    switch (options.mode) {
    … …  
    114100    }
    115101
    116     gettimeofday (&t2, NULL);
    117     dtime = DTIME (t2, t1);
    118     fprintf (stderr, "match time %9.4f sec for %5d stars, %6d average, %7d measure\n", dtime, Ns, Na, Nm);
    119 
    120     gettimeofday (&t1, NULL);
    121 
    122102    if (Nsubset == 0) {
    123103      unlock_catalog (&catalog);
    … …  
    129109    }
    130110    free (catalog.filename);
    131 
    132     gettimeofday (&t2, NULL);
    133     dtime = DTIME (t2, t1);
    134     fprintf (stderr, "save time %9.4f sec for %5d stars, %6d average, %7d measure\n", dtime, Ns, Na, Nm);
    135 
    136111  }
    137 
    138   gettimeofday (&stop, NULL);
    139   dtime = DTIME (stop, start);
    140   fprintf (stderr, "mark: match: time %9.4f sec\n", dtime);
    141112
    142113  if (options.calibrate) { FindCalibration (&image); }
  • trunk/Ohana/src/addstar/src/args.c

    r6683 r6684  
    4646  options.photcode = 0;
    4747  if ((N = get_argument (argc, argv, "-p"))) {
     48    remove_argument (N, &argc, argv);
     49    options.photcode = GetPhotcodeCodebyName (argv[N]);
     50    remove_argument (N, &argc, argv);
     51  }
     52  if ((N = get_argument (argc, argv, "-photcode"))) {
    4853    remove_argument (N, &argc, argv);
    4954    options.photcode = GetPhotcodeCodebyName (argv[N]);
    … …  
    253258  fprintf (stderr, "  optional flags:\n");
    254259  fprintf (stderr, "  -region ra ra dec dec       : only add data in specified region (-ref mode only)\n");
    255   fprintf (stderr, "  -p (photcode)               : specify photcode (override header)\n");
     260  fprintf (stderr, "  -p (photcode)               : specify photcode (-ref / -cat / or override header)\n");
     261  fprintf (stderr, "  -photcode (photcode)        : specify photcode (-ref / -cat / or override header)\n");
    256262  fprintf (stderr, "  -time (YYYY/MM/DD,HH:MM:SS) : specify date/time (override header)\n");
    257263  fprintf (stderr, "  -mosaic (filename)          : identify associated mosaic frame for chip image\n");
  • trunk/Ohana/src/addstar/src/image-db.c

    r6236 r6684  
    3535  if (!strcasecmp (CATFORMAT, "ELIXIR"))    db[0].format = DVO_FORMAT_ELIXIR;
    3636  if (!strcasecmp (CATFORMAT, "PANSTARRS")) db[0].format = DVO_FORMAT_PANSTARRS;
     37  if (!strcasecmp (CATFORMAT, "PMTEST"))    db[0].format = DVO_FORMAT_PMTEST;
    3738  if (db[0].format == DVO_FORMAT_UNDEF) {
    3839    fprintf (stderr, "invalid output catalog format\n");
    … …  
    5152  if (db[0].format == DVO_FORMAT_ELIXIR)    fits_modify (&db[0].header, "FORMAT", "%s", 1, "ELIXIR");
    5253  if (db[0].format == DVO_FORMAT_PANSTARRS) fits_modify (&db[0].header, "FORMAT", "%s", 1, "PANSTARRS");
     54  if (db[0].format == DVO_FORMAT_PMTEST)    fits_modify (&db[0].header, "FORMAT", "%s", 1, "PMTEST");
    5355}
  • trunk/Ohana/src/addstar/src/mkcatalog.c

    r5445 r6684  
    1515  if (!strcasecmp (CATFORMAT, "ELIXIR"))    catalog[0].catformat = DVO_FORMAT_ELIXIR;
    1616  if (!strcasecmp (CATFORMAT, "PANSTARRS")) catalog[0].catformat = DVO_FORMAT_PANSTARRS;
     17  if (!strcasecmp (CATFORMAT, "PMTEST"))    catalog[0].catformat = DVO_FORMAT_PMTEST;
    1718  if (catalog[0].catformat == DVO_FORMAT_UNDEF) {
    1819    fprintf (stderr, "invalid output catalog format\n");
  • trunk/Ohana/src/delstar/src/ConfigInit.c

    r5451 r6684  
    1818  ScanConfig (config, "NSIGMA",                 "%lf", 0, &NSIGMA);
    1919  ScanConfig (config, "ALPHA",                  "%lf", 0, &ALPHA);
    20   ScanConfig (config, "IMAGE_CATALOG",          "%s", 0, ImageCat);
    21   ScanConfig (config, "IMAGE_CATALOG_TEMPLATE", "%s", 0, ImageTemplate);
    22   ScanConfig (config, "CATALOG_TEMPLATE",       "%s", 0, CatTemplate);
    2320  ScanConfig (config, "GSCFILE",                "%s", 0, GSCFILE);
    2421  ScanConfig (config, "CATDIR",                 "%s", 0, CATDIR);
    … …  
    2623  ScanConfig (config, "CATFORMAT",              "%s",  0, CATFORMAT);
    2724  ScanConfig (config, "PHOTCODE_FILE",          "%s", 0, PhotCodeFile);
     25
     26  sprintf (ImageCat, "%s/Images.dat", CATDIR);
    2827
    2928  ScanConfig (config, "DATE-KEYWORD",           "%s", 0, DateKeyword);
  • trunk/Ohana/src/fixcat/src/ConfigInit.c

    r2490 r6684  
    1616
    1717  /* used in other pipeline functions */
    18   ScanConfig (config, "IMAGE_CATALOG",   "%s",  0, ImageCat);
    1918  ScanConfig (config, "CATDIR",          "%s",  0, CATDIR);
    2019  ScanConfig (config, "GSCDIR",          "%s",  0, GSCDIR);
    2120  ScanConfig (config, "GSCFILE",         "%s",  0, GSCFILE);
     21  sprintf (ImageCat, "%s/Images.dat", CATDIR);
     22
    2223  /* unique to markstar */
    2324  ScanConfig (config, "SEARCH_RADIUS",   "%lf", 0, &RADIUS);
  • trunk/Ohana/src/imregister/base/ConfigInit.c

    r2823 r6684  
    66
    77  int i, NDB;
    8   char *config, *file, ElixirBase[80];
     8  char *config, *file, ElixirBase[80], catdir[256];
    99
    1010  /*** load configuration info ***/
    … …  
    2323  WarnConfig (config, "PHOT_DATABASE",               "%s", 0, PhotDB);
    2424  WarnConfig (config, "TRANS_DATABASE",              "%s", 0, TransDB);
    25   WarnConfig (config, "IMAGE_CATALOG",               "%s", 0, ImPhotDB);
     25
     26  WarnConfig (config, "CATDIR",                      "%s", 0, catdir);
     27  sprintf (ImPhotDB, "%s/Images.dat", catdir);
    2628
    2729  /* small text databases: filters, camera defs */
  • trunk/Ohana/src/imregister/imphot/ConfigInit.c

    r4024 r6684  
    77
    88  int i, NDB;
    9   char *config, *file, ElixirBase[80];
     9  char *config, *file, ElixirBase[80], catdir[256];
    1010
    1111  /*** load configuration info ***/
    … …  
    2020  success = TRUE;
    2121
    22   WarnConfig (config, "IMAGE_CATALOG",               "%s", 0, ImPhotDB);
     22  WarnConfig (config, "CATDIR",                      "%s", 0, catdir);
     23  sprintf (ImPhotDB, "%s/Images.dat", catdir);
    2324
    2425  /* small text databases: filters, camera defs */
  • trunk/Ohana/src/kapa/doc/ChangeLog.txt

    r5928 r6684  
     1
     2- kapa 1.5
     3  * fixed residual label text
     4  * fixed box -axis,-label,-ticks bug (was ignoring user input)
     5  * dropped unused axis.label (is replaced by label.text)
    16
    27- kapa 1.4
  • trunk/Ohana/src/kapa/event/SetSection.c

    r5852 r6684  
    4646      section[ThisSection].axis[i].areticks = FALSE;
    4747      section[ThisSection].axis[i].islabel = FALSE;
    48       strcpy (section[ThisSection].axis[i].label, "");
    4948    }   
    5049    for (i = 0; i < 8; i++) {
  • trunk/Ohana/src/kapa/graph/LoadLabels.c

    r5852 r6684  
    1414  label = KiiRecvData (sock);
    1515
    16   Nbytes = MIN (strlen(label), 127);
     16  bzero (layout[0].label[mode].text, LABEL_MAXLEN);
     17
     18  Nbytes = MIN (strlen(label), LABEL_MAXLEN - 1);
    1719  strncpy (layout[0].label[mode].text, label, Nbytes);
    1820  label[Nbytes] = 0;
  • trunk/Ohana/src/kapa/graph/LoadPtext.c

    r6678 r6684  
    2727  layout[0].ptext[N].angle = tT;
    2828
     29  bzero (layout[0].ptext[N].text, LABEL_MAXLEN);
     30
    2931  string = KiiRecvData (sock);
    3032  strcpy (layout[0].ptext[N].text, string);
  • trunk/Ohana/src/kapa/include/constants.h

    r3695 r6684  
    1414# define MIN_WIDTH 250
    1515# define MIN_HEIGHT 250
     16# define LABEL_MAXLEN 128
    1617
    1718/* label names */
  • trunk/Ohana/src/kapa/include/structures.h

    r5852 r6684  
    7979  int  size;
    8080  char font[64];
    81   char text[128];
     81  char text[LABEL_MAXLEN];
    8282} Label;
    8383
    … …  
    8888} Overlay;
    8989 
    90 # if (0)
    91 typedef struct {
    92   char      ctype[16];
    93   double    crval1, crpix1, cdelt1;
    94   double    crval2, crpix2, cdelt2;
    95   double    pc1_1, pc1_2;
    96   double    pc2_1, pc2_2;
    97 } Coords;
    98 # endif
    99 
    10090typedef struct {
    10191  float *x, *y, *z, *dxp, *dxm, *dyp, *dym;
    … …  
    110100  char isaxis, areticks, islabel, islog;
    111101  double fx, dfx, fy, dfy;  /* axis location on graphic */
    112   char label[64];
    113102} Axis;
    114103
    … …  
    127116  double   y, dy;
    128117
    129   char     name[64];
     118  char     name[LABEL_MAXLEN];  /* name of the section */
    130119
    131120} Layout;
  • trunk/Ohana/src/kapa/setup/DefineLayout.c

    r5852 r6684  
    3232    section[0].axis[i].areticks = FALSE;
    3333    section[0].axis[i].islabel = FALSE;
    34     strcpy (section[0].axis[i].label, " ");
    3534  }   
    3635  for (i = 0; i < 8; i++) {
  • trunk/Ohana/src/libautocode/def/average-pmtest.d

    r6683 r6684  
    22EXTNAME      DVO_AVERAGE_PMTEST
    33TYPE         BINTABLE
    4 SIZE         76
     4SIZE         80
    55DESCRIPTION  DVO Average Object Table
    66
    … …  
    2929FIELD offset,         offset,     int,              offset to first measurement
    3030FIELD missing,        missing,    int,              offset to first missing obs
     31FIELD dummy,          dummy,      int,              extra space
    3132
  • trunk/Ohana/src/libdvo/src/dvo_image_raw.c

    r5386 r6684  
    2424    if (!strcmp (format, "ELIXIR")) db[0].format = DVO_FORMAT_ELIXIR;
    2525    if (!strcmp (format, "PANSTARRS")) db[0].format = DVO_FORMAT_PANSTARRS;
     26    if (!strcmp (format, "PMTEST")) db[0].format = DVO_FORMAT_PANSTARRS;
    2627    if (db[0].format != DVO_FORMAT_UNDEF) goto got_format;
    2728  }
  • trunk/Ohana/src/markstar/src/ConfigInit.c

    r4828 r6684  
    1717
    1818  /* used in other pipeline functions */
    19   ScanConfig (config, "IMAGE_CATALOG",   "%s",  0, ImageCat);
    2019  ScanConfig (config, "CATDIR",          "%s",  0, CATDIR);
    2120  ScanConfig (config, "CATMODE",                "%s",  0, CATMODE);
    2221  ScanConfig (config, "CATFORMAT",              "%s",  0, CATFORMAT);
     22
     23  sprintf (ImageCat, "%s/Images.dat", CATDIR);
    2324
    2425  ScanConfig (config, "GSCDIR",          "%s",  0, GSCDIR);
  • trunk/Ohana/src/opihi/Makefile.Common

    r6683 r6684  
    2626$(DESTLIB)/%.a: $(LIB)/%.$(ARCH).a
    2727        @if [ ! -d $(DESTLIB) ]; then mkdir -p $(DESTLIB); fi
    28         @echo ""
    29         @echo "current: $^"
    30         @echo "current: $*"
    31         @echo "current: $@"
    3228        rm -f $@
    33         cp $^ $@
     29        cp $< $@
    3430
    3531lib%.clean:
  • trunk/Ohana/src/opihi/cmd.data/Makefile

    r6642 r6684  
    2626$(SDIR)/clear.$(ARCH).o         \
    2727$(SDIR)/clip.$(ARCH).o          \
     28$(SDIR)/close.$(ARCH).o         \
    2829$(SDIR)/concat.$(ARCH).o        \
    2930$(SDIR)/contour.$(ARCH).o       \
  • trunk/Ohana/src/opihi/cmd.data/box.c

    r5919 r6684  
    66  Graphdata graphmode;
    77 
     8  Ngraph = -1;
     9  if ((N = get_argument (argc, argv, "-n"))) {
     10    remove_argument (N, &argc, argv);
     11    Ngraph = atof (argv[N]);
     12    remove_argument (N, &argc, argv);
     13  }
     14  if (!GetGraph (&graphmode, &Xgraph, &Ngraph)) return (FALSE);
     15
    816  strcpy (graphmode.ticks, "2222");
    917  if ((N = get_argument (argc, argv, "-ticks"))) {
    … …  
    3846    }
    3947  }
    40 
    41   Ngraph = -1;
    42   if ((N = get_argument (argc, argv, "-n"))) {
    43     remove_argument (N, &argc, argv);
    44     Ngraph = atof (argv[N]);
    45     remove_argument (N, &argc, argv);
    46   }
    47   if (!GetGraph (&graphmode, &Xgraph, &Ngraph)) return (FALSE);
    4848
    4949  if (argc != 1) goto usage;
  • trunk/Ohana/src/opihi/cmd.data/init.c

    r6642 r6684  
    99int clear            PROTO((int, char **));
    1010int clip             PROTO((int, char **));
     11int close_device     PROTO((int, char **));
    1112int concat           PROTO((int, char **));
    1213int contour          PROTO((int, char **));
    … …  
    115116  {"clear",        clear,            "erase plot"},
    116117  {"clip",         clip,             "clip values in a buffer to be within a range"},
     118  {"close",        close_device,     "close the current display device"},
    117119  {"concat",       concat,           "reduce vector dimension"},
    118120  {"contour",      contour,          "create contour from image"},
  • trunk/Ohana/src/opihi/dvo/LoadImages.c

    r4864 r6684  
    33Image *LoadImages (int *nimage) {
    44
    5   char filename[256];
     5  char *catdir, filename[256];
    66  Image *image;
    77  FITS_DB db;
    88 
    9   VarConfig ("IMAGE_CATALOG", "%s", filename);
     9  /* VarConfig ("IMAGE_CATALOG", "%s", filename); */
     10
     11  catdir = GetCATDIR ();
     12  sprintf (filename, "%s/Images.dat", catdir);
    1013
    1114  fits_db_init (&db);
  • trunk/Ohana/src/opihi/dvo/catdir.c

    r5900 r6684  
    33int catdir_define (int argc, char **argv) {
    44 
     5  char *current;
    56  int status, N, VERBOSE;
    67
    … …  
    1415    fprintf (stderr, "USAGE: catdir (name)\n");
    1516    fprintf (stderr, "       (name) may be a path or 'default'\n");
     17    current = GetCATDIR ();
     18    if (current == NULL) {
     19      fprintf (stderr, "catdir not defined\n");
     20    } else {
     21      fprintf (stderr, "current: %s\n", current);
     22    }
    1623    return (FALSE);
    1724  }
  • trunk/Ohana/src/opihi/dvo/region_list.c

    r5996 r6684  
    1111
    1212  char *newpath;
    13   char catdir[256];
     13  char catdir_config[256];
    1414  char gscfile[256];
    1515  char skyfile[256];
    … …  
    1818  /* find CATDIR in config system */
    1919  if (path == NULL) {
    20     if (VarConfig ("CATDIR", "%s", catdir) == NULL) return (FALSE);
    21     newpath = catdir;
     20    if (VarConfig ("CATDIR", "%s", catdir_config) == NULL) return (FALSE);
     21    newpath = catdir_config;
    2222  } else {
    2323    newpath = path;
    … …  
    3232
    3333  if (verbose) {
    34       fprintf (stderr, "CATDIR %s\n", catdir);
     34      fprintf (stderr, "CATDIR %s\n", CATDIR);
    3535      fprintf (stderr, "GSCFILE %s\n", gscfile);
    3636      fprintf (stderr, "SKYFILE %s\n", skyfile);
    … …  
    4242
    4343  if (sky != NULL) SkyTableFree (sky);
    44   sky = SkyTableLoadOptimal (catdir, skyfile, gscfile, skydepth, verbose);
     44  sky = SkyTableLoadOptimal (CATDIR, skyfile, gscfile, skydepth, verbose);
    4545  if (sky == NULL) return FALSE;
    4646
    47   SkyTableSetFilenames (sky, catdir, "cpt");
     47  SkyTableSetFilenames (sky, CATDIR, "cpt");
    4848
    4949  return (TRUE);
     50}
     51
     52char *GetCATDIR () {
     53  if (CATDIR == NULL) {
     54    SetCATDIR (NULL, FALSE);
     55  }
     56  return (CATDIR);
    5057}
    5158
  • trunk/Ohana/src/opihi/include/display.h

    r5850 r6684  
    2424void          InitGraph             PROTO((void));
    2525int           open_graph            PROTO((int N));
     26int           close_graph           PROTO((int N));
    2627void          QuitGraph             PROTO((void));
    2728void          SetGraph              PROTO((Graphdata data));
    … …  
    3536void          InitImage             PROTO((void));
    3637int           open_image            PROTO((int N));
     38int           close_image           PROTO((int N));
    3739void          QuitImage             PROTO((void));
    3840void          SetImageDevice        PROTO((int state));
  • trunk/Ohana/src/opihi/include/dvo1.h

    r6683 r6684  
    7373SkyList      *SkyListLoadFile       PROTO((char *filename));
    7474int           SetCATDIR             PROTO((char *path, int verbose));
     75char *        GetCATDIR             PROTO(());
    7576SkyTable     *GetSkyTable           PROTO(());
    7677SkyList      *SkyListFromFile       PROTO((char *filename));
  • trunk/Ohana/src/opihi/lib.data/open_graph.c

    r5919 r6684  
    88static int       Xgraph[NXGRAPH]; 
    99static Graphdata graphdata[NXGRAPH];
    10 
    11 
    1210
    1311void QuitGraph () {
    … …  
    8078
    8179  Xgraph[N] = fd;
     80  return (TRUE);
     81}
     82
     83int close_graph (int N) {
     84
     85  if (N <  0) return (FALSE);
     86  if (N >= NXGRAPH) return (FALSE);
     87
     88  KiiClose (Xgraph[N]);
     89  Xgraph[N] = -1;
    8290  return (TRUE);
    8391}
  • trunk/Ohana/src/opihi/lib.data/open_image.c

    r5919 r6684  
    3333}
    3434
    35 
    36 
    37 
    38 
    39 
    40 
    41 
    42 
    43 
    44 
    45 
    46 
    47 
    48 
    49 
    50 
    51 
    52 
    5335/* set SIGPIPE to this function to close cleanly */
    5436void XImageDead (int input) {
    … …  
    8062
    8163  Ximage[N] = fd;
     64  return (TRUE);
     65}
     66
     67int close_image (int N) {
     68
     69  if (N <  0) return (FALSE);
     70  if (N >= NXIMAGE) return (FALSE);
     71
     72  KiiClose (Ximage[N]);
     73  Ximage[N] = -1;
    8274  return (TRUE);
    8375}
  • trunk/Ohana/src/photdbc/src/ConfigInit.c

    r4828 r6684  
    4848  WarnConfig (config, "NMEAS_MIN",              "%d",  0, &NMEAS_MIN);
    4949
    50   WarnConfig (config, "IMAGE_CATALOG",          "%s",  0, ImageCat);
    5150  WarnConfig (config, "GSCFILE",                "%s",  0, GSCFILE);
    5251  WarnConfig (config, "CATDIR",                 "%s",  0, CATDIR);
    5352  ScanConfig (config, "CATMODE",                "%s",  0, CATMODE);
    5453  ScanConfig (config, "CATFORMAT",              "%s",  0, CATFORMAT);
     54  sprintf (ImageCat, "%s/Images.dat", CATDIR);
    5555
    5656  WarnConfig (config, "PHOTCODE_FILE",          "%s",  0, PhotCodeFile);
  • trunk/Ohana/src/relphot/src/ConfigInit.c

    r5014 r6684  
    2828  GetConfig (config, "IMAGE_GOOD_FRACTION",    "%lf", 0, &IMAGE_GOOD_FRACTION);
    2929
    30   GetConfig (config, "IMAGE_CATALOG",          "%s",  0, ImageCat);
    31   GetConfig (config, "IMAGE_CATALOG_TEMPLATE", "%s",  0, ImageTemplate);
    32   GetConfig (config, "CATALOG_TEMPLATE",       "%s",  0, CatTemplate);
    3330  GetConfig (config, "GSCFILE",                "%s",  0, GSCFILE);
    3431  GetConfig (config, "CATDIR",                 "%s",  0, CATDIR);
    3532  ScanConfig (config, "CATMODE",                "%s",  0, CATMODE);
    3633  ScanConfig (config, "CATFORMAT",              "%s",  0, CATFORMAT);
     34  sprintf (ImageCat, "%s/Images.dat", CATDIR);
     35
    3736  GetConfig (config, "PHOTCODE_FILE",          "%s",  0, PhotCodeFile);
    3837  GetConfig (config, "ZERO_PT",                "%lf", 0, &ZERO_POINT);
  • trunk/Ohana/src/relphot/src/initialize.c

    r4796 r6684  
    4545    fprintf (stderr, "IMAGE_OFFSET           %lf\n", IMAGE_OFFSET);
    4646    fprintf (stderr, "IMAGE_CATALOG          %s\n",  ImageCat);
    47     fprintf (stderr, "IMAGE_CATALOG_TEMPLATE %s\n",  ImageTemplate);
    48     fprintf (stderr, "CATALOG_TEMPLATE       %s\n",  CatTemplate);
    4947    fprintf (stderr, "GSCFILE                %s\n",  GSCFILE);
    5048    fprintf (stderr, "CATDIR                 %s\n",  CATDIR);
  • trunk/Ohana/src/uniphot/src/ConfigInit.c

    r4828 r6684  
    2020  ScanConfig (config, "CATMODE",                "%s",  0, CATMODE);
    2121  ScanConfig (config, "CATFORMAT",              "%s",  0, CATFORMAT);
     22  sprintf (ImageCat, "%s/Images.dat", CATDIR);
    2223
    23   ScanConfig (config, "IMAGE_CATALOG",          "%s",  0, ImageCat);
    2424  ScanConfig (config, "PHOTCODE_FILE",          "%s",  0, PhotCodeFile);
    2525  ScanConfig (config, "ZERO_PT",                "%lf", 0, &ZERO_POINT);
Note: See TracChangeset for help on using the changeset viewer.