IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 12, 2006, 8:29:24 PM (20 years ago)
Author:
eugene
Message:

completed conversion to pmFPAfile paradigm

File:
1 edited

Legend:

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

    r6817 r6849  
    2323ppImageOptions *ppImageOptionsParse(pmConfig *config)
    2424{
    25 
     25    bool status;
    2626    ppImageOptions *options = ppImageOptionsAlloc ();
    2727
     
    137137
    138138    // Mask recipe options
    139     if (psMetadataLookupBool(NULL, recipe, "MASK")) {
    140         options->doMask = true;
    141     }
     139    options->doMask = psMetadataLookupBool(NULL, recipe, "MASK");
     140    options->doBias = psMetadataLookupBool(NULL, recipe, "BIAS");
     141    options->doDark = psMetadataLookupBool(NULL, recipe, "DARK");
     142    options->doFlat = psMetadataLookupBool(NULL, recipe, "FLAT");
    142143
    143     // Bias recipe options
    144     if (psMetadataLookupBool(NULL, recipe, "BIAS")) {
    145         options->doBias = true;
    146     }
     144    // binned image options
     145    options->xBin1 = psMetadataLookupS32(&status, recipe, "BIN1.XBIN");
     146    if (!status) options->xBin1 = 16;
     147    options->yBin1 = psMetadataLookupS32(&status, recipe, "BIN1.YBIN");
     148    if (!status) options->yBin1 = 16;
    147149
    148     // Dark recipe options
    149     if (psMetadataLookupBool(NULL, recipe, "DARK")) {
    150         options->doDark = true;
    151     }
     150    options->xBin2 = psMetadataLookupS32(&status, recipe, "BIN2.XBIN");
     151    if (!status) options->xBin1 = 16;
     152    options->yBin2 = psMetadataLookupS32(&status, recipe, "BIN2.YBIN");
     153    if (!status) options->yBin1 = 16;
    152154
    153     // Flat recipe options
    154     if (psMetadataLookupBool(NULL, recipe, "FLAT")) {
    155         options->doFlat = true;
    156     }
     155    options->doBin1 = psMetadataLookupBool(NULL, recipe, "BIN1.FITS");
     156    options->doBin2 = psMetadataLookupBool(NULL, recipe, "BIN2.FITS");
    157157
     158    // options->doBin1JPEG = psMetadataLookupBool(NULL, recipe, "BIN1.JPEG");
     159    // options->doBin2JPEG = psMetadataLookupBool(NULL, recipe, "BIN2.JPEG");
     160   
    158161    return options;
    159162}
Note: See TracChangeset for help on using the changeset viewer.