IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 101


Ignore:
Timestamp:
Oct 7, 2003, 11:49:08 PM (23 years ago)
Author:
eugene
Message:

abstracted ccd name/number info

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/perl/src/ckvalid

    r17 r101  
    3535$runid = "none";
    3636
     37# load ccd config information
     38@ccdn   = split (" ", `cameraconfig -ccdn`); if ($?) { &goodbye ("ERROR in cameraconfig"); }
     39@ccds   = split (" ", `cameraconfig -ccds`); if ($?) { &goodbye ("ERROR in cameraconfig"); }
     40
    3741# determine image mode (SPLIT / MEF / SINGLE)
    3842$mode = ckimmode ($name);
     
    5559# create the name of a real file:
    5660if ($mode eq SPLIT) {
    57     $tmpname = "$name/$root" . "00.fits";
     61    $tmpname = sprintf "%s/%s%s.fits", $name, $root, $ccdn[0];
    5862} else {
    5963    $tmpname = $name;
     
    106110if ($mode eq "SPLIT") {
    107111    # we only need the name of an single representative file on disk
    108     $tmpname = sprintf "%s/%s%02d.fits", $name, $root, 0;
     112    $tmpname = sprintf "%s/%s%s.fits", $name, $root, $ccdn[0];
    109113} else {
    110114    $tmpname = $name;
     
    118122
    119123# check on PHOTOMETRY
    120 $answer = `ckphotom $tmpname 00 $mode`;
     124$answer = `ckphotom $tmpname $ccds[0] $mode`;
    121125if ($?) {
    122126    if ($VEROSE) { print STDERR "photom failed: $answer\n"; }
Note: See TracChangeset for help on using the changeset viewer.