STK ObjectsSend comments on this topic.
ExecSingleElementsArray Method (IAgDataPrvTimeVar)
See Also
TimeArray
ElementNames
Windows





Windows & Linux

Description

Computes the data given a single Time array and return just the indicated data elements. If time values without data are requested, null entries will be returned in the data array. SingleTime uses DateFormat Dimension.

Syntax

[Visual Basic .NET]
Public Function ExecSingleElementsArray( _
    ByVal TimeArray As System.Array, _
    ByVal ElementNames As System.Array _
) As IAgDrTimeArrayElements
[C#]
public IAgDrTimeArrayElements ExecSingleElementsArray(
    System.Array TimeArray,
    System.Array ElementNames
);
[Managed C++]
public: IAgDrTimeArrayElements^ ExecSingleElementsArray(
    System::Array ^ TimeArray,
    System::Array ^ ElementNames
);
[Unmanaged C++]
public: HRESULT ExecSingleElementsArray(
    SAFEARRAY * * TimeArray,
    SAFEARRAY * * ElementNames,
    IAgDrTimeArrayElements ** ppIAgDrTimeArrayElements
);
[Java]
public IAgDrTimeArrayElements execSingleElementsArray(
    AgSafeArray TimeArray,
    AgSafeArray ElementNames
);
[Python - STK API ]
def ExecSingleElementsArray(self, TimeArray:list, ElementNames:list) -> "IAgDrTimeArrayElements":

Parameters

TimeArray
ElementNames

See Also

Example

Execute a time dependent data provider and returning the specified elements at the specified time
[C#]
Array times = new object[]
              {
                  "1 Jan 2012 12:00:00.000", "1 Jan 2012 12:00:20.000",
                  "1 Jan 2012 12:00:40.000"
              };
Array elems = new object[]
              {
                  "Time",
                  "Precision Pass Number"
              };

IAgDataPrvTimeVar dp = satellite.DataProviders["Precision Passes"] as IAgDataPrvTimeVar;

// ExecSingleElementsArray expects each safe array parameter to be one dimensional,
// all arrays must have the same length
IAgDrTimeArrayElements resInfo = dp.ExecSingleElementsArray(ref times, ref elems);
Execute a time dependent data provider and returning the specified elements at the specified time
[Visual Basic .NET]
Dim times As Array = New Object() {"1 Jan 2012 12:00:00.000", "1 Jan 2012 12:00:20.000", "1 Jan 2012 12:00:40.000"}
Dim elems As Array = New Object() {"Time", "Precision Pass Number"}

Dim dp As IAgDataPrvTimeVar = TryCast(satellite.DataProviders("Precision Passes"), IAgDataPrvTimeVar)

' ExecSingleElementsArray expects each safe array parameter to be one dimensional,
' all arrays must have the same length
Dim resInfo As IAgDrTimeArrayElements = dp.ExecSingleElementsArray(times, elems)
© 2024 Analytical Graphics, Inc. All Rights Reserved.