Skip to content

Commit d8a1315

Browse files
committed
Some '3LE' files preface the object name with '0 '. Space-Track has apparently adopted that convention.
1 parent a5e3783 commit d8a1315

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

sat_id.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1060,6 +1060,8 @@ static int add_tle_to_obs( object_t *objects, const size_t n_objects,
10601060
n_tles_found++;
10611061
if( tle.norad_number == 99999)
10621062
look_up_extended_identifiers( line0, &tle);
1063+
if( line0[0] == '0' && line0[1] == ' ')
1064+
memmove( line0, line0 + 2, strlen( line0 + 1));
10631065
if( (search_norad && search_norad != tle.norad_number)
10641066
|| (*search_intl && strcmp( search_intl, tle.intl_desig)))
10651067
{

0 commit comments

Comments
 (0)