IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 26861


Ignore:
Timestamp:
Feb 10, 2010, 4:00:04 PM (16 years ago)
Author:
eugene
Message:

updates from trunk

Location:
branches/eam_branches/20091201/tools
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/20091201/tools/diff_outputs.pl

    r25064 r26861  
    1515use constant PRODUCTS => { 'REGULAR' => [ 'IMAGE', 'MASK', 'VARIANCE',
    1616                                          'SOURCES', 'JPEG1', 'JPEG2',
    17                                           'KERNEL' ],
     17                                          'KERNEL', 'LOG' ],
    1818                           'ALL' => [ 'IMAGE', 'MASK', 'VARIANCE', 'SOURCES', 'JPEG1', 'JPEG2', 'KERNEL',
    1919                                      'INVERSE.IMAGE', 'INVERSE.MASK', 'INVERSE.VARIANCE', 'INVERSE.SOURCES',
    2020                                      'INCONV.IMAGE', 'INCONV.MASK', 'INCONV.VARIANCE',
    2121                                      'REFCONV.IMAGE', 'REFCONV.MASK', 'REFCONV.VARIANCE',
     22                                      'LOG',
    2223                               ],
    2324                           'INVERSE' => [ 'INVERSE.IMAGE', 'INVERSE.MASK',
    2425                                          'INVERSE.VARIANCE',
    25                                           'INVERSE.SOURCES' ],
     26                                          'INVERSE.SOURCES',
     27                                          'LOG', ],
    2628                       };
    2729
     
    4446                             'REFCONV.MASK' => '.refConv.mk.fits', # Convolved reference mask
    4547                             'REFCONV.VARIANCE' => '.refConv.wt.fits', # Convolved reference variance
     48                             'LOG' => '.log', # Log file
    4649                         };
    4750
  • branches/eam_branches/20091201/tools/gpc1_find_images.pl

    r26852 r26861  
    194194
    195195    %mapping = ();
    196     if ((exists($opt{C})&&(exists($opt{S})))||
    197         (exists($opt{W})&&(exists($opt{O})))||
    198         exists($opt{I})) {
    199 
    200         $sth_mapping = "SELECT skycell_id,class_id from warpSkyCellMap WHERE warp_id = $warp_id";
    201         $mr = $db->selectall_arrayref( $sth_mapping );
    202         foreach $mrr (@{ $mr }) {
    203             my ($skycell,$class) = @{ $mrr };
    204             my $raw_class = $class;
    205             $raw_class =~ s/xy/ota/i;
    206             push @{ $mapping{$skycell} }, $class;
    207             push @{ $mapping{$skycell} }, $raw_class;
    208             push @{ $mapping{$class} }, $skycell;
    209             push @{ $mapping{$raw_class} }, $skycell;
     196    unless (exists($opt{Y})) {
     197        if ((exists($opt{C})&&(exists($opt{S})))||
     198            (exists($opt{W})&&(exists($opt{O})))||
     199            exists($opt{I})) {
     200            $sth_mapping = "SELECT skycell_id,class_id from warpSkyCellMap WHERE warp_id = $warp_id";
     201            $mr = $db->selectall_arrayref( $sth_mapping );
     202            foreach $mrr (@{ $mr }) {
     203                my ($skycell,$class) = @{ $mrr };
     204                my $raw_class = $class;
     205                $raw_class =~ s/xy/ota/i;
     206                push @{ $mapping{$skycell} }, $class;
     207                push @{ $mapping{$skycell} }, $raw_class;
     208                push @{ $mapping{$class} }, $skycell;
     209                push @{ $mapping{$raw_class} }, $skycell;
    210210#           print STDERR "$raw_class $class $skycell\n";
     211            }
    211212        }
    212213    }
     
    444445            return(1);
    445446        }
     447        elsif ($opt{M} && ($key =~ /mk.fits/)) {
     448            if (($opt{O} ne '')&&($key !~ /$opt{O}/)) {
     449                return(0); # Not the requested OTA
     450            }
     451            if (($opt{S} ne '')&& !(is_mapped($key,$opt{S}))) {
     452                return(0); # Not the remapped skycell requested
     453            }
     454            return(1);
     455        }           
     456
    446457    }
    447458    return(0);
     
    478489            return(0); # Not a fits
    479490        }
     491        elsif ($key =~ /refConv/) {
     492            return(0);
     493        }
     494        elsif ($key =~ /inConv/) {
     495            return(0);
     496        }
     497        elsif ($key =~ /inv/) {
     498            return(0);
     499        }
    480500        elsif ($key =~ /wt.fits/) {
    481501            return(0); # No handler for weight right now.
    482502        }
     503
    483504        elsif ($key =~ /mask/) {
    484505            if ($opt{M}) {
  • branches/eam_branches/20091201/tools/stack_outputs.pl

    r21427 r26861  
    2020                             'B1' => '.b1.jpg', # Binned jpeg
    2121                             'B2' => '.b2.jpg', # Binned jpeg
     22                             'UNCONV.IMAGE' => '.unconv.fits', # Image
     23                             'UNCONV.MASK' => '.unconv.mask.fits', # Mask
     24                             'UNCONV.VARIANCE' => '.unconv.wt.fits', # Variance
    2225                         };
    2326
  • branches/eam_branches/20091201/tools/wiki_nightly_stacks_table.pl

    r26852 r26861  
    314314
    315315foreach $d (sort (keys %diststacks)) {
     316    unless (exists($fault_diststacks{$d})) {
     317        next;
     318    }
    316319    print '||' . $d ;
    317320    foreach $t (@targets) {
Note: See TracChangeset for help on using the changeset viewer.