IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 16746


Ignore:
Timestamp:
Feb 28, 2008, 4:35:57 PM (18 years ago)
Author:
Paul Price
Message:

Using --outroot instead of --workdir.

Location:
trunk/ippScripts/scripts
Files:
3 edited

Legend:

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

    r16745 r16746  
    7878        die "No working directory specified.\n" unless defined $workdir;
    7979       
    80         my $outroot = caturi( $workdir, "tess_$tess_id", $skycell_id, "$tess_id.$skycell_id.diff.$diff_id" );
     80        my $outroot = caturi( $workdir, "tess_$tess_id", $skycell_id, "$tess_id.$skycell_id.dif.$diff_id" );
    8181
    8282        my $command = "$diff_skycell --diff_id $diff_id --dbname $dbname --outroot $outroot";
  • trunk/ippScripts/scripts/ipp_serial_stack.pl

    r16336 r16746  
    2727my ($dbname,                    # Database name to use
    2828    $verbose,                   # Verbose operations?
     29    $workdir_global,            # Global working directory
    2930    $no_op,                     # No operations?
    3031    $no_update,                 # No updating?
     
    3435           'dbname=s' => \$dbname,
    3536           'verbose' => \$verbose,
     37           'workdir' => \$workdir_global,
    3638           'no-op' => \$no_op,
    3739           'no-update' => \$no_update,
     
    7577        my $workdir = $item->{workdir};
    7678       
    77         my $command = "$stack_skycell --stack_id $stack_id --dbname $dbname";
     79        $workdir = $workdir_global unless defined $workdir and $workdir ne "NULL";
     80        die "No working directory specified.\n" unless defined $workdir;
     81       
     82        my $outroot = caturi( $workdir, "tess_$tess_id", $skycell_id, "$tess_id.$skycell_id.stk.$stack_id" );
     83
     84        my $command = "$stack_skycell --stack_id $stack_id --dbname $dbname --outroot $outroot";
    7885        $command .= " --verbose" if defined $verbose;
    7986        $command .= " --no-op" if defined $no_op;
    8087        $command .= " --no-update" if defined $no_update;
    8188        $command .= " --save-temps" if defined $save_temps;
    82         $command .= " --workdir $workdir" if defined $workdir;
    8389        my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    8490            run( command => $command, verbose => 1 );
  • trunk/ippScripts/scripts/ipp_serial_warp.pl

    r16336 r16746  
    2727my ($dbname,                    # Database name to use
    2828    $verbose,                   # Verbose operations?
     29    $workdir_global,            # Global working directory
    2930    $no_op,                     # No operations?
    3031    $no_update,                 # No updating?
     
    3334           'dbname=s' => \$dbname,
    3435           'verbose' => \$verbose,
     36           'workdir' => \$workdir_global,
    3537           'no-op' => \$no_op,
    3638           'no-update' => \$no_update,
     
    8284        $command .= " --no-op" if defined $no_op;
    8385        $command .= " --no-update" if defined $no_update;
    84         $command .= " --workdir $workdir" if defined $workdir;
    8586        my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    8687            run( command => $command, verbose => 1 );
     
    108109        my $camera = $item->{camera};
    109110       
    110         my $command = "$warp_skycell --warp_id $warp_id --skycell_id $skycell_id --tess_id $tess_id --camera $camera --dbname $dbname";
     111        $workdir = $workdir_global unless defined $workdir and $workdir ne "NULL";
     112        die "No working directory specified.\n" unless defined $workdir;
     113       
     114        my $outroot = caturi( $workdir, "tess_$tess_id", $skycell_id, "$tess_id.$skycell_id.wrp.$warp_id" );
     115
     116        my $command = "$warp_skycell --warp_id $warp_id --skycell_id $skycell_id --tess_id $tess_id --camera $camera --dbname $dbname --outroot $outroot";
    111117        $command .= " --verbose" if defined $verbose;
    112118        $command .= " --no-op" if defined $no_op;
    113119        $command .= " --no-update" if defined $no_update;
    114         $command .= " --workdir $workdir" if defined $workdir and $workdir ne "NULL";
    115120        my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    116121            run( command => $command, verbose => 1 );
Note: See TracChangeset for help on using the changeset viewer.