IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 25, 2015, 5:19:12 PM (11 years ago)
Author:
watersc1
Message:

Stacks need to know not to try and send local copies of warps that they may not have.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippScripts/scripts/sc_prepare_stack.pl

    r37833 r38010  
    2323my $remote_hostname = "LANL/Mustang";         # Name of the remote node.
    2424my $threads_req     = 4;                      # How many threads are we going to use?
     25my $have_warps      = 0;                      # Do we have a copy of the warp if we don't find one there?
    2526
    2627my $fail_state = "prep_fail";
     
    156157        my $ipp_disk;
    157158        #  ${remote_root}/tmp/${ipp_disk}
    158         (undef,$remote_file) = &uri_to_outputs($warp_path_base . ".fits");
    159         ($ipp_disk,undef)    = &uri_convert($warp_path_base . ".fits");
    160         print COMPMAP "$remote_file ${remote_root}/tmp/${ipp_disk}\n";
    161         (undef,$remote_file) = &uri_to_outputs($warp_path_base . ".wt.fits");
    162         ($ipp_disk,undef)    = &uri_convert($warp_path_base . ".wt.fits");
    163         print COMPMAP "$remote_file ${remote_root}/tmp/${ipp_disk}\n";
    164         (undef,$remote_file) = &uri_to_outputs($warp_path_base . ".mask.fits");
    165         ($ipp_disk,undef)    = &uri_convert($warp_path_base . ".mask.fits");
    166         print COMPMAP "$remote_file ${remote_root}/tmp/${ipp_disk}\n";
    167         (undef,$remote_file) = &uri_to_outputs($warp_path_base . ".cmf");
    168         ($ipp_disk,undef)    = &uri_convert($warp_path_base . ".cmf");
    169         print COMPMAP "$remote_file ${remote_root}/tmp/${ipp_disk}\n";
    170         (undef,$remote_file) = &uri_to_outputs($warp_path_base . ".psf");
    171         ($ipp_disk,undef)    = &uri_convert($warp_path_base . ".psf");
    172         print COMPMAP "$remote_file ${remote_root}/tmp/${ipp_disk}\n";
     159
     160        if ($have_warps != 0) { # Check to see if we have a copy, because if we do, then we can send it over if it's missing.
     161            (undef,$remote_file) = &uri_to_outputs($warp_path_base . ".fits");
     162            ($ipp_disk,undef)    = &uri_convert($warp_path_base . ".fits");
     163            print COMPMAP "$remote_file ${remote_root}/tmp/${ipp_disk}\n";
     164
     165            (undef,$remote_file) = &uri_to_outputs($warp_path_base . ".wt.fits");
     166            ($ipp_disk,undef)    = &uri_convert($warp_path_base . ".wt.fits");
     167            print COMPMAP "$remote_file ${remote_root}/tmp/${ipp_disk}\n";
     168
     169            (undef,$remote_file) = &uri_to_outputs($warp_path_base . ".mask.fits");
     170            ($ipp_disk,undef)    = &uri_convert($warp_path_base . ".mask.fits");
     171            print COMPMAP "$remote_file ${remote_root}/tmp/${ipp_disk}\n";
     172
     173            (undef,$remote_file) = &uri_to_outputs($warp_path_base . ".cmf");
     174            ($ipp_disk,undef)    = &uri_convert($warp_path_base . ".cmf");
     175            print COMPMAP "$remote_file ${remote_root}/tmp/${ipp_disk}\n";
     176
     177            (undef,$remote_file) = &uri_to_outputs($warp_path_base . ".psf");
     178            ($ipp_disk,undef)    = &uri_convert($warp_path_base . ".psf");
     179            print COMPMAP "$remote_file ${remote_root}/tmp/${ipp_disk}\n";
     180
     181        }
     182        else {
     183            $remote_file = &uri_local_to_remote($warp_path_base . ".fits");
     184            print COMPMAP "$remote_file $remote_file\n";  # No other option, really.
     185
     186            $remote_file = &uri_local_to_remote($warp_path_base . ".wt.fits");
     187            print COMPMAP "$remote_file $remote_file\n";  # No other option, really.
     188
     189            $remote_file = &uri_local_to_remote($warp_path_base . ".mask.fits");
     190            print COMPMAP "$remote_file $remote_file\n";  # No other option, really.
     191
     192            $remote_file = &uri_local_to_remote($warp_path_base . ".cmf");
     193            print COMPMAP "$remote_file $remote_file\n";  # No other option, really.
     194
     195            $remote_file = &uri_local_to_remote($warp_path_base . ".psf");
     196            print COMPMAP "$remote_file $remote_file\n";  # No other option, really.
     197
     198        }
    173199    }
    174200
Note: See TracChangeset for help on using the changeset viewer.