Changeset 13247
- Timestamp:
- May 4, 2007, 12:24:56 PM (19 years ago)
- Location:
- trunk/ppStac/src
- Files:
-
- 2 edited
-
ppStacCombine.c (modified) (1 diff)
-
ppStacOptions.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppStac/src/ppStacCombine.c
r11116 r13247 16 16 psRegion region = psRegionSet(0, 0, 0, 0); // Region to read 17 17 for (int i = 0; i < inputs->n; i++) { 18 psString resolved = pmConfigConvertFilename(options->inFiles->data[i], options->config, false); 18 19 psImage *image = psFitsReadImage(options->inFiles->data[i], region, 0); 19 20 if (!image) { 20 psError(PS_ERR_IO, false, "Unable to read image %d\n", i); 21 psError(PS_ERR_IO, false, "Unable to read image %s\n", resolved); 22 psFree(resolved); 21 23 return false; 22 24 } 25 psFree(resolved); 23 26 inputs->data[i] = image; 24 27 } -
trunk/ppStac/src/ppStacOptions.c
r12994 r13247 83 83 } 84 84 85 const char *outName = argv[1];// Output filename85 psString outName = pmConfigConvertFilename(argv[1], options->config, true); // Output filename 86 86 options->outFile = psFitsOpen(outName, "w"); 87 87 if (!options->outFile) { 88 88 psError(PS_ERR_IO, false, "Unable to open output file %s.\n", outName); 89 89 psFree(options); 90 psFree(outName); 90 91 return NULL; 91 92 } 93 psFree(outName); 92 94 93 95 int numInputs = *argc - 2; // Number of input files
Note:
See TracChangeset
for help on using the changeset viewer.
