Hello everyone,
I'm wondering if anyone can help me with a question I have. I'm trying to calculate the repeat cycle of a Sun-Synchronous orbit (SSO) with Satellite Communication Toolbox functions, but I haven't found a function that gives this capability.
¿There is any method included in the Satellite Communication Toolbox (or in other Toolboxes) to calculate this repeat cycle?
Note: I'm trying to calculate the repeat cycle, not the orbit period. In SSO orbits this is not the same.
I would really appreciate any help or advice you can provide.
Thank you!

 Réponse acceptée

Aloob
Aloob le 29 Oct 2026 à 9:46
The repeat cycle is not the same as the orbital period, and there is no built-in function to calculate it. You can determine it through simulation using satelliteScenario in Satellite Communications Toolbox.
The ground track repeats when the satellite crosses the equator northbound at the same longitude where it started. So:
  1. Propagate the orbit using the SGP4 propagator.
  2. Find each ascending-node crossing, where the latitude changes from negative to positive.
  3. Identify the first crossing that occurs within a small tolerance of the starting longitude. Its orbit number is N, and the elapsed time is D days.
%% Repeat cycle of a sun-synchronous orbit from an SGP4 simulation
% Propagate the orbit, find every ascending-node crossing, and take the
% first crossing that returns to the starting longitude.
%% Orbit (example values close to Landsat 8)
revPerDay = 14.5711; % TLE mean motion, rev/day
inc = 98.2; % deg
numDays = 20; % search window, days
tolKm = 10; % repeat tolerance at equator
mu = 3.986004418e14; Re = 6378137;
n = revPerDay*2*pi/86400; % rad/s
a = (mu/n^2)^(1/3); % m
%% Scenario and satellite
t0 = datetime(2026,1,1);
sc = satelliteScenario(t0, t0 + days(numDays), 30);
sat = satellite(sc, a, 0, inc, 0, 0, 0, OrbitPropagator="sgp4");
%% Ground track
[pos, ~, t] = states(sat, CoordinateFrame="geographic");
lat = pos(1,:);
lon = pos(2,:);
t = seconds(t - t(1));
%% Ascending-node crossings: latitude goes from negative to positive
k = find(lat(1:end-1) < 0 & lat(2:end) >= 0);
frac = -lat(k)./(lat(k+1) - lat(k));
tNode = t(k) + frac.*(t(k+1) - t(k));
lonNode = lon(k) + frac.*(mod(lon(k+1) - lon(k) + 180, 360) - 180);
%% Repeat: first node that returns within tolerance of the first one
offKm = deg2rad(mod(lonNode - lonNode(1) + 180, 360) - 180)*Re/1e3;
j = find(abs(offKm) < tolKm, 2); % first hit is node 1 itself
if numel(j) < 2
error("No repeat within %d days at %g km tolerance.", numDays, tolKm)
end
j = j(2);
N = j - 1; % orbits
D = (tNode(j) - tNode(1))/86400; % days
fprintf('Repeat cycle: %d orbits in %.4f days (offset %.1f km)\n', N, D, abs(offKm(j)));
Repeat cycle: 233 orbits in 16.0000 days (offset 3.0 km)

Plus de réponses (1)

Hi César,
I understand that you are trying to calculate repeat cycle of SSO and would like to know if there are any available functions with Satellite Communications Toolbox to achieve the task. However, Satellite Communications Toolbox does not have a specific function to calculate the repeat cycle of SSO. A possible work around could be to calculate the repeat cycle of SSO manually using basic orbital parameters, including the semi-major axis, eccentricity, inclination and rotation of the Earth.
Please refer to the following code snippet for a general approach to calculate the repeat cycle of an SSO using MATLAB
% Determine Orbital parameters of the SSO - Usually obtained from satellite
% databases
a = 7000; % Semi-major axis in kilometers
e = 0.001; % Eccentricity
i = 98.5; % Inclination in degrees
% Gravitational parameter of the Earth
mu = 3.986e5; % km^3/s^2
% Calculate mean motion
n = sqrt(mu / (a^3));
% Calculate period
T = 2 * pi / n;
% Calculate number of orbits per day
N = 24 * 60 / T;
% Calculate repeat cycle
R = 1 / (N / 365);
disp(['Repeat Cycle: ' num2str(R) ' days']);
Hope this helps.

1 commentaire

% Calculate number of orbits per day
N = 24 * 60 * 60 / T;
N must be calculated like this

Connectez-vous pour commenter.

Catégories

En savoir plus sur Satellite and Orbital Mechanics dans Centre d'aide et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by