IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 28651


Ignore:
Timestamp:
Jul 9, 2010, 2:04:33 PM (16 years ago)
Author:
watersc1
Message:

nightly_science.config : merge in new detrend reference flats
detectability_respond.pl : fix typo that was causing faults and switch output format
make_burntool_pcontrol.pl : fix bug that was preventing STS data from being detected properly
automate_stacks.pl : fix typos, add single mode cleanup code

Location:
tags/ipp-20100701
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • tags/ipp-20100701/ippScripts/scripts/automate_stacks.pl

    r28581 r28651  
    4141# Grab options
    4242my ( $date, $camera, $dbname, $logfile, $verbose, $manual);
    43 my ( $help, $isburning, $force_stack_count, $test_mode, $this_target_only, $this_filter_only, $check_mode);
     43my ( $help, $isburning, $force_stack_count, $test_mode, $this_target_only, $this_filter_only, $this_mode_only, $check_mode);
    4444my ( $check_registration, $define_burntool, $queue_burntool, $check_chips, $queue_chips);
    4545my ( $check_stacks, $queue_stacks, $check_diffs, $queue_diffs, $clean_old);
     
    6060    'this_target_only=s'   => \$this_target_only,
    6161    'this_filter_only=s'   => \$this_filter_only,
     62    'this_mode_only=s'     => \$this_mode_only,
    6263    'check_registration'   => \$check_registration,
    6364    'define_burntool'      => \$define_burntool,
     
    8788           --this_target_only     Process only a single target.
    8889           --this_filter_only     Process only a single filter.
     90           --this_mode_only       Process only a single clean mode.
    8991        Modes:
    9092           --check_registration   Confirm the data downloaded correctly.
     
    130132my %detfilter_list = ();
    131133my %detmax_list = ();
     134my @mode_list = ();
    132135my %clean_commands = ();
    133136my %clean_retention = ();
     
    152155            if (${ $mentry }{name} eq 'MODE') {
    153156                $this_mode = ${ $mentry }{value};
     157                push @mode_list, $this_mode;
    154158            }
    155159            elsif (${ $mentry }{name} eq 'COMMAND') {
     
    264268    }
    265269    die("$this_filter_only is invalid.") if ($#filter_list != 0);
     270}
     271
     272if (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);
    266280}
    267281
     
    842856    }
    843857    if (($metadata_out{nsState} eq 'CHECKDETRENDS') && ($exposures > 0)) {
    844         $metadata_out{nsState} eq 'QUEUE_DETRENDS';
     858        $metadata_out{nsState} eq 'QUEUEDETRENDS';
    845859    }
    846860}
     
    10431057    my $pretend = shift;
    10441058
    1045     foreach my $mode (sort (keys (%clean_commands))) {
     1059    foreach my $mode (@mode_list) {
    10461060        if ((exists($clean_alternate{$mode})) && ($clean_alternate{$mode} eq 'A')) {
    10471061            my ($cleaning_date,$command) = construct_cleantool_args($date,"",$mode);
  • tags/ipp-20100701/ippScripts/scripts/make_burntool_pcontrol.pl

    r28633 r28651  
    328328        foreach my $target (@target_list) {
    329329#           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)) {
    333333                $return_value = 1;
    334334            }
    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";
    336336            if ($return_value) {
    337337                return($return_value);
  • tags/ipp-20100701/ippconfig/recipes/nightly_science.config

    r28581 r28651  
    1515  MODE STR DIFF
    1616  COMMAND STR difftool
    17 # RETENTION_TIME U16 30
    18   RETENTION_TIME S16 -1
     17  RETENTION_TIME S16 30
     18#  RETENTION_TIME S16 -1
    1919END
    2020CLEAN_MODES METADATA
    2121  MODE STR DIST
    22   COMMAND STR disttool -
     22  COMMAND STR disttool
    2323  RETENTION_TIME S16 7
    2424  ALTERNATE_CMD STR A
     
    319319  DETTYPE  STR FLAT
    320320  EXPTYPE  STR skyflat
    321   REF_ID   S64 300
     321  REF_ID   S64 278
    322322  REF_ITER S32 0
    323323  FILTER   STR g.00000
     
    329329  DETTYPE  STR FLAT
    330330  EXPTYPE  STR skyflat
    331   REF_ID   S64 301
     331  REF_ID   S64 279
    332332  REF_ITER S32 0
    333333  FILTER   STR r.00000
     
    339339  DETTYPE  STR FLAT
    340340  EXPTYPE  STR skyflat
    341   REF_ID   S64 302
     341  REF_ID   S64 280
    342342  REF_ITER S32 0
    343343  FILTER   STR i.00000
     
    349349  DETTYPE  STR FLAT
    350350  EXPTYPE  STR skyflat
    351   REF_ID   S64 303
     351  REF_ID   S64 281
    352352  REF_ITER S32 0
    353353  FILTER   STR z.00000
     
    359359  DETTYPE  STR FLAT
    360360  EXPTYPE  STR skyflat
    361   REF_ID   S64 304
     361  REF_ID   S64 282
    362362  REF_ITER S32 0
    363363  FILTER   STR y.00000
     
    369369  DETTYPE  STR FLAT
    370370  EXPTYPE  STR skyflat
    371   REF_ID   S64 305
     371  REF_ID   S64 283
    372372  REF_ITER S32 0
    373373  FILTER   STR w.00000
  • tags/ipp-20100701/pstamp/scripts/detectability_respond.pl

    r28262 r28651  
    209209    $psphot_cmd .= "-mask $image_list_hash{$k}{MASK} ";
    210210    $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 ";
    212213
    213214    ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
     
    477478        }
    478479        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 };
    480481            $correct_error = 1;
    481482        }
Note: See TracChangeset for help on using the changeset viewer.