Changeset 14371
- Timestamp:
- Jul 24, 2007, 3:39:58 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/psastro/src/psastroLoadRefstars.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psastro/src/psastroLoadRefstars.c
r12806 r14371 19 19 // XXX CATDIR needs to look up abstracted name from psastro.config 20 20 // XXX which is then selected from the top-level ipprc.config 21 char *CATDIR = psMetadataLookupStr(NULL, recipe, "DVO.CATDIR"); 21 char *catdir = psMetadataLookupStr(NULL, recipe, "DVO.CATDIR"); 22 psString CATDIR = pmConfigConvertFilename(catdir, config, false); // Resolved filename 22 23 PS_ASSERT (CATDIR, NULL); 23 24 … … 31 32 if ((fd = mkstemp (tempFile)) == -1) { 32 33 psError(PSASTRO_ERR_REFSTARS, true, "error creating temp output file\n"); 34 psFree(CATDIR); 33 35 return NULL; 34 36 } … … 47 49 if (strcasecmp(CATDIR, "NONE")) { 48 50 psStringAppend (&getstarCommand, " -D CATDIR %s", CATDIR); 49 } 51 } 52 psFree(CATDIR); 50 53 51 54 // psStringAppend (&getstarCommand, " -D CATMODE mef -maglim %f -region %f %f %f %f -o %s", MAGmax, RAmin, DECmin, RAmax, DECmax, tempFile); … … 81 84 82 85 if (table == NULL) { 83 psError(PSASTRO_ERR_REFSTARS, true, "failure to load astrometric reference\n");86 psError(PSASTRO_ERR_REFSTARS, true, "failure to load astrometric reference\n"); 84 87 return NULL; 85 88 } … … 119 122 // dump or plot the available refstars 120 123 if (psTraceGetLevel("psastro.dump") > 0) { 121 psastroDumpRefstars (refstars, "refstars.dat");124 psastroDumpRefstars (refstars, "refstars.dat"); 122 125 } 123 126 124 127 if (psTraceGetLevel("psastro.plot") > 0) { 125 psastroPlotRefstars (refstars);128 psastroPlotRefstars (refstars); 126 129 } 127 130
Note:
See TracChangeset
for help on using the changeset viewer.
