Skip to content

Commit

Permalink
If 'getradar' data is appended, it should replace whatever bits came …
Browse files Browse the repository at this point in the history
…from MPC.
  • Loading branch information
Bill-Gray committed Nov 2, 2023
1 parent e8b2fdc commit 554851a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions mpc_obs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4003,6 +4003,16 @@ OBSERVE FAR *load_observations( FILE *ifile, const char *packed_desig,
}
else if( !memcmp( buff, "#IDs ", 5))
strlcpy_err( curr_ades_ids, buff + 5, sizeof( curr_ades_ids));
else if( !memcmp( buff, "#'getradar' version", 19))
{
int j = 0; /* we're replacing/updating the radar observations */
/* using JPL data. So remove the old MPC radar. */
while( j < i)
if( rval[j].note2 == 'R')
rval[j] = rval[--i]; /* remove the radar observation */
else
j++;
}
}
}
free_ades2mpc_context( ades_context);
Expand Down

0 comments on commit 554851a

Please sign in to comment.