IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 17433


Ignore:
Timestamp:
Apr 10, 2008, 9:38:51 PM (18 years ago)
Author:
eugene
Message:

mis-match on MEF case, add save_temps, astrometry is always MEF

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branch_20080408/ippScripts/scripts/warp_overlap.pl

    r17168 r17433  
    3737my $ipprc = PS::IPP::Config->new(); # IPP configuration
    3838
    39 my ($warp_id, $camera, $tess_id, $dbname, $verbose, $no_update, $no_op);
     39my ($warp_id, $camera, $tess_id, $dbname, $verbose, $no_update, $no_op, $save_temps);
    4040GetOptions(
    4141    'warp_id|i=s'       => \$warp_id, # Warp identifier
     
    4646    'no-update'         => \$no_update, # Don't update the database?
    4747    'no-op'             => \$no_op, # Don't do any operations
     48    'save-temps'        => \$save_temps, # Save temporary files?
    4849) or pod2usage( 2 );
    4950
     
    119120   
    120121    # XXX this is a bit too hard wired: the concept is that astrometry comes from the MOSAIC vs CHIP output
     122    # XXX we have moved the astrometry analysis to the camera stage only: we should always have the source be MEF
    121123    if ($astromSource eq 'PSASTRO.OUTPUT.MEF') {
    122124        # We have a MEF astrometry file from psastro
     
    170172
    171173# Generate a MDC file with the overlaps
    172 my ($overlapFile, $overlapName) = tempfile( 'overlaps.wrp' . $warp_id . '.mdc.XXXX', UNLINK => 1 );
     174my ($overlapFile, $overlapName) = tempfile( 'overlaps.wrp' . $warp_id . '.mdc.XXXX', UNLINK => !$save_temps );
    173175print $overlapFile "warpSkyCellMap MULTI\n\n";
    174176foreach my $overlap (@overlaps) {
     
    252254    my $fileLevel = $imfile->{filelevel};
    253255    my $entry;  # How to identify this imfile in the dvoImageOverlaps output
    254     if ((lc($fileLevel) eq "chip") && (lc($astromDepth) eq "MEF")) {
     256    if ((lc($fileLevel) eq "chip") && (lc($astromDepth) eq "mef")) {
    255257        my $class_id = $imfile->{class_id};
    256258        my $chipRoot = $ipprc->file_resolve( $imfile->{chip_path_base} );
Note: See TracChangeset for help on using the changeset viewer.