Changeset 9325 for trunk/ppMerge/src/ppMergeOptions.c
- Timestamp:
- Oct 5, 2006, 3:29:58 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/ppMerge/src/ppMergeOptions.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppMerge/src/ppMergeOptions.c
r8847 r9325 35 35 options->scale = false; 36 36 options->exptime = false; 37 options->shutter = false; 37 38 options->sample = 1; 38 options->background = PS_STAT_SAMPLE_MEDIAN; 39 options->mean = PS_STAT_SAMPLE_MEDIAN; 40 options->stdev = PS_STAT_SAMPLE_STDEV; 41 options->shutterSize = 10; 39 42 options->onOff = 0; 40 43 options->combine = pmCombineParamsAlloc(PS_STAT_SAMPLE_MEAN); … … 72 75 return 0; 73 76 } 74 if (strcasecmp(stat, "MEAN") == 0 || strcasecmp(stat, "SAMPLE_MEAN") == 0) { 75 return PS_STAT_SAMPLE_MEAN; 76 } 77 if (strcasecmp(stat, "MEDIAN") == 0 || strcasecmp(stat, "SAMPLE_MEDIAN") == 0) { 78 return PS_STAT_SAMPLE_MEDIAN; 79 } 80 if (strcasecmp(stat, "ROBUST") == 0 || strcasecmp(stat, "ROBUST_MEDIAN") == 0) { 81 return PS_STAT_ROBUST_MEDIAN; 82 } 83 if (strcasecmp(stat, "FITTED") == 0 || strcasecmp(stat, "FITTED_MEAN") == 0) { 84 return PS_STAT_FITTED_MEAN; 85 } 86 if (strcasecmp(stat, "CLIPPED") == 0 || strcasecmp(stat, "CLIPPED_MEAN") == 0) { 87 return PS_STAT_CLIPPED_MEAN; 88 } 89 90 psError(PS_ERR_IO, true, "Unable to interpret statistic: %s\n", name); 91 return 0; 77 return psStatsOptionFromString(stat); 92 78 } 93 79 … … 143 129 OPTION_PARSE(options->combine->nKeep, recipe, "NKEEP", S32 ); 144 130 OPTION_PARSE(options->combine->maskVal, recipe, "MASKVAL", S32 ); 131 OPTION_PARSE(options->shutterSize, recipe, "SHUTTERSIZE", S32 ); 145 132 options->combine->combine = parseStat(recipe, "COMBINE"); 146 options->background = parseStat(recipe, "BACKGROUND"); 133 options->mean = parseStat(recipe, "MEAN"); 134 options->stdev = parseStat(recipe, "STDEV"); 147 135 148 136 // Now the command-line options. These are parameters that depend on what type of frame is being combined … … 155 143 options->scale = false; 156 144 options->exptime = false; 145 options->shutter = false; 157 146 } else if (strcasecmp(type, "DARK") == 0) { 158 147 options->zero = false; 159 148 options->scale = false; 160 149 options->exptime = true; 150 options->shutter = false; 161 151 } else if (strcasecmp(type, "FLAT") == 0) { 162 152 options->zero = false; 163 153 options->scale = true; 164 154 options->exptime = false; 155 options->shutter = false; 165 156 } else if (strcasecmp(type, "FRINGE") == 0) { 166 157 options->zero = true; 167 158 options->scale = true; 168 159 options->exptime = false; 160 options->shutter = false; 161 } else if (strcasecmp(type, "SHUTTER") == 0) { 162 options->zero = false; 163 options->scale = false; 164 options->exptime = false; 165 options->shutter = true; 169 166 } else { 170 167 psLogMsg(__func__, PS_LOG_WARN, "Unrecognised image type: %s --- assuming BIAS.\n", type); … … 172 169 options->scale = false; 173 170 options->exptime = false; 171 options->shutter = false; 174 172 } 175 173 } else {
Note:
See TracChangeset
for help on using the changeset viewer.
