Celestrak TLE files no longer working for creating satellite scenario

조회 수: 30 (최근 30일)
Ian
Ian 2025년 1월 22일
편집: Manish 2025년 1월 27일
satelliteSimulationDuration = 10; % minutes
startTime = datetime('now','TimeZone','UTC');
stopTime = startTime + minutes(satelliteSimulationDuration);
sampleTime = 1; % seconds
satscene = satelliteScenario(startTime,stopTime,sampleTime);
websave('starlink.tle','https://celestrak.org/NORAD/elements/supplemental/sup-gp.php?FILE=starlink&FORMAT=tle');
tleFile = 'starlink.tle';
constellation = satellite(satscene, tleFile);
Error using satelliteScenario/satellite>throwExceptions
Unable to add satellite to the satelliteScenario.

Error in satelliteScenario/satellite

Caused by:
Error using matlabshared.orbit.internal.generalperturbations.propagate
Unable to calculate position and velocity using SGP4/SDP4 orbit propagator. The mean orbital eccentricity must be either less than 1, greater than or equal to -0.001, or the semimajor axis must be at least 95 percent of the Earth's radius.
This code use to work just fine a couple of weeks ago and now it doesn't. Maybe it has something to do with MATLAB converting Mean Motion from rev/day to rev/sec?

답변 (1개)

Manish
Manish 2025년 1월 27일
편집: Manish 2025년 1월 27일
Hey lan,
I reproduced the code from my end in 2024b MATLAB i dont face the isssue and code is working fine.
The below debuging steps may help you:
  • Can you clear the workspace and run it.
  • Add print statements in between the code.
  • Ensure that any required environment variables are set correctly.
  • Add breakpoints and check for the root cause.
Refer to the documentation link below for 'satelliteScenario'.
Hope it helps!

카테고리

Help CenterFile Exchange에서 CubeSat and Satellites에 대해 자세히 알아보기

제품


릴리스

R2024b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by