Changeset 6849 for trunk/ppImage/src/ppImageOptions.c
- Timestamp:
- Apr 12, 2006, 8:29:24 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/ppImage/src/ppImageOptions.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppImage/src/ppImageOptions.c
r6817 r6849 23 23 ppImageOptions *ppImageOptionsParse(pmConfig *config) 24 24 { 25 25 bool status; 26 26 ppImageOptions *options = ppImageOptionsAlloc (); 27 27 … … 137 137 138 138 // 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"); 142 143 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; 147 149 148 // Dark recipe options149 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; 152 154 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"); 157 157 158 // options->doBin1JPEG = psMetadataLookupBool(NULL, recipe, "BIN1.JPEG"); 159 // options->doBin2JPEG = psMetadataLookupBool(NULL, recipe, "BIN2.JPEG"); 160 158 161 return options; 159 162 }
Note:
See TracChangeset
for help on using the changeset viewer.
