IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 25, 2012, 11:01:07 AM (14 years ago)
Author:
bills
Message:

Put the stack_id into the psphotStack output cmf file names instead of an integer

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psphot/src/psphotStackParseCamera.c

    r33690 r33913  
    129129        }
    130130
     131        psS64 stack_id = psMetadataLookupS64(&status, input, "STACK_ID");
     132        if (!status) {
     133            psError(PS_ERR_UNKNOWN, false, "Unable to find STACK_ID from sources %d", i);
     134            return false;
     135        }
    131136        // generate an pmFPAimage for the output convolved image
    132137        // XXX output of these files should be optional
     
    139144            }
    140145            outputImage->save = true;
    141             outputImage->fileID = i;            // this is used to generate output names
     146            outputImage->fileID = stack_id;             // this is used to generate output names
    142147
    143148            pmFPAfile *outputMask = pmFPAfileDefineOutput(config, outputImage->fpa, "PSPHOT.STACK.OUTPUT.MASK");
     
    151156            }
    152157            outputMask->save = true;
    153             outputMask->fileID = i;             // this is used to generate output names
     158            outputMask->fileID = stack_id;              // this is used to generate output names
    154159
    155160            pmFPAfile *outputVariance = pmFPAfileDefineOutput(config, outputImage->fpa, "PSPHOT.STACK.OUTPUT.VARIANCE");
     
    163168            }
    164169            outputVariance->save = true;
    165             outputVariance->fileID = i;         // this is used to generate output names
     170            outputVariance->fileID = stack_id;          // this is used to generate output names
    166171
    167172            // the output sources are carried on the outputImage->fpa structures
     
    172177            }
    173178            outsources->save = true;
    174             outsources->fileID = i;             // this is used to generate output names
     179            outsources->fileID = stack_id;              // this is used to generate output names
    175180        }
    176181    }
Note: See TracChangeset for help on using the changeset viewer.