IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 20822


Ignore:
Timestamp:
Nov 24, 2008, 11:40:02 AM (17 years ago)
Author:
bills
Message:

re-enable de-streaking of mask and weight images
if output destinations are non-nebulous directories, create
them if they do not already exist.

File:
1 edited

Legend:

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

    r20791 r20822  
    121121}
    122122
     123# create the output directories if it is not a nebulous path and it doesn't exist
     124if (index($outroot, "neb://") != 0) {
     125    if (! -e $outroot ) {
     126        mkdir $outroot
     127            or &my_die("cannot create output directory $outroot", $magic_ds_id, $component,
     128                $PS_EXIT_UNKNOWN_ERROR);
     129    }
     130}
     131
    123132my $backup_path_base;
    124133if (! $remove) {
     
    128137my $recovery_path_base;
    129138if ($recoveryroot) {
     139    if (index($recoveryroot, "neb://") != 0) {
     140        if (! -e $recoveryroot ) {
     141            mkdir $recoveryroot
     142                or &my_die("cannot create output directory $recoveryroot", $magic_ds_id, $component,
     143                    $PS_EXIT_UNKNOWN_ERROR);
     144        }
     145    }
    130146    $recovery_path_base = "$recoveryroot/$basename";
    131147}
     
    183199    $command .= " -recovery $recoveryroot" if defined $recoveryroot;
    184200    $command .= " -astrom $astrom" if defined $astrom;
    185     # XXX: remove this   skip mask and weight images for now
    186 #    $command .= " -mask $mask" if defined $mask;
    187 #    $command .= " -weight $weight" if defined $weight;
     201    $command .= " -mask $mask" if defined $mask;
     202    $command .= " -weight $weight" if defined $weight;
    188203    $command .= " -skycelllist $skycell_list" if defined $skycell_list;
    189204    $command .= " -dbname $dbname" if defined $dbname;
Note: See TracChangeset for help on using the changeset viewer.