Changeset 33963 for trunk/Ohana/src/relastro
- Timestamp:
- May 30, 2012, 1:46:12 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 8 edited
-
. (modified) (1 prop)
-
Ohana/src/relastro/include/relastro.h (modified) (1 diff)
-
Ohana/src/relastro/src/ConfigInit.c (modified) (1 diff)
-
Ohana/src/relastro/src/UpdateObjectOffsets.c (modified) (1 diff)
-
Ohana/src/relastro/src/args.c (modified) (1 diff)
-
Ohana/src/relastro/src/high_speed_catalogs.c (modified) (3 diffs)
-
Ohana/src/relastro/src/load_catalogs.c (modified) (1 diff)
-
Ohana/src/relastro/src/relastro_objects.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk
-
trunk/Ohana/src/relastro/include/relastro.h
r33652 r33963 120 120 121 121 /* global variables set in parameter file */ 122 # define MAX_PATH_LENGTH 1024123 char ImageCat[ MAX_PATH_LENGTH];124 char GSCFILE[ MAX_PATH_LENGTH];125 char CATDIR[ MAX_PATH_LENGTH];122 # define DVO_MAX_PATH 1024 123 char ImageCat[DVO_MAX_PATH]; 124 char GSCFILE[DVO_MAX_PATH]; 125 char CATDIR[DVO_MAX_PATH]; 126 126 char *HIGH_SPEED_DIR; 127 127 char CATMODE[16]; /* raw, mef, split, mysql */ 128 128 char CATFORMAT[16]; /* internal, elixir, loneos, panstarrs */ 129 char SKY_TABLE[ MAX_PATH_LENGTH];129 char SKY_TABLE[DVO_MAX_PATH]; 130 130 int SKY_DEPTH; /** XXX EAM : depth of catalog tables, fix usage */ 131 131 -
trunk/Ohana/src/relastro/src/ConfigInit.c
r33652 r33963 39 39 // force CATDIR to be absolute (so parallel mode will work) 40 40 GetConfig (config, "CATDIR", "%s", 0, CATDIR); 41 char *tmpcatdir = abspath (CATDIR, MAX_PATH_LENGTH);41 char *tmpcatdir = abspath (CATDIR, DVO_MAX_PATH); 42 42 strcpy (CATDIR, tmpcatdir); 43 43 free (tmpcatdir); -
trunk/Ohana/src/relastro/src/UpdateObjectOffsets.c
r33652 r33963 87 87 88 88 // ensure that the paths are absolute path names 89 char *tmppath = abspath (table->hosts[i].pathname, MAX_PATH_LENGTH);89 char *tmppath = abspath (table->hosts[i].pathname, DVO_MAX_PATH); 90 90 free (table->hosts[i].pathname); 91 91 table->hosts[i].pathname = tmppath; -
trunk/Ohana/src/relastro/src/args.c
r33652 r33963 98 98 RADIUS = atof(argv[N]); 99 99 remove_argument (N, &argc, argv); 100 HIGH_SPEED_DIR = abspath(argv[N], MAX_PATH_LENGTH);100 HIGH_SPEED_DIR = abspath(argv[N], DVO_MAX_PATH); 101 101 remove_argument (N, &argc, argv); 102 102 } -
trunk/Ohana/src/relastro/src/high_speed_catalogs.c
r33652 r33963 68 68 char line[2048]; 69 69 snprintf (line, 2048, "cp %s/Images.dat %s/Images.dat", CATDIR, HIGH_SPEED_DIR); 70 system (line); 70 int status = system (line); 71 if (status) { 72 fprintf (stderr, "copy of Images.dat failed\n"); 73 exit (3); 74 } 71 75 } 72 76 … … 109 113 110 114 // ensure that the paths are absolute path names 111 char *tmppath = abspath (table->hosts[i].pathname, MAX_PATH_LENGTH);115 char *tmppath = abspath (table->hosts[i].pathname, DVO_MAX_PATH); 112 116 free (table->hosts[i].pathname); 113 117 table->hosts[i].pathname = tmppath; … … 125 129 126 130 free (outputDir); 127 outputDir = abspath (tableOut->hosts[index].pathname, MAX_PATH_LENGTH);131 outputDir = abspath (tableOut->hosts[index].pathname, DVO_MAX_PATH); 128 132 } 129 133 -
trunk/Ohana/src/relastro/src/load_catalogs.c
r33652 r33963 126 126 127 127 // ensure that the paths are absolute path names 128 char *tmppath = abspath (table->hosts[i].pathname, MAX_PATH_LENGTH);128 char *tmppath = abspath (table->hosts[i].pathname, DVO_MAX_PATH); 129 129 free (table->hosts[i].pathname); 130 130 table->hosts[i].pathname = tmppath; -
trunk/Ohana/src/relastro/src/relastro_objects.c
r33652 r33963 109 109 110 110 // ensure that the paths are absolute path names 111 char *tmppath = abspath (table->hosts[i].pathname, MAX_PATH_LENGTH);111 char *tmppath = abspath (table->hosts[i].pathname, DVO_MAX_PATH); 112 112 free (table->hosts[i].pathname); 113 113 table->hosts[i].pathname = tmppath;
Note:
See TracChangeset
for help on using the changeset viewer.
