From 554851a59966cca15b065e4831333651f12bd104 Mon Sep 17 00:00:00 2001 From: Bill-Gray Date: Wed, 1 Nov 2023 20:58:42 -0400 Subject: [PATCH] If 'getradar' data is appended, it should replace whatever bits came from MPC. --- mpc_obs.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/mpc_obs.cpp b/mpc_obs.cpp index 912af7f3..babf0f5e 100644 --- a/mpc_obs.cpp +++ b/mpc_obs.cpp @@ -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);