Changeset 28651
- Timestamp:
- Jul 9, 2010, 2:04:33 PM (16 years ago)
- Location:
- tags/ipp-20100701
- Files:
-
- 4 edited
-
ippScripts/scripts/automate_stacks.pl (modified) (8 diffs)
-
ippScripts/scripts/make_burntool_pcontrol.pl (modified) (1 diff)
-
ippconfig/recipes/nightly_science.config (modified) (7 diffs)
-
pstamp/scripts/detectability_respond.pl (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tags/ipp-20100701/ippScripts/scripts/automate_stacks.pl
r28581 r28651 41 41 # Grab options 42 42 my ( $date, $camera, $dbname, $logfile, $verbose, $manual); 43 my ( $help, $isburning, $force_stack_count, $test_mode, $this_target_only, $this_filter_only, $ check_mode);43 my ( $help, $isburning, $force_stack_count, $test_mode, $this_target_only, $this_filter_only, $this_mode_only, $check_mode); 44 44 my ( $check_registration, $define_burntool, $queue_burntool, $check_chips, $queue_chips); 45 45 my ( $check_stacks, $queue_stacks, $check_diffs, $queue_diffs, $clean_old); … … 60 60 'this_target_only=s' => \$this_target_only, 61 61 'this_filter_only=s' => \$this_filter_only, 62 'this_mode_only=s' => \$this_mode_only, 62 63 'check_registration' => \$check_registration, 63 64 'define_burntool' => \$define_burntool, … … 87 88 --this_target_only Process only a single target. 88 89 --this_filter_only Process only a single filter. 90 --this_mode_only Process only a single clean mode. 89 91 Modes: 90 92 --check_registration Confirm the data downloaded correctly. … … 130 132 my %detfilter_list = (); 131 133 my %detmax_list = (); 134 my @mode_list = (); 132 135 my %clean_commands = (); 133 136 my %clean_retention = (); … … 152 155 if (${ $mentry }{name} eq 'MODE') { 153 156 $this_mode = ${ $mentry }{value}; 157 push @mode_list, $this_mode; 154 158 } 155 159 elsif (${ $mentry }{name} eq 'COMMAND') { … … 264 268 } 265 269 die("$this_filter_only is invalid.") if ($#filter_list != 0); 270 } 271 272 if (defined($this_mode_only)) { 273 foreach my $t (@mode_list) { 274 if ($t eq $this_mode_only) { 275 @mode_list = ($this_mode_only); 276 last; 277 } 278 } 279 die("$this_mode_only is invalid.") if ($#mode_list != 0); 266 280 } 267 281 … … 842 856 } 843 857 if (($metadata_out{nsState} eq 'CHECKDETRENDS') && ($exposures > 0)) { 844 $metadata_out{nsState} eq 'QUEUE _DETRENDS';858 $metadata_out{nsState} eq 'QUEUEDETRENDS'; 845 859 } 846 860 } … … 1043 1057 my $pretend = shift; 1044 1058 1045 foreach my $mode ( sort (keys (%clean_commands))) {1059 foreach my $mode (@mode_list) { 1046 1060 if ((exists($clean_alternate{$mode})) && ($clean_alternate{$mode} eq 'A')) { 1047 1061 my ($cleaning_date,$command) = construct_cleantool_args($date,"",$mode); -
tags/ipp-20100701/ippScripts/scripts/make_burntool_pcontrol.pl
r28633 r28651 328 328 foreach my $target (@target_list) { 329 329 # print STDERR "$target $obsmode_list{$target} $exp_type $obs_mode $object $comment\n"; 330 if (($obs_mode =~ /$obsmode_list{$target}/ )&&331 ($object =~ /$object_list{$target}/ )&&332 ($comment =~ /$comment_list{$target}/ )) {330 if (($obs_mode =~ /$obsmode_list{$target}/i)&& 331 ($object =~ /$object_list{$target}/i)&& 332 ($comment =~ /$comment_list{$target}/i)) { 333 333 $return_value = 1; 334 334 } 335 # print ">$return_value $exp_type $obs_mode $object $comment $target $obsmode_list{$target} $object_list{$target} $comment_list{$target}\n";335 # print ">$return_value $exp_type $obs_mode $object $comment <> $target $obsmode_list{$target} $object_list{$target} $comment_list{$target}\n"; 336 336 if ($return_value) { 337 337 return($return_value); -
tags/ipp-20100701/ippconfig/recipes/nightly_science.config
r28581 r28651 15 15 MODE STR DIFF 16 16 COMMAND STR difftool 17 # RETENTION_TIME U16 3018 RETENTION_TIME S16 -117 RETENTION_TIME S16 30 18 # RETENTION_TIME S16 -1 19 19 END 20 20 CLEAN_MODES METADATA 21 21 MODE STR DIST 22 COMMAND STR disttool -22 COMMAND STR disttool 23 23 RETENTION_TIME S16 7 24 24 ALTERNATE_CMD STR A … … 319 319 DETTYPE STR FLAT 320 320 EXPTYPE STR skyflat 321 REF_ID S64 300321 REF_ID S64 278 322 322 REF_ITER S32 0 323 323 FILTER STR g.00000 … … 329 329 DETTYPE STR FLAT 330 330 EXPTYPE STR skyflat 331 REF_ID S64 301331 REF_ID S64 279 332 332 REF_ITER S32 0 333 333 FILTER STR r.00000 … … 339 339 DETTYPE STR FLAT 340 340 EXPTYPE STR skyflat 341 REF_ID S64 302341 REF_ID S64 280 342 342 REF_ITER S32 0 343 343 FILTER STR i.00000 … … 349 349 DETTYPE STR FLAT 350 350 EXPTYPE STR skyflat 351 REF_ID S64 303351 REF_ID S64 281 352 352 REF_ITER S32 0 353 353 FILTER STR z.00000 … … 359 359 DETTYPE STR FLAT 360 360 EXPTYPE STR skyflat 361 REF_ID S64 304361 REF_ID S64 282 362 362 REF_ITER S32 0 363 363 FILTER STR y.00000 … … 369 369 DETTYPE STR FLAT 370 370 EXPTYPE STR skyflat 371 REF_ID S64 305371 REF_ID S64 283 372 372 REF_ITER S32 0 373 373 FILTER STR w.00000 -
tags/ipp-20100701/pstamp/scripts/detectability_respond.pl
r28262 r28651 209 209 $psphot_cmd .= "-mask $image_list_hash{$k}{MASK} "; 210 210 $psphot_cmd .= "-variance $image_list_hash{$k}{WEIGHT} "; 211 $psphot_cmd .= "-srctext $targetname $image_list_hash{$k}{OUTROOT}"; 211 $psphot_cmd .= "-srctext $targetname $image_list_hash{$k}{OUTROOT} "; 212 $psphot_cmd .= "-D OUTPUT.FORMAT PS1_DV1 "; 212 213 213 214 ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = … … 477 478 } 478 479 elsif ($col->{name} eq 'PSF_INST_MAG_SIG') { 479 @tmp_flux_err = map { $_ = $_ / (2.5 * log10(exp(1))) } @{ $col_data };480 @tmp_flux_err = map { $_ = $_ / (2.5 * (log(exp(1)) / log(10))) } @{ $col_data }; 480 481 $correct_error = 1; 481 482 }
Note:
See TracChangeset
for help on using the changeset viewer.
