IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 4, 2008, 2:14:23 PM (18 years ago)
Author:
eugene
Message:

add save-temps option

File:
1 edited

Legend:

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

    r17323 r17520  
    2020     $skycell,                  # Skycell file with WCS
    2121     $output,                   # Name of output file
     22     $save_temps
    2223     );
    2324
     
    2728           'skycell=s' => \$skycell,
    2829           'output=s'  => \$output,
     30           'save-temps'        => \$save_temps, # Save temporary files?
    2931) or pod2usage( 2 );
    3032
     
    262264$fits->read_col($yType, $yCol, 1, 1, $numRows, 0, $y, undef, $status) and check_fitsio($status);
    263265
    264 my ($coordFile, $coordName) = tempfile( "/tmp/ds9_cmf_regions.XXXX", UNLINK => 1 );
     266my ($coordFile, $coordName) = tempfile( "/tmp/ds9_cmf_regions.XXXX", UNLINK => !$save_temps );
    265267for (my $i = 0; $i < $numRows; $i++) {
    266268    print $coordFile "image; circle(" . ($$x[$i] + 1) . ',' . ($$y[$i] + 1) .
Note: See TracChangeset for help on using the changeset viewer.