Skip to content

Commit

Permalink
Prepend 'centroid' to 'offset' in imposter warning
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanconn committed Jan 17, 2019
1 parent c313ffa commit 27d9b4c
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions starcheck/src/lib/Ska/Starcheck/Obsid.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1345,10 +1345,11 @@ sub check_star_catalog {
push @warn, "$alarm [%d] Processing error when checking for hot pixels.\n";
next IMPOSTER;
}
my $warn = sprintf("$alarm [%2d] Imposter mag %.1f offset %.1f (row % 4d, col % 4d) star (% 4d, % 4d)\n",
$imposter->{idx}, $imposter->{bad2_mag}, $imposter->{offset},
$imposter->{bad2_row}, $imposter->{bad2_col},
$imposter->{entry_row}, $imposter->{entry_col});
my $warn = sprintf(
"$alarm [%2d] Imposter mag %.1f centroid offset %.1f (row % 4d, col % 4d) star (% 4d, % 4d)\n",
$imposter->{idx}, $imposter->{bad2_mag}, $imposter->{offset},
$imposter->{bad2_row}, $imposter->{bad2_col},
$imposter->{entry_row}, $imposter->{entry_col});
if ($imposter->{offset} > 4.0){
push @warn, $warn;
}
Expand Down

0 comments on commit 27d9b4c

Please sign in to comment.