IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 26670


Ignore:
Timestamp:
Jan 22, 2010, 11:38:51 AM (16 years ago)
Author:
watersc1
Message:

"Final" version of the nightly stacks code. I may add more forcing later, if we have a lot of faults to skip through.

Location:
trunk
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippScripts/Build.PL

    r26378 r26670  
    100100        scripts/dqstats_bundle.pl
    101101        scripts/whichimage
     102        scripts/automate_stacks.pl
    102103    )],
    103104    dist_abstract => 'Scripts for running the Pan-STARRS IPP',
  • trunk/ippScripts/MANIFEST

    r18564 r26670  
    3636scripts/isp_trans.pl
    3737scripts/ds9_cmf_regions.pl
     38scripts/automate_stacks.pl
    3839t/00_distribution.t
  • trunk/ippScripts/scripts/automate_stacks.pl

    r26624 r26670  
    3636my ( $date, $camera, $dbname, $logfile, $verbose);
    3737my ( $check_registration, $define_burntool, $queue_burntool, $check_chips, $queue_chips, $check_stacks, $queue_stacks);
    38 my ( $help, $this_target_only, $this_filter_only, $isburning);
     38my ( $help, $this_target_only, $this_filter_only, $isburning, $force_stack_count);
    3939GetOptions(
    4040    'help|h'               => \$help,
     
    5454    'this_filter_only=s'   => \$this_filter_only,
    5555    'isburning'            => \$isburning,
     56    'force_stack_count'    => \$force_stack_count,
    5657    ) or pod2usage ( 2 );
    5758pod2usage( -msg =>
     
    6566           --this_target_only     Process only a single target.
    6667           --this_filter_only     Process only a single filter.
     68           --isburning            Signal that we are currently burntooling.
     69           --force_stack_count    Force the chip/warp counts.
    6770        Modes:
    6871           --check_registration   Confirm the data downloaded correctly.
     
    527530        foreach my $filter (@filter_list) {
    528531            my ($Nexposures,$NprocChips,$NprocWarps,$Nalready) = pre_stack_queue($date,$target,$filter);
    529             if (($NprocChips != $NprocWarps)) { #||($NprocWarps == 0)||($NprocChips == 0)) {
     532            if ((!defined($force_stack_count))&&($NprocChips != $NprocWarps)) { # This makes me sad. :(
    530533                print STDERR "execute_stacks: Target $target on $date is not fully processed. ($NprocChips $NprocWarps)\n";
    531534                $metadata_out{nsState} = 'FORCETOWARP';
  • trunk/ippTasks/Makefile.am

    r26378 r26670  
    3030        publish.pro \
    3131        dqstats.pro \
    32         science.cleanup.pro
     32        science.cleanup.pro \
     33        nightly_stacks.pro
    3334
    3435other_files = \
  • trunk/tools/gpc1_find_images.pl

    r26563 r26670  
    208208            push @{ $mapping{$class} }, $skycell;
    209209            push @{ $mapping{$raw_class} }, $skycell;
     210#           print STDERR "$raw_class $class $skycell\n";
    210211        }
    211212    }
  • trunk/tools/make_burntool_pcontrol.pl

    r26527 r26670  
    266266        printf(" burntool %s %s\n",$date_min,$date_max);
    267267    }
    268     print "\n";
     268    unless(exists($opt{d})) {
     269        print "\n";
     270    }
    269271    $N_ranges += ($#start_s + 1);
    270272}
     
    311313}
    312314sub print_short_epilogue {
     315    if (exists($opt{b})) {
     316        print STDERR "There were no science exposures to process. Sorry, try again tomorrow.\n";
     317        return();
     318    }
    313319    print << 'END_SHORT_EPILOGUE';
    314320
  • trunk/tools/neb-ds9.pl

    r26276 r26670  
    44getopts('AM',\%opt);
    55
    6 $cmd = 'ds9 -scale mode zscale ';
     6$cmd = 'ds9  -scale mode zscale ';
    77
    88if (exists($opt{A})) {
     
    2121    }
    2222}
     23#$cmd .= "  -zoom to fit -regions format xy -regions system wcs -regions load targets.reg  ";
    2324system("$cmd");
  • trunk/tools/wiki_nightly_stacks_table.pl

    r26620 r26670  
    133133
    134134#warps
    135 $sth = "select rawExp.dateobs,warpRun.state,rawExp.filter,count(warpRun.state),warpRun.data_group,warpRun.dist_group from warpRun JOIN fakeRun using (fake_id) JOIN camRun using (cam_id) JOIN chipRun using (chip_id) JOIN rawExp using (exp_id)  where warpRun.label LIKE '%nightlystack' GROUP BY data_group,filter ORDER BY data_group,filter";
     135$sth = "select rawExp.dateobs,warpRun.state,rawExp.filter,count(warpRun.state),warpRun.data_group,warpRun.dist_group from warpRun JOIN fakeRun using (fake_id) JOIN camRun using (cam_id) JOIN chipRun using (chip_id) JOIN rawExp using (exp_id)  where warpRun.label LIKE '%nightlystack' GROUP BY data_group,filter,state ORDER BY data_group,filter";
    136136$data_ref = $db->selectall_arrayref( $sth );
    137137
Note: See TracChangeset for help on using the changeset viewer.