IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 21, 2006, 12:51:48 PM (20 years ago)
Author:
eugene
Message:

various fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppImage/src/ppImageOptions.c

    r7531 r7621  
    2929    options->doFringe   = false;        // Fringe subtraction
    3030    options->doPhotom   = false;        // Source identification and photometry
    31     options->doAstrom   = false;        // Astrometry
     31    options->doAstromChip = false;      // Astrometry
     32    options->doAstromMosaic = false;    // Astrometry
    3233
    33     options->doBin1     = false;        // create binned image (scale 1)
    34     options->doBin2     = false;        // create binned image (scale 2)
    35     options->doBin1JPG  = false;        // create jpg of binned image (scale 1)
    36     options->doBin2JPG  = false;        // create jpg of binned image (scale 2)
     34    options->BaseFITS   = false;        // create binned image (scale 1)
     35    options->ChipFITS   = false;        // create binned image (scale 1)
     36    options->FPA1FITS   = false;        // create binned image (scale 1)
     37    options->FPA2FITS   = false;        // create binned image (scale 1)
     38
     39    options->Bin1FITS   = false;        // create binned image (scale 1)
     40    options->Bin2FITS   = false;        // create binned image (scale 2)
     41    options->Bin1JPEG   = false;        // create jpeg of binned image (scale 1)
     42    options->Bin2JPEG   = false;        // create jpeg of binned image (scale 2)
    3743
    3844    // Overscan defaults
     
    164170    if (!status) options->yBin1 = 16;
    165171
    166     options->doBin1 = psMetadataLookupBool(NULL, recipe, "BIN1.FITS");
    167     options->doBin1JPG = psMetadataLookupBool(NULL, recipe, "BIN1.JPEG");
    168     if (options->doBin1JPG && !options->doBin1) {
    169         psLogMsg(__func__, PS_LOG_ERROR, "Invalid Phase2 Options: cannot make JPG of Bin1 image without Bin1 image");
    170         exit(EXIT_FAILURE);
    171     }
     172    options->BaseFITS = psMetadataLookupBool(NULL, recipe, "BASE.FITS");
     173    options->ChipFITS = psMetadataLookupBool(NULL, recipe, "CHIP.FITS");
     174    options->FPA1FITS = psMetadataLookupBool(NULL, recipe, "FPA1.FITS");
     175    options->FPA2FITS = psMetadataLookupBool(NULL, recipe, "FPA2.FITS");
    172176
    173     options->doBin2 = psMetadataLookupBool(NULL, recipe, "BIN2.FITS");
    174     options->doBin2JPG = psMetadataLookupBool(NULL, recipe, "BIN2.JPEG");
    175     if (options->doBin2JPG && !options->doBin2) {
    176         psLogMsg(__func__, PS_LOG_ERROR, "Invalid Phase2 Options: cannot make JPG of Bin2 image without Bin2 image");
    177         exit(EXIT_FAILURE);
    178     }
     177    options->Bin1FITS = psMetadataLookupBool(NULL, recipe, "BIN1.FITS");
     178    options->Bin1JPEG = psMetadataLookupBool(NULL, recipe, "BIN1.JPEG");
     179    options->Bin2FITS = psMetadataLookupBool(NULL, recipe, "BIN2.FITS");
     180    options->Bin2JPEG = psMetadataLookupBool(NULL, recipe, "BIN2.JPEG");
    179181   
    180182    options->doPhotom = psMetadataLookupBool(NULL, recipe, "PHOTOM");
    181     options->doAstrom = psMetadataLookupBool(NULL, recipe, "ASTROM");
    182     if (options->doAstrom && !options->doPhotom) {
     183    options->doAstromChip = psMetadataLookupBool(NULL, recipe, "ASTROM.CHIP");
     184    options->doAstromMosaic = psMetadataLookupBool(NULL, recipe, "ASTROM.MOSAIC");
     185    if ((options->doAstromChip || options->doAstromMosaic) && !options->doPhotom) {
    183186        psLogMsg(__func__, PS_LOG_ERROR, "Invalid Phase2 Options: cannot do ASTROMetry without PHOTOMetry");
    184187        exit(EXIT_FAILURE);
Note: See TracChangeset for help on using the changeset viewer.