IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 17, 2008, 3:42:48 PM (18 years ago)
Author:
eugene
Message:

add clarifying comments

File:
1 edited

Legend:

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

    r19099 r19117  
    224224# Extract a list of overlaps for an imfile
    225225#
    226 # The command "dvoImageOverlaps -accept-astrom -D CATDIR tessellation (megacam)" returns:
    227 # 729534pa.cmf[ccd00.hdr]  :  skycell.051.fits
    228 # PSASTRO.OUTPUT[CMF.HEAD] : SKYCELL
    229 # [CMF.HEAD] is optionally used for MEF files (SIMPLE or MOSAIC)
     226# The command "dvoImageOverlaps FILENAME" returns:
     227# FILENAME[HDU] : SKYCELL.ID
     228# eg: 729534pa.cmf[ccd00.hdr]  :  skycell.051.fits
     229# for the case of split data, we need to identify the input imfiles based on this information
    230230sub extract_overlaps
    231231{
    232     my $matches = shift;        # Reference to list of skycells from dvoImageOverlaps
    233     my $imfile = shift;         # Imfile information
    234     my $filename = shift;       # Filename used with dvoImageOverlaps
     232    my $matches = shift;         # Reference to list of skycells from dvoImageOverlaps
     233    my $imfile = shift;          # Imfile information
     234    my $filename = shift;        # Filename used with dvoImageOverlaps
    235235    my $tess_dir = shift;        # Tessellation identifier
    236     my $overlaps = shift;       # Reference to list of overlaps
     236    my $overlaps = shift;        # Reference to list of overlaps
    237237    my $unique_skycells = shift; # Reference to hash of found skycells
    238238
     
    244244    my $fileLevel = $imfile->{filelevel};
    245245    my $entry;  # How to identify this imfile in the dvoImageOverlaps output
     246
    246247    if (lc($fileLevel) eq "chip") {
     248        # in the case of SPLIT images, all CLASSes are included in the output list
     249        # we need to pull out the single CLASS_ID for this imfile from the full list
    247250        my $class_id = $imfile->{class_id};
    248251        my $chipRoot = $ipprc->file_resolve( $imfile->{chip_path_base} );
     
    252255        print STDERR "entry: $entry, class: $class_id, extname: $extname, chiproot: $chipRoot\n" if $verbose;
    253256    } else {
     257        # in the case of MEF or SINGLE images, there is only a single CLASS in the output list
    254258        $entry = $filename;
    255259        print STDERR "entry: $entry\n" if $verbose;
Note: See TracChangeset for help on using the changeset viewer.