Changeset 28652
- Timestamp:
- Jul 9, 2010, 3:18:44 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/pstamp/scripts/detectability_respond.pl (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pstamp/scripts/detectability_respond.pl
r28650 r28652 436 436 ]; 437 437 } 438 elsif ($CMFversion eq 'PS1_DV 2') {438 elsif ($CMFversion eq 'PS1_DV1') { 439 439 $column_defs = [ 440 440 { name => 'PSF_QF', type => '1E', writetype => TDOUBLE }, … … 458 458 459 459 my $correct_error = 0; 460 # print STDERR "Ncols:" . $#{ $column_defs } . "\n"; 460 461 foreach my $col (@$column_defs) { 461 462 my ($col_num,$col_type,$col_data); … … 467 468 $inFits->get_coltype($col_num, $col_type, undef, undef, $status) and check_fitsio($status); 468 469 $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"; 470 471 if ($col->{name} eq 'PSF_QF') { 471 472 @tmp_Qfact = @{ $col_data }; … … 494 495 } 495 496 $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"; 496 499 return(\@tmp_Npix, \@tmp_Qfact, \@tmp_flux, \@tmp_flux_err); 497 500 } … … 605 608 my $colName = $colNames[$i];# Column name 606 609 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"; 607 626 $outFits->write_col( $writeType, $i + 1, 1, 1, $numRows, $colData{$colName}, $status ); 608 627 check_fitsio( $status ); 628 609 629 } 610 630 $outFits->close_file( $status );
Note:
See TracChangeset
for help on using the changeset viewer.
