- Timestamp:
- May 8, 2010, 1:55:26 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/psphot.20100506/src/psphotStackParseCamera.c
r27883 r27884 29 29 30 30 // RAW (unconvolved) input data (RAW:IMAGE, RAW:MASK, RAW:VARIANCE, RAW:PSF) 31 psString rawImage = psMetadataLookupStr( NULL, input, "RAW:IMAGE"); // Name of image31 psString rawImage = psMetadataLookupStr(&status, input, "RAW:IMAGE"); // Name of image 32 32 if (rawImage && strlen(rawImage) > 0) { 33 pmFPAfile *rawInputFile = defineFile(config, NULL, "PSPHOT.STACK.INPUT.RAW", rawImage, PM_FPA_FILE_IMAGE); // File for image33 rawInputFile = defineFile(config, NULL, "PSPHOT.STACK.INPUT.RAW", rawImage, PM_FPA_FILE_IMAGE); // File for image 34 34 if (!rawInputFile) { 35 35 psError(PS_ERR_UNKNOWN, false, "Unable to define file from image %d (%s)", i, rawImage); … … 60 60 61 61 // CNV (convolved) input data (CNV:IMAGE, CNV:MASK, CNV:VARIANCE, CNV:PSF) 62 psString cnvImage = psMetadataLookupStr( NULL, input, "CNV:IMAGE"); // Name of image62 psString cnvImage = psMetadataLookupStr(&status, input, "CNV:IMAGE"); // Name of image 63 63 if (cnvImage && strlen(cnvImage) > 0) { 64 pmFPAfile *cnvInputFile = defineFile(config, NULL, "PSPHOT.STACK.INPUT.CNV", cnvImage, PM_FPA_FILE_IMAGE); // File for image64 cnvInputFile = defineFile(config, NULL, "PSPHOT.STACK.INPUT.CNV", cnvImage, PM_FPA_FILE_IMAGE); // File for image 65 65 if (!cnvInputFile) { 66 66 psError(PS_ERR_UNKNOWN, false, "Unable to define file from image %d (%s)", i, cnvImage); … … 96 96 97 97 psString sources = psMetadataLookupStr(&status, input, "SOURCES"); // Name of mask 98 pmFPAfile *srcInputFile = rawInputFile ? rawInputFile : cnvInputFile;98 // pmFPAfile *srcInputFile = rawInputFile ? rawInputFile : cnvInputFile; 99 99 if (sources && strlen(sources) > 0) { 100 if (!defineFile(config, srcInputFile, "PSPHOT.STACK.SOURCES.CNV", sources, PM_FPA_FILE_CMF)) {100 if (!defineFile(config, NULL, "PSPHOT.STACK.SOURCES", sources, PM_FPA_FILE_CMF)) { 101 101 psError(PS_ERR_UNKNOWN, false, "Unable to define file from sources %d (%s)", i, sources); 102 102 return false;
Note:
See TracChangeset
for help on using the changeset viewer.
