IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 28653


Ignore:
Timestamp:
Jul 9, 2010, 3:19:30 PM (16 years ago)
Author:
watersc1
Message:

typo fix. Hopefully last bit of work on this.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tags/ipp-20100701/pstamp/scripts/detectability_respond.pl

    r28651 r28653  
    436436            ];
    437437    }
    438     elsif ($CMFversion eq 'PS1_DV2') {
     438    elsif ($CMFversion eq 'PS1_DV1') {
    439439        $column_defs = [
    440440            { name => 'PSF_QF',   type => '1E', writetype => TDOUBLE },
     
    458458
    459459    my $correct_error = 0;
     460#    print STDERR "Ncols:" .  $#{ $column_defs } . "\n";
    460461    foreach my $col (@$column_defs) {
    461462        my ($col_num,$col_type,$col_data);
     
    467468        $inFits->get_coltype($col_num, $col_type, undef, undef, $status) and check_fitsio($status);
    468469        $inFits->read_col($col_type, $col_num, 1, 1, $numRows, 0, $col_data, undef, $status) and check_fitsio($status);
    469        
     470#       print STDERR "$col\t>>" . $col->{name} . "<<\t>>" . @{ $col_data } . "<<\n";
    470471        if ($col->{name} eq 'PSF_QF') {
    471472            @tmp_Qfact = @{ $col_data };
     
    494495    }
    495496    $inFits->close_file( $status ) and check_fitsio($status);   
     497#    print STDERR "$CMFversion\n";
     498#    print STDERR "Q: $#tmp_Qfact\t@tmp_Qfact\nN: $#tmp_Npix\t@tmp_Npix\n";
    496499    return(\@tmp_Npix, \@tmp_Qfact, \@tmp_flux, \@tmp_flux_err);
    497500}
     
    605608        my $colName = $colNames[$i];# Column name
    606609        my $writeType = $colWriteType[$i];
     610        unless(defined($writeType)) {
     611            print "write type undefined for $colName\n";
     612        }
     613        unless(defined($numRows)) {
     614            print "num Rows undefined for $colName\n";
     615        }
     616        unless(defined($status)) {
     617            print "status undefined for $colName\n";
     618        }
     619        unless(defined($colData{$colName})) {
     620            print "col data undefined for $colName\n";
     621        }
     622        unless(defined($colName)) {
     623            print "column name undefined for $i\n";
     624        }
     625#       print STDERR "$writeType $i $numRows $colName $status @{ $colData{$colName} }\n";
    607626        $outFits->write_col( $writeType, $i + 1, 1, 1, $numRows, $colData{$colName}, $status );
    608627        check_fitsio( $status );
     628       
    609629    }
    610630    $outFits->close_file( $status );
Note: See TracChangeset for help on using the changeset viewer.