- Access the FoM object
MATLAB STK Connection: How to calculate coverage time for a coverage definition
20 views (last 30 days)
Show older comments
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
0 Comments
Answers (1)
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:
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
0 Comments
See Also
Categories
Find more on Surface and Mesh Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!