Skip to content

Commit

Permalink
Remove special case ER checks
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanconn committed Jan 14, 2021
1 parent d897c35 commit fa8c1b4
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 37 deletions.
31 changes: 0 additions & 31 deletions starcheck/src/lib/Ska/Starcheck/Obsid.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1145,37 +1145,6 @@ sub check_momentum_unload{
}
}

#############################################################################################
sub check_for_special_case_er{
#############################################################################################
my $self = shift;
# if the previous obsid is an OR and the current one is an ER
# and the obsid is < 10 minutes in duration (we've got a <10 min NPM criterion)
# and there is a star catalog to check
# and the last obsid had a star catalog
# and the pointings are the same
# it is a special case ER
$self->{special_case_er} = 0;
if ($self->{obsid} =~ /^\d+$/
and $self->{obsid} >= $ER_MIN_OBSID
and $self->find_command("MP_STARCAT")
and $self->{prev}
and $self->{prev}->{obsid} =~ /^\d+$/
and $self->{prev}->{obsid} < $ER_MIN_OBSID
and $self->{prev}->find_command("MP_STARCAT")
and abs($self->{ra} - $self->{prev}->{ra}) < 0.001
and abs($self->{dec} - $self->{prev}->{dec}) < 0.001
and abs($self->{roll} - $self->{prev}->{roll}) < 0.001){
if (($self->{obs_tstop} - $self->{obs_tstart}) < 10*60){
$self->{special_case_er} = 1;
push @{$self->{fyi}}, "Special Case ER\n";
}
else{
push @{$self->{fyi}},
sprintf("Same attitude as last obsid but too long (%.1f min) for Special Case ER\n", ($self->{obs_tstop} - $self->{obs_tstart})/60.);
}
}
}

#############################################################################################
sub check_sim_position {
Expand Down
6 changes: 0 additions & 6 deletions starcheck/src/starcheck.pl
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,6 @@ sub json_obsids{
$obs{$obsid}->check_star_catalog($or{$obsid}, $par{vehicle});
$obs{$obsid}->check_sim_position(@sim_trans) unless $par{vehicle};
$obs{$obsid}->check_momentum_unload(\@bs);
$obs{$obsid}->check_for_special_case_er();
$obs{$obsid}->check_bright_perigee($radmon);

# Make sure there is only one star catalog per obsid
Expand Down Expand Up @@ -693,11 +692,6 @@ sub json_obsids{
# minumum requirements for fractional guide star count for ERs and ORs
my $min_num_gui = ($obs{$obsid}->{obsid} >= 38000 ) ? 6.0 : 4.0;

# use the 'special case' ER rules from ACA-044
if ($obs{$obsid}->{special_case_er}){
$min_num_gui = 4.0;
}

# Use the acq prob model values saved in figure_of_merit for the expected
# number of acq stars and a bad overall probability. figure_of_merit isn't
# defined if there is no star catalog, so use default of 0 stars and not-bad (0 status)
Expand Down

0 comments on commit fa8c1b4

Please sign in to comment.