Using TLE data from an online database, MATLAB throws the error "The specified initial conditions will cause the orbit of 'STARLINK-2438' to intersect the Earth's surface." when using this function:
startTime = datetime(2024,7,18,13,00,41);
stopTime = startTime + days(1);
sc = satelliteScenario(startTime,stopTime,sampleTime);
sat = satellite(sc,'test_tle.txt')
The TLE data in "test_tle.txt" is as follows:
STARLINK-2438
1 48103U 21027M 24199.52200852 .27610719 12343-4 29456-2 0 9995
2 48103 53.0228 234.3624 0004658 334.7729 174.1970 16.36724891183121
when manually importing the values into the function, I dont receive the error:
semiMajorAxis = (G)^(1/3)/((2*pi*(16.36724891183121)/86400)^(2/3));
eccentricity = 0.0004658;
rightAscensionOfAscendingNode = 234.3624;
argumentOfPeriapsis = 334.7729;
sat = satellite(sc,semiMajorAxis,eccentricity,inclination, ...
rightAscensionOfAscendingNode,argumentOfPeriapsis,trueAnomaly);