IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 26543


Ignore:
Timestamp:
Jan 7, 2010, 5:37:07 PM (16 years ago)
Author:
eugene
Message:

update to use new PSPHOT.INPUT handling code which allows multiple images

Location:
branches/eam_branches/20091201
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/20091201/ppImage/src/ppImageParseCamera.c

    r24492 r26543  
    256256        PS_ASSERT (psphotInput, false);
    257257
     258        // specify the number of psphot input images
     259        psMetadataAddS32 (config->arguments, PS_LIST_TAIL, "PSPHOT.INPUT.NUM", PS_META_REPLACE, "number of inputs", 1);
     260       
    258261        // define associated psphot input/output files
    259262        if (!psphotDefineFiles (config, psphotInput)) {
  • branches/eam_branches/20091201/ppImage/src/ppImageReplaceBackground.c

    r25759 r26543  
    8080    // the background model has not been defined, or at least not generated
    8181    if (!modelFile || !modelRO) {
    82         if (!psphotModelBackground(config, &roView, "PPIMAGE.CHIP")) {
     82        if (!psphotModelBackgroundReadoutFileIndex(config, &roView, "PPIMAGE.CHIP", 0)) {
    8383            psError(PS_ERR_UNKNOWN, false, "Unable to model background");
    8484            return false;
  • branches/eam_branches/20091201/ppSim/src/ppSimPhotomReadout.c

    r21183 r26543  
    3939# if 0   
    4040    // set the photcode for this image
    41     if (!psphotAddPhotcode (recipe, config, view, "PPSIM.CHIP")) {
     41    if (!psphotAddPhotcodeReadout (recipe, config, view, "PPSIM.CHIP", 0)) {
    4242        psError (PSPHOT_ERR_CONFIG, false, "trouble defining the photcode");
    4343        return false;
     
    7474
    7575    // Generate the mask and weight images, including the user-defined analysis region of interest
    76     psphotSetMaskAndWeight (config, readout, recipe);
     76    psphotSetMaskAndWeight (config, view, recipe);
    7777
    7878    // load the psf model, if suppled.  FWHM_X,FWHM_Y,etc are saved in the recipe
     
    8585
    8686    // generate a background model (median, smoothed image)
    87     if (!psphotModelBackground (config, view, "PPSIM.CHIP")) {
     87    if (!psphotModelBackgroundReadoutFileIndex (config, view, "PPSIM.CHIP", 0)) {
    8888        return psphotReadoutCleanup (config, readout, recipe, NULL, NULL, NULL);
    8989    }
    90     if (!psphotSubtractBackground (config, view, "PPSIM.CHIP")) {
     90    if (!psphotSubtractBackgroundReadout (config, view, "PPSIM.CHIP", 0)) {
    9191        return psphotReadoutCleanup (config, readout, recipe, NULL, NULL, NULL);
    9292    }
  • branches/eam_branches/20091201/ppSim/src/ppSimPhotomReadoutFake.c

    r21365 r26543  
    1414# if 0
    1515    // set the photcode for this image
    16     if (!psphotAddPhotcode (recipe, config, view, "PPSIM.FAKE.CHIP")) {
     16    if (!psphotAddPhotcodeReadout (recipe, config, view, "PPSIM.FAKE.CHIP", 0)) {
    1717        psError (PSPHOT_ERR_CONFIG, false, "trouble defining the photcode");
    1818        return false;
     
    3636
    3737    // Generate the mask and variance images, including the user-defined analysis region of interest
    38     psphotSetMaskAndVariance (config, readout, recipe);
     38    psphotSetMaskAndVariance (config, view, recipe);
    3939
    4040    // XXX need to define the source pixels
     
    6565
    6666    // generate a background model (median, smoothed image)
    67     if (!psphotModelBackground (config, view, "PPSIM.FAKE.CHIP")) {
     67    if (!psphotModelBackgroundReadoutFileIndex (config, view, "PPSIM.FAKE.CHIP", 0)) {
    6868        return psphotReadoutCleanup (config, readout, recipe, NULL, NULL, NULL);
    6969    }
    70     if (!psphotSubtractBackground (config, view, "PPSIM.FAKE.CHIP")) {
     70    if (!psphotSubtractBackgroundReadout (config, view, "PPSIM.FAKE.CHIP", 0)) {
    7171        return psphotReadoutCleanup (config, readout, recipe, NULL, NULL, NULL);
    7272    }
  • branches/eam_branches/20091201/ppSim/src/ppSimPhotomReadoutForce.c

    r21365 r26543  
    1414# if 0
    1515    // set the photcode for this image
    16     if (!psphotAddPhotcode (recipe, config, view, "PPSIM.FAKE.CHIP")) {
     16    if (!psphotAddPhotcodeReadout (recipe, config, view, "PPSIM.FAKE.CHIP", 0)) {
    1717        psError (PSPHOT_ERR_CONFIG, false, "trouble defining the photcode");
    1818        return false;
     
    3636
    3737    // Generate the mask and variance images, including the user-defined analysis region of interest
    38     psphotSetMaskAndVariance (config, readout, recipe);
     38    psphotSetMaskAndVariance (config, view, recipe);
    3939
    4040    // XXX need to define the source pixels
     
    5858
    5959    // generate a background model (median, smoothed image)
    60     if (!psphotModelBackground (config, view, "PPSIM.FORCE.CHIP")) {
     60    if (!psphotModelBackgroundReadoutFileIndex (config, view, "PPSIM.FORCE.CHIP", 0)) {
    6161        return psphotReadoutCleanup (config, readout, recipe, NULL, NULL, NULL);
    6262    }
    63     if (!psphotSubtractBackground (config, view, "PPSIM.FORCE.CHIP")) {
     63    if (!psphotSubtractBackgroundReadout (config, view, "PPSIM.FORCE.CHIP", 0)) {
    6464        return psphotReadoutCleanup (config, readout, recipe, NULL, NULL, NULL);
    6565    }
  • branches/eam_branches/20091201/ppStack/src/ppStackCamera.c

    r26076 r26543  
    373373        psMetadataLookupBool(&mdok, config->arguments, "-photometry"); // perform photometry
    374374    if (doPhotom) {
    375         // This file, PSPHOT.INPUT, is just used as a carrier; output files (eg, PSPHOT.RESID) are defined by
    376         // psphotDefineFiles
     375        // This pmFPAfile, PSPHOT.INPUT, is just used as a carrier; output files (eg,
     376        // PSPHOT.RESID) are defined by psphotDefineFiles
    377377        pmFPAfile *psphotInput = pmFPAfileDefineFromFPA(config, output->fpa, 1, 1, "PSPHOT.INPUT");
    378378        if (!psphotInput) {
     
    380380            return false;
    381381        }
     382        // specify the number of psphot input images
     383        psMetadataAddS32 (config->arguments, PS_LIST_TAIL, "PSPHOT.INPUT.NUM", PS_META_REPLACE, "number of inputs", 1);
    382384
    383385        // Define associated psphot input/output files
  • branches/eam_branches/20091201/ppStack/src/ppStackMatch.c

    r26537 r26543  
    144144    psMetadataAddU8(psphotRecipe, PS_LIST_TAIL, "MASK.PSPHOT", PS_META_REPLACE, "user-defined mask", maskBad);
    145145
    146     psImage *binned = psphotBackgroundModel(ro, config); // Binned background model
     146    psImage *binned = psphotModelBackgroundReadoutNoFile(ro, config); // Binned background model
    147147    psImageBinning *binning = psMetadataLookupPtr(NULL, ro->analysis,
    148148                                                  "PSPHOT.BACKGROUND.BINNING"); // Binning for model
  • branches/eam_branches/20091201/ppSub/src/ppSubBackground.c

    r23740 r26543  
    4242    if (!modelRO) {
    4343        // Create the background model
    44         if (!psphotModelBackground(config, view, "PPSUB.OUTPUT")) {
     44        if (!psphotModelBackgroundReadoutFileIndex(config, view, "PPSUB.OUTPUT", 0)) {
    4545            psError(PS_ERR_UNKNOWN, false, "Unable to model background");
    4646            psFree(view);
  • branches/eam_branches/20091201/ppSub/src/ppSubCamera.c

    r26432 r26543  
    317317            return false;
    318318        }
     319        // specify the number of psphot input images
     320        psMetadataAddS32 (config->arguments, PS_LIST_TAIL, "PSPHOT.INPUT.NUM", PS_META_REPLACE, "number of inputs", 1);
    319321        pmFPAfileActivate(config->files, false, "PSPHOT.INPUT");
    320322
  • branches/eam_branches/20091201/pswarp/src/pswarpParseCamera.c

    r25522 r26543  
    142142        }
    143143        psphotInput->src = psMemIncrRefCounter(output->fpa);
     144        // specify the number of psphot input images
     145        psMetadataAddS32 (config->arguments, PS_LIST_TAIL, "PSPHOT.INPUT.NUM", PS_META_REPLACE, "number of inputs", 1);
    144146
    145147        pmFPAfile *psphotInSources = pmFPAfileDefineSkycell(config, output->fpa, "PSPHOT.INPUT.CMF");
Note: See TracChangeset for help on using the changeset viewer.