IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 38121 for tags/ipp-20150329


Ignore:
Timestamp:
Apr 13, 2015, 6:15:47 PM (11 years ago)
Author:
eugene
Message:

merge changes from trunk

Location:
tags/ipp-20150329/ippScripts
Files:
8 edited
3 copied

Legend:

Unmodified
Added
Removed
  • tags/ipp-20150329/ippScripts/Build.PL

    r38062 r38121  
    128128        scripts/diffphot.pl
    129129        scripts/lap_science.pl
     130        scripts/lap_queue_diff.pl
    130131        scripts/videophot_process.pl
    131132        scripts/listvideocells.pl
     
    139140        scripts/sc_mk_stack_mdc.pl
    140141        scripts/sc_mk_staticsky_mdc.pl
     142        scripts/sc_check_diff.pl
    141143        scripts/sc_prepare_camera.pl
    142144        scripts/sc_prepare_chip.pl
    143145        scripts/sc_prepare_stack.pl
    144146        scripts/sc_prepare_staticsky.pl
     147        scripts/sc_prepare_diff.pl
    145148        scripts/sc_prepare_warp.pl
    146149        scripts/sc_prepare_run.pl
  • tags/ipp-20150329/ippScripts/MANIFEST

    r38062 r38121  
    4949scripts/skycell_jpeg.pl
    5050scripts/lap_science.pl
     51scripts/lap_queue_diff.pl
    5152scripts/regenerate_background.pl
    5253scripts/sc_mk_stack_mdc.pl
    5354scripts/sc_mk_staticsky_mdc.pl
     55scripts/sc_check_diff.pl
    5456scripts/sc_prepare_camera.pl
    5557scripts/sc_prepare_chip.pl
    5658scripts/sc_prepare_stack.pl
    5759scripts/sc_prepare_staticsky.pl
     60scripts/sc_prepare_diff.pl
    5861scripts/sc_prepare_warp.pl
    5962scripts/sc_remote_exec.pl
  • tags/ipp-20150329/ippScripts/scripts/addstar_run.pl

    r37739 r38121  
    102102
    103103if ($stage =~/fullforce/) {
     104    $reduction='DEFAULT';
     105    #hardwired because why not
     106}
     107if ($stage =~/diff/) {
    104108    $reduction='DEFAULT';
    105109    #hardwired because why not
  • tags/ipp-20150329/ippScripts/scripts/diff_skycell.pl

    r35325 r38121  
    128128#     $use_convolved = 1; ## This is a hack to do a test for mops, and should not be committed.
    129129# }
     130
     131# Re-implement prescan to decide if this is a warp-stack or warp-warp.  Or stack-stack, but that's what we don't care about now.
     132my $diff_type = '';
     133
     134if ((${ $files }[0]->{warp_id} != 0)&&(${ $files }[1]->{warp_id} != 0)) {
     135    $diff_type = "WW";
     136}
     137elsif ((${ $files }[0]->{stack_id} != 0)&&(${ $files }[1]->{stack_id} != 0)) {
     138    $diff_type = "SS";
     139}
     140elsif (((${ $files }[0]->{warp_id} != 0)&&(${ $files }[1]->{stack_id} != 0))) {
     141    $diff_type = "WS";
     142}
     143else {  # Something has gone horribly wrong.
     144    $diff_type = "WW"; # just pretend it never happened, and let it fail elsewhere.
     145}
    130146
    131147# ppSub does (input) - (template) after PSF-match convolution. 
     
    254270&my_die("Couldn't find input: $templateMask", $diff_id, $skycell_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($templateMask);
    255271&my_die("Couldn't find input: $templateVariance", $diff_id, $skycell_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($templateVariance);
    256 &my_die("Couldn't find input: $templateSources", $diff_id, $skycell_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($templateSources);
     272#&my_die("Couldn't find input: $templateSources", $diff_id, $skycell_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($templateSources);
     273
     274if ($diff_type eq 'WS') {
     275    # LANL processed stack images do not have a set of sources transferred back, so we need to choose a different source list.
     276    unless($ipprc->file_exists($templateSources)) {
     277        if ($ipprc->file_exists($inputSources)) {
     278            $templateSources = $inputSources;
     279            print "CHANGED:templateSources: $templateSources\n";
     280        }
     281    }
     282    &my_die("Couldn't find input: $templateSources", $diff_id, $skycell_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($templateSources);
     283}
     284else {
     285    &my_die("Couldn't find input: $templateSources", $diff_id, $skycell_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($templateSources);
     286}
    257287&my_die("Couldn't find input: $input", $diff_id, $skycell_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($input);
    258288&my_die("Couldn't find input: $inputMask", $diff_id, $skycell_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($inputMask);
  • tags/ipp-20150329/ippScripts/scripts/sc_prepare_camera.pl

    r38000 r38121  
    9090my ($workdir,$exp_tag,$reduction);
    9191{
     92
    9293###    $command    = "$camtool -processedexp -cam_id $cam_id "; ### THIS LINE ONLY TO TEST! 
    9394    my $command = "$camtool -pendingexp -cam_id $cam_id ";
  • tags/ipp-20150329/ippScripts/scripts/sc_prepare_run.pl

    r37833 r38121  
    2424# my $remote_root   = '/lustre/scratch1/turquoise/watersc1/ps1/'; # Far side destination base location
    2525my $remote_root = '/scratch3/watersc1/';
    26 my $remote_raw    = "${remote_root}/tmp/";  # Directory to find raw data in.
    27 
    28 my $threads       = 2;                      # How many threads are we going to use?
     26my $remote_raw  = "${remote_root}/tmp/";  # Directory to find raw data in.
     27
     28my $threads     = 2;                      # How many threads are we going to use?
    2929
    3030my $fail_state = "prep_fail";
     
    3737$job_cost{"stack"}  = 1500 / 60 / 60;
    3838$job_cost{"staticsky"} = 2; # really?  avg time of 5720s?
     39$job_cost{"diff"}   = 300 / 60 / 60;
    3940
    4041# This object holds how "expensive" a given job is in terms of cores on a node. 
     
    4647$job_subscription{"stack"}  = 3;
    4748$job_subscription{"staticsky"} = 3;
     49$job_subscription{"diff"} = 1;
    4850
    4951my $proc_per_node = 24;                     # processors per node
  • tags/ipp-20150329/ippScripts/scripts/sc_remote_poll.pl

    r37833 r38121  
    510510        ($class_id, $stage_id) = $file =~ /(skycell.\d\d\d\d.\d\d\d).stk.(\d*).dbinfo/;
    511511    }
    512 
     512    elsif ($stage eq 'staticsky') {
     513#       ($class_id, $stage_id) = $file =~ /(/;
     514    }
     515    elsif ($stage eq 'diff') {
     516#       ($class_id,$stage_id) = $file =~ /(/;
     517    }
    513518    return ($stage_id, $class_id);
    514519}
  • tags/ipp-20150329/ippScripts/scripts/skycalibration.pl

    r38035 r38121  
    122122my $recipe_psphot = $ipprc->reduction($reduction, "STACKPHOT_PSPHOT");
    123123unless ($recipe_psphot) {
    124     &my_die("Couldn't find selected reduction for STATCKPHOT_PSPHOT: $reduction\n", $skycal_id, $PS_EXIT_CONFIG_ERROR);
     124    &my_die("Couldn't find selected reduction for STACKPHOT_PSPHOT: $reduction\n", $skycal_id, $PS_EXIT_CONFIG_ERROR);
    125125}
    126126
Note: See TracChangeset for help on using the changeset viewer.