STK ObjectsSend comments on this topic.
IsStatisticAvailable Method (IAgDataProvider)
See Also
Statistic
ElementName
Windows





Windows & Linux

Description

Is the supplied statistic available for the provided element name?

Syntax

[Visual Basic .NET]
Public Function IsStatisticAvailable( _
    ByVal Statistic As AgEStatistics, _
    ByVal ElementName As String _
) As Boolean
[C#]
public bool IsStatisticAvailable(
    AgEStatistics Statistic,
    string ElementName
);
[Managed C++]
public: bool IsStatisticAvailable(
    AgEStatistics Statistic,
    String __gc ^ ElementName
);
[Unmanaged C++]
public: HRESULT IsStatisticAvailable(
    AgEStatistics Statistic,
    BSTR ElementName,
    VARIANT_BOOL * pIsAvailable
);
[Java]
public bool isStatisticAvailable(
    AgEStatistics Statistic,
    String ElementName
);
[Python - STK API ]
def IsStatisticAvailable(self, Statistic:"AgEStatistics", ElementName:str) -> bool:

Parameters

Statistic
ElementName

See Also

Example

Is statistics available for data provider element
[C#]
IAgDataProvider dataProvider = satellite.DataProviders.GetDataPrvInfoFromPath("LLR State/Fixed") as IAgDataProvider;
if (dataProvider.IsStatisticAvailable(AgEStatistics.eMean, "Lat"))
{
    // Calculate statistics from Data Set
}
Is statistics available for data provider element
[Visual Basic .NET]
Dim dataProvider As IAgDataProvider = TryCast(satellite.DataProviders.GetDataPrvInfoFromPath("LLR State/Fixed"), IAgDataProvider)
		' Calculate statistics from Data Set
If dataProvider.IsStatisticAvailable(AgEStatistics.eMean, "Lat") Then
End If
© 2024 Analytical Graphics, Inc. All Rights Reserved.