Changeset 32355
- Timestamp:
- Sep 6, 2011, 1:56:40 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 6 edited
-
ippScripts/scripts/chip_imfile.pl (modified) (1 diff)
-
ippTasks/diskbalance.pro (modified) (1 diff)
-
ippconfig/gpc1/ppImage.config (modified) (1 diff)
-
ippconfig/megacam/camera.config (modified) (1 diff)
-
ippconfig/recipes/ppSim.config (modified) (1 diff)
-
ppStack/src/ppStackReject.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/chip_imfile.pl
r31941 r32355 266 266 } 267 267 268 ## Read camera config to get the current good burntool state 269 ## this returns just the values of interest in a tiny mdc file 270 my $camera_config_cmd = "$ppConfigDump -camera $camera -get-key BURNTOOL.STATE.GOOD -get-key BURNTOOL.STATE.GOOD.UPDATE"; 271 ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 272 run(command => $camera_config_cmd, verbose => 0); 273 unless ($success) { 274 $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR); 275 &my_die("Unable to perform ppConfigDump: $error_code", $exp_id, $chip_id, $class_id, $PS_EXIT_SYS_ERROR); 276 } 277 278 my $camData = $mdcParser->parse(join "", @$stdout_buf) or 279 &my_die("Unable to parse ppConfigDump metadata", $exp_id, $chip_id, $class_id, $PS_EXIT_SYS_ERROR); 280 281 my $burntoolStateGood; 282 my $burntoolStateGoodUpdate; 283 foreach my $camEntry (@$camData) { 284 if ($camEntry->{name} eq "BURNTOOL.STATE.GOOD") { 285 $burntoolStateGood = $camEntry->{value}; 286 } 287 if ($camEntry->{name} eq "BURNTOOL.STATE.GOOD.UPDATE") { 288 $burntoolStateGoodUpdate = $camEntry->{value}; 289 } 290 } 268 ## Read camera config to get the current good burntool state : 269 ## XXX This is extremely slow. Any better way to do this? 270 ## my $camera_config_cmd = "$ppConfigDump -camera $camera -dump-camera -"; 271 ## ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 272 ## run(command => $camera_config_cmd, verbose => 0); 273 ## unless ($success) { 274 ## $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR); 275 ## &my_die("Unable to perform ppConfigDump: $error_code", $exp_id, $chip_id, $class_id, $PS_EXIT_SYS_ERROR); 276 ## } 277 ## 278 ## my $camData = $mdcParser->parse(join "", @$stdout_buf) or 279 ## &my_die("Unable to parse ppConfigDump metadata", $exp_id, $chip_id, $class_id, $PS_EXIT_SYS_ERROR); 280 281 ## XXX short term hack until we have a C-based parser 282 my $burntoolStateGood = 14; 283 my $burntoolStateGoodUpdate = 13; 284 ## foreach my $camEntry (@$camData) { 285 ## if ($camEntry->{name} eq "BURNTOOL.STATE.GOOD") { 286 ## $burntoolStateGood = $camEntry->{value}; 287 ## } 288 ## if ($camEntry->{name} eq "BURNTOOL.STATE.GOOD.UPDATE") { 289 ## $burntoolStateGoodUpdate = $camEntry->{value}; 290 ## } 291 ## } 291 292 292 293 if ($run_state eq 'new') { -
trunk/ippTasks/diskbalance.pro
r31882 r32355 104 104 $BALANCE_LIMIT = 500 105 105 $BALANCE_OFFSET = 0 106 $BALANCE_TARGET = "SOURCE"106 $BALANCE_TARGET = SOURCE 107 107 # Select Nebulous objects which should be shuffled 108 108 task balance.load -
trunk/ippconfig/gpc1/ppImage.config
r31915 r32355 1083 1083 END 1084 1084 1085 PR_NOPATTERN METADATA 1086 BASE.FITS BOOL FALSE # Save base detrended image? 1087 BASE.MASK.FITS BOOL FALSE # Save base detrended image? 1088 BASE.VARIANCE.FITS BOOL FALSE # Save base detrended image? 1089 CHIP.FITS BOOL TRUE # Save chip-mosaic-ed image? 1090 CHIP.MASK.FITS BOOL TRUE # Save chip-mosaic-ed image? 1091 CHIP.VARIANCE.FITS BOOL TRUE # Save chip-mosaic-ed image? 1092 OVERSCAN BOOL TRUE # Overscan subtraction 1093 NONLIN BOOL TRUE # apply non-linearity correction 1094 BIAS BOOL FALSE # Bias subtraction 1095 DARK BOOL TRUE # Dark subtraction 1096 REMNANCE BOOL FALSE # Remnance masking 1097 SHUTTER BOOL FALSE # Shutter correction 1098 FLAT BOOL TRUE # Flat-field normalisation 1099 MASK BOOL TRUE # Mask bad pixels 1100 MASK.BUILD BOOL TRUE # Build internal mask? 1101 FRINGE BOOL FALSE # Fringe subtraction 1102 PATTERN.ROW BOOL FALSE # Row pattern correction 1103 PATTERN.CELL BOOL FALSE # Cell pattern correction 1104 BIN1.FITS BOOL TRUE # Save 1st binned chip image? 1105 BIN2.FITS BOOL TRUE # Save 2nd binned chip image? 1106 PHOTOM BOOL TRUE # Source identification and photometry 1107 ASTROM.CHIP BOOL FALSE # Astrometry per chip? 1108 ASTROM.MOSAIC BOOL FALSE # Astrometry for mosaic? 1109 BACKGROUND BOOL FALSE # Subtract background? 1110 CROSSTALK.MEASURE BOOL TRUE # Subtract model background? 1111 END 1085 1112 1086 1113 # Standard chip processing without any background removal -
trunk/ippconfig/megacam/camera.config
r29902 r32355 154 154 PHOTCODE.RULE STR {DETECTOR}.{FILTER.ID}.{CHIP.N} # Rule for generating photcode 155 155 156 BURNTOOL.STATE.GOOD S16 0 # Value for burntool_state with the most recent bt version. 157 BURNTOOL.STATE.GOOD.UPDATE S16 0 # for upddate processing accept earlier version 158 159 FOV_REF F32 0 # Field of view of unvignetted region in FPA pixels. 160 FOV_MAX F32 0 161 NPIX_REF S32 0 162 NPIX_MAX S32 0 163 NPIX_INTERCHIP S32 0 164 165 # This sets the maximum size for the fwhm_major. This is roughly 3", and 98.67% of all exposures in the database are less than this. 166 MAX_ALLOWED_FWHM F32 25 167 156 168 # don't censor any masked pixels 157 169 MASK.NO.CENSOR U32 4294967295 170 171 METADATA.COMPRESSION STR 7f # compression mode (nM): n = 1-9, M = f (filtered), h (Huffman), R (run-length) -
trunk/ippconfig/recipes/ppSim.config
r32349 r32355 46 46 FORCED.PHOTCODE STR r # source of the forced photometry positions 47 47 48 STARS.REAL BOOL TRUE # Add stars from a catalogue?49 MATCH.DENSITY BOOL TRUE# significance of faintest sources48 STARS.REAL BOOL TRUE # Add stars from a catalogue? 49 MATCH.DENSITY BOOL FALSE # significance of faintest sources 50 50 51 51 STARS.FAKE BOOL TRUE # Add fake stars, randomly distributed? 52 STARS.LUM F32 0. 35# Stellar luminosity function slope (magnitude slope)53 STARS.MAG F32 1 5.5 # Brightest magnitude for fake stars (choose based on real catalog limit)54 STARS.DENSITY F32 1.0 # Stellar density (per square degree) at the brightest magnitude52 STARS.LUM F32 0.40 # Stellar luminosity function slope (magnitude slope) 53 STARS.MAG F32 12.5 # Brightest magnitude for fake stars (choose based on real catalog limit) 54 STARS.DENSITY F32 100.0 # Stellar density (per square degree) at the brightest magnitude 55 55 STARS.SIGMA.LIM F32 1.0 # significance of faintest sources 56 56 -
trunk/ppStack/src/ppStackReject.c
r31435 r32355 33 33 34 34 kernel->solution1 = psVectorAlloc(3, PS_TYPE_F64); 35 psVectorSet(kernel->solution1, 0, 1.0); 35 36 psVectorSet(kernel->solution1, 1, 1.0); 36 37 psVectorSet(kernel->solution1, 2, 1.0); 37 psVectorSet(kernel->solution1, 3, 1.0);38 38 kernel->solution2 = psVectorAlloc(3, PS_TYPE_F64); 39 psVectorSet(kernel->solution2, 0, 1.0); 39 40 psVectorSet(kernel->solution2, 1, 1.0); 40 psVectorSet(kernel->solution1, 2, 1.0); 41 psVectorSet(kernel->solution1, 3, 1.0); 41 psVectorSet(kernel->solution2, 2, 1.0); 42 42 43 43 options->kernels->data[i] = kernels;
Note:
See TracChangeset
for help on using the changeset viewer.
