Changeset 10623
- Timestamp:
- Dec 11, 2006, 10:59:49 AM (19 years ago)
- Location:
- trunk/psModules/src
- Files:
-
- 4 edited
-
camera/pmFPAfileIO.c (modified) (1 diff)
-
config/pmConfig.c (modified) (5 diffs)
-
config/pmConfig.h (modified) (2 diffs)
-
detrend/pmBias.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/camera/pmFPAfileIO.c
r10421 r10623 214 214 } 215 215 216 // apply filename mangling rules (file://, path://, neb:// , WORKDIR)216 // apply filename mangling rules (file://, path://, neb://) 217 217 psString tmpName = pmConfigConvertFilename (file->filename, config); 218 218 psFree (file->filename); -
trunk/psModules/src/config/pmConfig.c
r10583 r10623 4 4 * @author EAM (IfA) 5 5 * 6 * @version $Revision: 1.6 7$ $Name: not supported by cvs2svn $7 * @date $Date: 2006-12- 08 23:47:04$6 * @version $Revision: 1.68 $ $Name: not supported by cvs2svn $ 7 * @date $Date: 2006-12-11 20:59:48 $ 8 8 * 9 9 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 42 42 psFree(config->arguments); 43 43 psFree(config->database); 44 psFree(config->workdir);45 44 } 46 45 … … 62 61 config->argv = argv; 63 62 config->defaultRecipe = NULL; 64 config->workdir = NULL;65 63 66 64 // the file structure is used to carry pmFPAfiles … … 389 387 } 390 388 391 // Get the working directory392 config->workdir = psMemIncrRefCounter(psMetadataLookupStr(NULL, config->site, "WORKDIR"));393 if (!config->workdir) {394 psWarning("WORKDIR is not set in the site configuration\n");395 } else {396 config->workdir = resolveEnvVar(config->workdir);397 }398 399 389 // define the config-file search path (configPath). Ensure that 400 390 // it contains the directory where we found the config file in … … 892 882 // substitute neb://name with matched nebulous name 893 883 894 #if 0895 // if we still have a relative path, prepend WORKDIR:896 if (newName[0] != '/') {897 char *workdir = psMetadataLookupStr (NULL, config->site, "WORKDIR");898 if (workdir) {899 psStringPrepend (&newName, "%s/", workdir);900 }901 }902 #endif903 904 884 return newName; 905 885 } -
trunk/psModules/src/config/pmConfig.h
r10428 r10623 9 9 /// @author Eugene Magnier, IfA 10 10 /// 11 /// @version $Revision: 1.2 1$ $Name: not supported by cvs2svn $12 /// @date $Date: 2006-12- 04 20:41:51$11 /// @version $Revision: 1.22 $ $Name: not supported by cvs2svn $ 12 /// @date $Date: 2006-12-11 20:59:48 $ 13 13 /// 14 14 /// Copyright 2005-2006 Institute for Astronomy, University of Hawaii … … 46 46 psMetadata *arguments; ///< Processed command-line arguments 47 47 psMetadata *files; ///< pmFPAfiles used for analysis 48 psString workdir; ///< Working directory49 48 psDB *database; ///< Database handle 50 49 int *argc; ///< Number of command-line arguments -
trunk/psModules/src/detrend/pmBias.c
r10574 r10623 373 373 case PM_FIT_POLY_CHEBY: { 374 374 psString comment = NULL; // Comment to add 375 psStringAppend(&comment, "Overscan fit (chi ^2: %.2f):", chi2);375 psStringAppend(&comment, "Overscan fit (chi2: %.2f): ", chi2); 376 376 psPolynomial1D *poly = overscanOpts->poly; // The polynomial 377 377 for (int i = 0; i < poly->nX; i++) { … … 385 385 psSpline1D *spline = overscanOpts->spline; // The spline 386 386 for (int i = 0; i < spline->n; i++) { 387 psStringAppend(&comment, "Overscan fit (chi ^2: %.2f) %d:", chi2, i);387 psStringAppend(&comment, "Overscan fit (chi2: %.2f) %d:", chi2, i); 388 388 psPolynomial1D *poly = spline->spline[i]; // i-th polynomial 389 389 for (int j = 0; j < poly->nX; j++) {
Note:
See TracChangeset
for help on using the changeset viewer.
