Changeset 33873
- Timestamp:
- May 16, 2012, 4:18:16 PM (14 years ago)
- Location:
- branches/eam_branches/ipp-20120405/Ohana/src/uniphot
- Files:
-
- 4 edited
-
include/setphot.h (modified) (1 diff)
-
src/initialize_setphot.c (modified) (1 diff)
-
src/setphot.c (modified) (1 diff)
-
src/update_dvo_setphot.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20120405/Ohana/src/uniphot/include/setphot.h
r33654 r33873 19 19 20 20 /* global variables set in parameter file */ 21 # define MAX_PATH_LENGTH 102422 char ImageCat[ MAX_PATH_LENGTH];21 # define DVO_MAX_PATH 1024 22 char ImageCat[DVO_MAX_PATH]; 23 23 char *CATDIR; 24 24 int HOST_ID; -
branches/eam_branches/ipp-20120405/Ohana/src/uniphot/src/initialize_setphot.c
r33654 r33873 140 140 // force CATDIR to be absolute (so parallel mode will work) 141 141 char *tmpcatdir = NULL; 142 ALLOCATE (tmpcatdir, char, MAX_PATH_LENGTH);142 ALLOCATE (tmpcatdir, char, DVO_MAX_PATH); 143 143 GetConfig (config, "CATDIR", "%s", 0, tmpcatdir); 144 CATDIR = abspath (tmpcatdir, MAX_PATH_LENGTH);144 CATDIR = abspath (tmpcatdir, DVO_MAX_PATH); 145 145 free (tmpcatdir); 146 146 -
branches/eam_branches/ipp-20120405/Ohana/src/uniphot/src/setphot.c
r33654 r33873 21 21 zpts = load_zpt_ubercal (argv[1], &Nzpts, &flatcorrTable); 22 22 23 char flatcorrfile[ MAX_PATH_LENGTH];24 int size = snprintf (flatcorrfile, MAX_PATH_LENGTH, "%s/flatcorr.fits", CATDIR);25 assert (size < MAX_PATH_LENGTH);23 char flatcorrfile[DVO_MAX_PATH]; 24 int size = snprintf (flatcorrfile, DVO_MAX_PATH, "%s/flatcorr.fits", CATDIR); 25 assert (size < DVO_MAX_PATH); 26 26 FlatCorrectionSave(&flatcorrTable, flatcorrfile); 27 27 // XXX should this program save any old copy of this file? -
branches/eam_branches/ipp-20120405/Ohana/src/uniphot/src/update_dvo_setphot.c
r33654 r33873 105 105 106 106 // ensure that the paths are absolute path names 107 char *tmppath = abspath (table->hosts[i].pathname, MAX_PATH_LENGTH);107 char *tmppath = abspath (table->hosts[i].pathname, DVO_MAX_PATH); 108 108 free (table->hosts[i].pathname); 109 109 table->hosts[i].pathname = tmppath;
Note:
See TracChangeset
for help on using the changeset viewer.
