MATLAB STK Connection: How to calculate coverage time for a coverage definition

20 views (last 30 days)
I wrote a code to create a coverage definition, altering its properties, creating a Figure of Merit (FoM), and creating a satellite constellation to compute its coverage using the FoM.
The problem is extracting the FoM values using the data providers if anyone can help. Thanks in advance

Answers (1)

Prathamesh
Prathamesh on 28 May 2025 at 11:18
I understand that you are working with STK. You wrote a code to create a coverage definition, altering its properties, creating a Figure of Merit (FoM), and creating a satellite constellation to compute its coverage using the FoM and you want to extract the FoM values using the data providers.
Here's how you can extract FoM values:
  1. Access the FoM object
Fom = coverageDefinition.Children.Item('YourFoMName');
2. Access the Data Provider
dp = fom.DataProviders.Item('Value By Time');
3.Execute the Data Provider
result = dp.ExecElements({startTime, stopTime, timeStep});
4. Extract the data
times = result.DataSets.GetDataSetByName('Time').GetValues;
values = result.DataSets.GetDataSetByName('Figure Of Merit').GetValues;
Now times and values will contain the time series of your FoM.
Hope this helps

Products


Release

R2022a

Community Treasure Hunt

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

Start Hunting!