IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 27596 for trunk/ppSub


Ignore:
Timestamp:
Apr 5, 2010, 10:16:10 AM (16 years ago)
Author:
Paul Price
Message:

Merging branches/pap_delete/ into trunk after successful testing. This provides automatic deletion of the convolved images from the diff stage.

Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/ppSub/src/ppSub.h

    r27109 r27596  
    4545    bool photometry;                    // Perform photometry?
    4646    bool inverse;                       // Output inverse subtraction as well?
     47    bool saveInConv;                    // Save convolved input?
     48    bool saveRefConv;                   // Save convolved reference?
    4749    psString stamps;                    // Stamps file
    4850    pmPSF *psf;                         // Point Spread Function
  • trunk/ppSub/src/ppSubArguments.c

    r27143 r27596  
    8787    psMetadataAddBool(arguments, PS_LIST_TAIL, "-photometry", 0, "Perform photometry?", NULL);
    8888    psMetadataAddF32(arguments, PS_LIST_TAIL, "-zp", 0, "Zero point for photometry", NAN);
    89     psMetadataAddBool(arguments, PS_LIST_TAIL, "-inverse", 0, "Generate inverse subtractions?", NULL);
     89    psMetadataAddBool(arguments, PS_LIST_TAIL, "-inverse", 0, "Generate inverse subtractions?", false);
     90    psMetadataAddBool(arguments, PS_LIST_TAIL, "-save-inconv", 0, "Save input convolved images?", false);
     91    psMetadataAddBool(arguments, PS_LIST_TAIL, "-save-refconv", 0, "Save reference convolved images?", false);
    9092    psMetadataAddBool(arguments, PS_LIST_TAIL, "-visual", 0, "Show diagnostic plots", NULL);
    9193
     
    154156    }
    155157
     158    data->saveInConv = psMetadataLookupBool(NULL, arguments, "-save-inconv");
     159    data->saveRefConv = psMetadataLookupBool(NULL, arguments, "-save-refconv");
     160
    156161    if (psMetadataLookupBool(NULL, arguments, "-visual")) {
    157162        pmVisualSetVisual(true);
  • trunk/ppSub/src/ppSubCamera.c

    r27040 r27596  
    219219    data->photometry = psMetadataLookupBool(NULL, recipe, "PHOTOMETRY");
    220220
    221     bool mdok;                          // Status of MD lookup
    222     bool saveConv = psMetadataLookupBool(&mdok, recipe, "SAVE.CONVOLVED"); // Save convolved images?
    223 
    224221    // Convolved input image
    225222    pmFPAfile *inConvImage = defineOutputFile(config, input, true, "PPSUB.INPUT.CONV", PM_FPA_FILE_IMAGE);
     
    230227        return false;
    231228    }
    232     if (saveConv) {
    233         inConvImage->save = true;
    234         inConvMask->save = true;
    235     }
     229    inConvImage->save = data->saveInConv;
     230    inConvMask->save = data->saveInConv;
    236231    if (inVar) {
    237232        pmFPAfile *inConvVar = defineOutputFile(config, inConvImage, false, "PPSUB.INPUT.CONV.VARIANCE",
     
    241236            return false;
    242237        }
    243         if (saveConv) {
    244             inConvVar->save = true;
    245         }
     238        inConvVar->save = data->saveInConv;
    246239    }
    247240
     
    254247        return false;
    255248    }
    256     if (saveConv) {
    257         refConvImage->save = true;
    258         refConvMask->save = true;
    259     }
     249    refConvImage->save = data->saveRefConv;
     250    refConvMask->save = data->saveRefConv;
    260251    if (refVar) {
    261252        pmFPAfile *refConvVar = defineOutputFile(config, refConvImage, false, "PPSUB.REF.CONV.VARIANCE",
     
    265256            return false;
    266257        }
    267         if (saveConv) {
    268             refConvVar->save = true;
    269         }
     258        refConvVar->save = data->saveRefConv;
    270259    }
    271260
  • trunk/ppSub/src/ppSubData.c

    r27061 r27596  
    3333    data->photometry = false;
    3434    data->inverse = false;
     35    data->saveInConv = false;
     36    data->saveRefConv = false;
    3537    data->stamps = NULL;
    3638    data->psf = NULL;
Note: See TracChangeset for help on using the changeset viewer.