IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 19263


Ignore:
Timestamp:
Aug 28, 2008, 10:03:06 AM (18 years ago)
Author:
eugene
Message:

fix invalid use of file_resolve on path_base; move tempfiles to /tmp

File:
1 edited

Legend:

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

    r19117 r19263  
    119119        &my_die("Unable to determine the astrometry source", $warp_id, $PS_EXIT_DATA_ERROR);
    120120    }
     121    $astromFile = $ipprc->file_resolve($astromFile);
     122    if (!$astromFile) {
     123        &my_die("Unable to resolve real astrometry source filename", $warp_id, $PS_EXIT_DATA_ERROR);
     124    }
    121125
    122126    my @matchlist = get_overlaps($astromFile, $tess_dir_abs, $astromAccept); # List of overlaps
     
    148152
    149153# Generate a MDC file with the overlaps
    150 my ($overlapFile, $overlapName) = tempfile( 'overlaps.wrp' . $warp_id . '.mdc.XXXX', UNLINK => !$save_temps );
     154my ($overlapFile, $overlapName) = tempfile( "/tmp/overlaps.wrp.$warp_id.mdc.XXXX", UNLINK => !$save_temps );
    151155print $overlapFile "warpSkyCellMap MULTI\n\n";
    152156foreach my $overlap (@overlaps) {
     
    203207    my $accept = shift;         # Do we use the -accept-astrom flag?
    204208
    205     my $command = "$dvoImageOverlaps -D CATDIR $tess_dir_abs " . $ipprc->file_resolve($filename);
     209    my $command = "$dvoImageOverlaps -D CATDIR $tess_dir_abs " . $filename;
    206210    $command .= ' -accept-astrom' if $accept;
    207211    my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
     
    249253        # we need to pull out the single CLASS_ID for this imfile from the full list
    250254        my $class_id = $imfile->{class_id};
    251         my $chipRoot = $ipprc->file_resolve( $imfile->{chip_path_base} );
     255        my $chipRoot = $imfile->{chip_path_base};
    252256        my $extname = $ipprc->extname_rule("CMF.HEAD", $class_id); # MEF psastro output
    253257
Note: See TracChangeset for help on using the changeset viewer.