Changeset 6771 for trunk/stac/src/stacRead.c
- Timestamp:
- Apr 4, 2006, 12:06:11 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/stac/src/stacRead.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/stac/src/stacRead.c
r6485 r6771 24 24 psTrace("stac.read.images", 2, "Reading input image %s....\n",filenames->data[i]); 25 25 psFits *imageFile = psFitsOpen(filenames->data[i], "r"); 26 if (!imageFile) { 27 psError(PS_ERR_IO, false, "Unable to open FITS file %s.\n", filenames->data[i]); 28 exit(EXIT_FAILURE); 29 } 26 30 // We only read PHUs --- not mucking around with extensions for now 27 31 if (headers) { 28 32 (*headers)->data[i] = psFitsReadHeader(NULL, imageFile); 29 33 } 30 psImage *image = psFitsReadImage( NULL,imageFile, imageRegion, 0);34 psImage *image = psFitsReadImage(imageFile, imageRegion, 0); 31 35 if (image == NULL) { 32 36 psErrorStackPrint(stderr,"Fatal error: Unable to read %s\n",filenames->data[i]);
Note:
See TracChangeset
for help on using the changeset viewer.
