IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 14691


Ignore:
Timestamp:
Aug 29, 2007, 3:04:57 PM (19 years ago)
Author:
eugene
Message:

add ASTROM.DEPTH boolean to specify how the astrometry data is stored

File:
1 edited

Legend:

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

    r14578 r14691  
    8989my $astromSource;               # The astrometry source
    9090my $astromAccept;               # Accept the astrometry unconditionally?
     91my $astromDepth;                # File level of the astrometry source (SPLIT or MEF)?
    9192{
    9293    my $command = "$ppConfigDump -camera $camera -dump-recipe PSWARP -";
     
    101102    $astromSource = metadataLookupStr($metadata, 'ASTROM.SOURCE');
    102103    $astromAccept = metadataLookupBool($metadata, 'ASTROM.ACCEPT');
     104    $astromDepth  = metadataLookupStr($metadata, 'ASTROM.DEPTH');
    103105}
    104106
     
    172174}
    173175
     176# XXX this file needs some additional error checking: if no overlaps are found, we
     177# keep running this step over and over (a successful warptool -addoverlap prevents
     178# successive warptime -imfile from running.
     179
    174180# Generate a MDC file with the overlaps
    175181my ($overlapFile, $overlapName) = tempfile( 'overlaps.wrp' . $warp_id . '.mdc.XXXX', UNLINK => 1 );
     
    255261    my $fileLevel = $imfile->{filelevel};
    256262    my $entry;  # How to identify this imfile in the dvoImageOverlaps output
    257     if (lc($fileLevel) eq "chip") {
     263    if ((lc($fileLevel) eq "chip") && (lc($astromDepth) eq "MEF")) {
    258264        my $class_id = $imfile->{class_id};
    259265        my $chipRoot = $ipprc->file_resolve( $imfile->{chip_path_base} );
    260266        my $extname = $ipprc->extname_rule("CMF.HEAD", $class_id); # MEF psastro output
    261267       
    262         print STDERR "class: $class_id, chiproot: $chipRoot, extname: $extname\n";
    263268       
    264269        $entry = $filename . '\[' . $extname . '\]';
     270        print STDERR "class: $class_id, entry: $entry, extname: $extname, chiproot: $chipRoot\n";
    265271    } else {
    266272        $entry = $filename;
     273        print STDERR "class: $class_id, entry: $entry\n";
    267274    }
    268275
    269276    my @skycells = &select_skycells($entry, @$matches); # Matching skycells
     277    my $Nskycells = @skycells;
     278    printf STDERR "Nskycells: $Nskycells\n";
    270279    foreach my $skycell (@skycells) {
    271280        my %overlap = ();       # Overlap information for warptool
Note: See TracChangeset for help on using the changeset viewer.