Changeset 14491
- Timestamp:
- Aug 14, 2007, 12:25:45 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/ppImage/src/ppImageOptions.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppImage/src/ppImageOptions.c
r14223 r14491 18 18 19 19 // actions which ppImage should perform 20 options->doMaskBuild = false; // Build internal mask21 options->doWeightBuild = false; // Build internal weight22 options->doMask = false; // Mask bad pixels23 options->doNonLin = false; // Non-linearity correction24 options->doOverscan = false; // Overscan subtraction25 options->doBias = false; // Bias subtraction26 options->doDark = false; // Dark subtraction27 options->doShutter = false; // Shutter correction28 options->doFlat = false; // Flat-field normalisation29 options->doFringe = false; // Fringe subtraction30 options->doPhotom = false; // Source identification and photometry31 options->doAstromChip = false; // Astrometry (per-chip)32 options->doAstromMosaic = false; // Astrometry (full-mosaic)33 options->doStats = false; // Measure and save image statistics20 options->doMaskBuild = false; // Build internal mask 21 options->doWeightBuild = false; // Build internal weight 22 options->doMask = false; // Mask bad pixels 23 options->doNonLin = false; // Non-linearity correction 24 options->doOverscan = false; // Overscan subtraction 25 options->doBias = false; // Bias subtraction 26 options->doDark = false; // Dark subtraction 27 options->doShutter = false; // Shutter correction 28 options->doFlat = false; // Flat-field normalisation 29 options->doFringe = false; // Fringe subtraction 30 options->doPhotom = false; // Source identification and photometry 31 options->doAstromChip = false; // Astrometry (per-chip) 32 options->doAstromMosaic = false; // Astrometry (full-mosaic) 33 options->doStats = false; // Measure and save image statistics 34 34 35 35 // output files requested 36 options->BaseFITS = false; // create output image37 options->BaseMaskFITS = false; // create output mask image38 options->BaseWeightFITS = false; // create output weight image39 40 options->ChipFITS = false; // create output chip-mosaic image41 options->ChipMaskFITS = false; // create output chip-mosaic mask image42 options->ChipWeightFITS = false; // create output chip-mosaic weight image43 44 options->FPA1FITS = false; // create fpa-mosaic binned image (scale 1)45 options->FPA2FITS = false; // create fpa-mosaic binned image (scale 2)46 options->Bin1FITS = false; // create binned image (scale 1)47 options->Bin2FITS = false; // create binned image (scale 2)48 options->Bin1JPEG = false; // create jpeg of binned image (scale 1)49 options->Bin2JPEG = false; // create jpeg of binned image (scale 2)36 options->BaseFITS = false; // create output image 37 options->BaseMaskFITS = false; // create output mask image 38 options->BaseWeightFITS = false; // create output weight image 39 40 options->ChipFITS = false; // create output chip-mosaic image 41 options->ChipMaskFITS = false; // create output chip-mosaic mask image 42 options->ChipWeightFITS = false; // create output chip-mosaic weight image 43 44 options->FPA1FITS = false; // create fpa-mosaic binned image (scale 1) 45 options->FPA2FITS = false; // create fpa-mosaic binned image (scale 2) 46 options->Bin1FITS = false; // create binned image (scale 1) 47 options->Bin2FITS = false; // create binned image (scale 2) 48 options->Bin1JPEG = false; // create jpeg of binned image (scale 1) 49 options->Bin2JPEG = false; // create jpeg of binned image (scale 2) 50 50 51 51 // default flags for various activities 52 options->maskValue = 0x00; // Default mask value53 options->satMask = 0x00; // Saturated pixels54 options->badMask = 0x00; // Bad pixels55 options->flatMask = 0x00; // Bad flat pixels56 options->blankMask = 0x00; // Blank (no data, cell gap) pixels52 options->maskValue = 0x00; // Default mask value 53 options->satMask = 0x00; // Saturated pixels 54 options->badMask = 0x00; // Bad pixels 55 options->flatMask = 0x00; // Bad flat pixels 56 options->blankMask = 0x00; // Blank (no data, cell gap) pixels 57 57 58 58 // Non-linearity default options … … 62 62 63 63 // Overscan defaults 64 options->overscan = NULL; // Overscan options64 options->overscan = NULL; // Overscan options 65 65 66 66 // binning parameters 67 options->xBin1 = 16;// x-binning, scale 168 options->yBin1 = 16;// y-binning, scale 169 options->xBin2 = 16;// x-binning, scale 270 options->yBin2 = 16;// y-binning, scale 267 options->xBin1 = 16; // x-binning, scale 1 68 options->yBin1 = 16; // y-binning, scale 1 69 options->xBin2 = 16; // x-binning, scale 2 70 options->yBin2 = 16; // y-binning, scale 2 71 71 72 72 // Fringe defaults 73 options->fringeRej = NAN; // Fringe rejection limit74 options->fringeIter = 0; // Fringe iterations75 options->fringeKeep = 1.0; // Fringe keep fraction73 options->fringeRej = NAN; // Fringe rejection limit 74 options->fringeIter = 0; // Fringe iterations 75 options->fringeKeep = 1.0; // Fringe keep fraction 76 76 77 77 return options; … … 207 207 char *statsName = psMetadataLookupStr(&status, config->arguments, "STATS"); // Filename for statistics 208 208 if (statsName) { 209 options->doStats = true;209 options->doStats = true; 210 210 } 211 211 … … 230 230 psWarning("BIN2.YBIN not found in recipe: setting to default value.\n"); 231 231 options->yBin1 = 16; 232 }233 234 // even if not requested explicitly, if any of these are set, build an internal mask and weight:235 if (options->doMask || options->doShutter || options->doFlat || options->doPhotom) {236 options->doMaskBuild = true;237 options->doWeightBuild = true;238 232 } 239 233 … … 246 240 options->ChipWeightFITS = psMetadataLookupBool(NULL, recipe, "CHIP.WEIGHT.FITS"); 247 241 248 options->FPA1FITS = psMetadataLookupBool(NULL, recipe, "FPA1.FITS");249 options->FPA2FITS = psMetadataLookupBool(NULL, recipe, "FPA2.FITS");250 251 options->Bin1FITS = psMetadataLookupBool(NULL, recipe, "BIN1.FITS");252 options->Bin1JPEG = psMetadataLookupBool(NULL, recipe, "BIN1.JPEG");253 options->Bin2FITS = psMetadataLookupBool(NULL, recipe, "BIN2.FITS");254 options->Bin2JPEG = psMetadataLookupBool(NULL, recipe, "BIN2.JPEG");242 options->FPA1FITS = psMetadataLookupBool(NULL, recipe, "FPA1.FITS"); 243 options->FPA2FITS = psMetadataLookupBool(NULL, recipe, "FPA2.FITS"); 244 245 options->Bin1FITS = psMetadataLookupBool(NULL, recipe, "BIN1.FITS"); 246 options->Bin1JPEG = psMetadataLookupBool(NULL, recipe, "BIN1.JPEG"); 247 options->Bin2FITS = psMetadataLookupBool(NULL, recipe, "BIN2.FITS"); 248 options->Bin2JPEG = psMetadataLookupBool(NULL, recipe, "BIN2.JPEG"); 255 249 256 250 options->doPhotom = psMetadataLookupBool(NULL, recipe, "PHOTOM"); 257 251 options->doAstromChip = psMetadataLookupBool(NULL, recipe, "ASTROM.CHIP"); 258 252 options->doAstromMosaic = psMetadataLookupBool(NULL, recipe, "ASTROM.MOSAIC"); 253 254 // even if not requested explicitly, if any of these are set, build an internal mask and weight: 255 if (options->doMask || options->doShutter || options->doFlat || options->doPhotom) { 256 options->doMaskBuild = true; 257 options->doWeightBuild = true; 258 } 259 259 260 260 if ((options->doAstromChip || options->doAstromMosaic) && !options->doPhotom) {
Note:
See TracChangeset
for help on using the changeset viewer.
