IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 24, 2011, 11:52:20 AM (15 years ago)
Author:
bills
Message:

add option to print out the image (skycell) coordinates of the ra,dec

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippScripts/scripts/whichimage

    r26290 r31710  
    2121     $tess_id,
    2222     $dvo_dir,
     23     $smf,
     24     $listchipcoords,
    2325     $one,
    24      $smf,
    2526     $verbose,
    2627     $save_temps,
     
    3132           'dvo_dir=s' => \$dvo_dir,
    3233           'smf=s'      => \$smf,
     34           'listchipcoords'        => \$listchipcoords,
    3335           'one'        => \$one,
    3436           'verbose'    => \$verbose,
     
    9092close $ch;
    9193
    92 my $cmd = "dvoImagesAtCoords $coord_file";
     94my $cmd = "dvoImagesAtCoords -chipcoords $coord_file";
     95$cmd .= " -listchipcoords" if $listchipcoords;
    9396
    9497my $status = 0;
     
    151154
    152155    my $command = "$dvoImagesAtCoords -full-names -coords $infile $images_arg";
     156    $command .= " -listchipcoords" if $listchipcoords;
    153157
    154158    my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
     
    158162        foreach my $line (@lines) {
    159163            chomp $line;
    160             my ($row, $ra, $dec, $component) = split " ", $line;
    161             print "$ra $dec $component_label $component\n";
     164            my ($row, $ra, $dec, $component, $x, $y) = split " ", $line;
     165            print "$ra $dec $component_label $component";
     166            if ($listchipcoords) {
     167                print " $x $y";
     168            }
     169            print "\n";
    162170        }
    163171    }
Note: See TracChangeset for help on using the changeset viewer.