IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

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

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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
Note: See TracChangeset for help on using the changeset viewer.