IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 8, 2010, 1:55:26 PM (16 years ago)
Author:
eugene
Message:

working on psphotStack psf matching

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/psphot.20100506/src/psphotStackParseCamera.c

    r27883 r27884  
    2929
    3030        // RAW (unconvolved) input data (RAW:IMAGE, RAW:MASK, RAW:VARIANCE, RAW:PSF)
    31         psString rawImage = psMetadataLookupStr(NULL, input, "RAW:IMAGE"); // Name of image
     31        psString rawImage = psMetadataLookupStr(&status, input, "RAW:IMAGE"); // Name of image
    3232        if (rawImage && strlen(rawImage) > 0) {
    33             pmFPAfile *rawInputFile = defineFile(config, NULL, "PSPHOT.STACK.INPUT.RAW", rawImage, PM_FPA_FILE_IMAGE); // File for image
     33            rawInputFile = defineFile(config, NULL, "PSPHOT.STACK.INPUT.RAW", rawImage, PM_FPA_FILE_IMAGE); // File for image
    3434            if (!rawInputFile) {
    3535                psError(PS_ERR_UNKNOWN, false, "Unable to define file from image %d (%s)", i, rawImage);
     
    6060
    6161        // CNV (convolved) input data (CNV:IMAGE, CNV:MASK, CNV:VARIANCE, CNV:PSF)
    62         psString cnvImage = psMetadataLookupStr(NULL, input, "CNV:IMAGE"); // Name of image
     62        psString cnvImage = psMetadataLookupStr(&status, input, "CNV:IMAGE"); // Name of image
    6363        if (cnvImage && strlen(cnvImage) > 0) {
    64             pmFPAfile *cnvInputFile = defineFile(config, NULL, "PSPHOT.STACK.INPUT.CNV", cnvImage, PM_FPA_FILE_IMAGE); // File for image
     64            cnvInputFile = defineFile(config, NULL, "PSPHOT.STACK.INPUT.CNV", cnvImage, PM_FPA_FILE_IMAGE); // File for image
    6565            if (!cnvInputFile) {
    6666                psError(PS_ERR_UNKNOWN, false, "Unable to define file from image %d (%s)", i, cnvImage);
     
    9696
    9797        psString sources = psMetadataLookupStr(&status, input, "SOURCES"); // Name of mask
    98         pmFPAfile *srcInputFile = rawInputFile ? rawInputFile : cnvInputFile;
     98        // pmFPAfile *srcInputFile = rawInputFile ? rawInputFile : cnvInputFile;
    9999        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)) {
    101101                psError(PS_ERR_UNKNOWN, false, "Unable to define file from sources %d (%s)", i, sources);
    102102                return false;
Note: See TracChangeset for help on using the changeset viewer.