Changeset 30419
- Timestamp:
- Jan 28, 2011, 3:13:28 PM (15 years ago)
- Location:
- branches/czw_branch/20101203
- Files:
-
- 8 edited
-
ippScripts/scripts/stack_skycell.pl (modified) (2 diffs)
-
ippconfig/gpc1/ppStack.config (modified) (1 diff)
-
ippconfig/recipes/ppStack.config (modified) (1 diff)
-
ippconfig/recipes/reductionClasses.mdc (modified) (1 diff)
-
psLib/src/fits/psFits.h (modified) (2 diffs)
-
psLib/src/fits/psFitsImage.c (modified) (2 diffs)
-
psLib/src/fits/psFitsScale.c (modified) (3 diffs)
-
psModules/src/camera/pmFPAfileDefine.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/czw_branch/20101203/ippScripts/scripts/stack_skycell.pl
r29766 r30419 172 172 my $photometry = metadataLookupBool($recipe, 'PHOTOMETRY'); # perform photometry? 173 173 my $output_nocomp = metadataLookupBool($recipe, 'OUTPUT.NOCOMP'); # change filerules to produced uncompressed output images 174 174 my $output_logflux = metadataLookupBool($recipe, 'OUTPUT.LOGFLUX'); # change filerules to produce logflux compressed output images. 175 176 if ($output_nocomp and $output_logflux) { 177 &my_die("Unable to not compress and logflux compress simultaneously. Check config.",$stack_id, $PS_EXIT_CONFIG_ERROR); 178 } 175 179 176 180 # Generate MDC file with the inputs … … 252 256 $command .= " -F PPSTACK.UNCONV.EXPWT PPSTACK.UNCONV.EXPWT.NOCOMP"; 253 257 } 258 if ($output_logflux) { 259 $command .= " -R PPSTACK.OUTPUT FITS.TYPE COMP_STACK "; # Just this one output component? 260 $command .= " -R PPSTACK.OUTPUT.VARIANCE FITS.TYPE COMP_STACK "; 261 $command .= " -R PPSTACK.OUTPUT.EXPWT FITS.TYPE COMP_STACK "; 262 $command .= " -R PPSTACK.UNCONV FITS.TYPE COMP_STACK "; 263 $command .= " -R PPSTACK.UNCONV.VARIANCE FITS.TYPE COMP_STACK "; 264 $command .= " -R PPSTACK.UNCONV.EXPWT FITS.TYPE COMP_STACK "; 265 } 254 266 $command .= " -threads $threads" if defined $threads; 255 267 $command .= " -debug-stack" if defined $debug; -
branches/czw_branch/20101203/ippconfig/gpc1/ppStack.config
r29766 r30419 20 20 PS1_REFERENCE METADATA 21 21 OUTPUT.NOCOMP BOOL TRUE 22 OUTPUT.LOGFLUX BOOL FALSE 22 23 END 24 25 STACK_DEEP METADATA 26 OUTPUT.NOCOMP BOOL TRUE 27 OUTPUT.LOGFLUX BOOL FALSE 28 END 29 30 STACK_NIGHTLY METADATA 31 OUTPUT.NOCOMP BOOL FALSE 32 OUTPUT.LOGFLUX BOOL FALSE 33 END 34 35 STACK_THREEPI METADATA 36 OUTPUT.NOCOMP BOOL FALSE 37 OUTPUT.LOGFLUX BOOL TRUE 38 END -
branches/czw_branch/20101203/ippconfig/recipes/ppStack.config
r29766 r30419 112 112 PHOTOMETRY BOOL FALSE # Do basic photometry? 113 113 END 114 115 116 # 117 118 STACK_DEEP METADATA 119 END 120 121 STACK_NIGHTLY METADATA 122 END 123 124 STACK_THREEPI METADATA 125 END -
branches/czw_branch/20101203/ippconfig/recipes/reductionClasses.mdc
r30118 r30419 192 192 JPEG_BIN1 STR PPIMAGE_J1 193 193 JPEG_BIN2 STR PPIMAGE_J2 194 END 195 196 # reduction classes for different stacks 197 # regular stacks 198 NIGHTLY_STACK METADATA 199 STACK_PPSTACK STR STACK_NIGHTLY 200 STACK_PPSUB STR STACK 201 STACK_PSPHOT STR STACK 202 END 203 204 # deep stacks 205 DEEP_STACK METADATA 206 STACK_PPSTACK STR STACK_DEEP 207 STACK_PPSUB STR STACK 208 STACK_PSPHOT STR STACK 209 END 210 211 # three pi stacks 212 THREEPI_STACK METADATA 213 STACK_PPSTACK STR STACK_THREEPI 214 STACK_PPSUB STR STACK 215 STACK_PSPHOT STR STACK 194 216 END 195 217 -
branches/czw_branch/20101203/psLib/src/fits/psFits.h
r30119 r30419 50 50 PS_FITS_SCALE_STDEV_NEGATIVE, ///< Auto-scale to sample stdev, place mean at upper limit 51 51 PS_FITS_SCALE_STDEV_BOTH, ///< Auto-scale to sample stdev, place mean at middle 52 PS_FITS_SCALE_MANUAL, ///< Manual scaling (use specified BSCALE and BZERO) 52 53 PS_FITS_SCALE_LOG_RANGE, ///< Take logarithm, Auto-scale to preserve dynamic range 53 54 PS_FITS_SCALE_LOG_STDEV_POSITIVE, ///< Take logarithm, Auto-scale to sample stdev, place mean at lower limit 54 55 PS_FITS_SCALE_LOG_STDEV_NEGATIVE, ///< Take logarithm, Auto-scale to sample stdev, place mean at upper limit 55 56 PS_FITS_SCALE_LOG_STDEV_BOTH, ///< Take logarithm, Auto-scale to sample stdev, place mean at middle 56 57 PS_FITS_SCALE_MANUAL ///< Manual scaling (use specified BSCALE and BZERO) 57 PS_FITS_SCALE_LOG_MANUAL ///< Manual scaling (use specified BSCALE, BZERO, and BOFFSET) 58 58 } psFitsScaling; 59 59 … … 71 71 bool fuzz; ///< Fuzz the values when quantising floating-point values? 72 72 double bscale, bzero; ///< Manually specified BSCALE and BZERO (for SCALE_MANUAL) 73 double boffset; ///< Manually specified BOFFSET (for SCALE_MANUAL) 73 74 double mean, stdev; ///< Mean and standard deviation of image 74 75 int stdevBits; ///< Number of bits to sample a standard deviation (for SCALE_STDEV_*) -
branches/czw_branch/20101203/psLib/src/fits/psFitsImage.c
r30331 r30419 692 692 // Remove any BOFFSET values that exist in the header if we are not using that scaling anymore 693 693 if (options&&(!((options->scaling == PS_FITS_SCALE_LOG_RANGE)|| 694 (options->scaling == PS_FITS_SCALE_LOG_MANUAL)|| 694 695 (options->scaling == PS_FITS_SCALE_LOG_STDEV_POSITIVE)|| 695 696 (options->scaling == PS_FITS_SCALE_LOG_STDEV_NEGATIVE)|| … … 718 719 "Scaling: TRUE = BZERO + BSCALE * DISK", &status); 719 720 if (options&&(((options->scaling == PS_FITS_SCALE_LOG_RANGE)|| 721 (options->scaling == PS_FITS_SCALE_LOG_MANUAL)|| 720 722 (options->scaling == PS_FITS_SCALE_LOG_STDEV_POSITIVE)|| 721 723 (options->scaling == PS_FITS_SCALE_LOG_STDEV_NEGATIVE)|| -
branches/czw_branch/20101203/psLib/src/fits/psFitsScale.c
r30331 r30419 539 539 *bzero = options->bzero; 540 540 break; 541 case PS_FITS_SCALE_LOG_MANUAL: 542 *bscale = options->bscale; 543 *bzero = options->bzero; 544 *boffset = options->boffset; 545 break; 541 546 default: 542 547 psError(PS_ERR_BAD_PARAMETER_VALUE, true, "Unrecognised FITS scaling method: %x", … … 616 621 ps##INTYPE value; \ 617 622 if ((options->scaling == PS_FITS_SCALE_LOG_RANGE)|| \ 623 (options->scaling == PS_FITS_SCALE_LOG_MANUAL)|| \ 618 624 (options->scaling == PS_FITS_SCALE_LOG_STDEV_POSITIVE)|| \ 619 625 (options->scaling == PS_FITS_SCALE_LOG_STDEV_NEGATIVE)|| \ … … 756 762 if (strcasecmp(string, "STDEV_BOTH") == 0) return PS_FITS_SCALE_STDEV_BOTH; 757 763 if (strcasecmp(string, "LOG_RANGE") == 0) return PS_FITS_SCALE_LOG_RANGE; 764 if (strcasecmp(string, "LOG_MANUAL") == 0) return PS_FITS_SCALE_LOG_MANUAL; 758 765 if (strcasecmp(string, "LOG_STDEV_POSITIVE") == 0) return PS_FITS_SCALE_LOG_STDEV_POSITIVE; 759 766 if (strcasecmp(string, "LOG_STDEV_NEGATIVE") == 0) return PS_FITS_SCALE_LOG_STDEV_NEGATIVE; -
branches/czw_branch/20101203/psModules/src/camera/pmFPAfileDefine.c
r30255 r30419 312 312 options->bzero = parseOptionDouble(scheme, "BZERO", source); // Zero point 313 313 break; 314 case PS_FITS_SCALE_LOG_MANUAL: 315 options->bscale = parseOptionDouble(scheme, "BSCALE", source); // Scaling 316 options->bzero = parseOptionDouble(scheme, "BZERO", source); // Zero point 317 options->boffset = parseOptionDouble(scheme, "BOFFSET", source); // Log offset 318 break; 314 319 default: 315 320 psAbort("Should never get here.");
Note:
See TracChangeset
for help on using the changeset viewer.
