 | CVVSetupIndex Method |
Setup an index VV from VV1 to VV2.
Namespace:
GeoEngine.Core.GXNetX
Assembly:
geoengine.core.gxnetx (in geoengine.core.gxnetx.dll) Version: 2024.2.0.25
Syntaxpublic void SetupIndex(
CVV vvq,
CVV vvi,
int mode,
double space
)
public void SetupIndex(
CVV vvq,
CVV vvi,
int mode,
double space
)
Public Sub SetupIndex (
vvq As CVV,
vvi As CVV,
mode As Integer,
space As Double
)
Public Sub SetupIndex (
vvq As CVV,
vvi As CVV,
mode As Integer,
space As Double
)
public:
void SetupIndex(
CVV^ vvq,
CVV^ vvi,
int mode,
double space
)
public:
void SetupIndex(
CVV^ vvq,
CVV^ vvi,
int mode,
double space
)
member SetupIndex :
vvq : CVV *
vvi : CVV *
mode : int *
space : float -> unit
member SetupIndex :
vvq : CVV *
vvi : CVV *
mode : int *
space : float -> unit
Parameters
- vvq
- Type: GeoEngine.Core.GXNetXCVV
Query VV (same type as Data VV) - vvi
- Type: GeoEngine.Core.GXNetXCVV
VV index VV of type REAL - mode
- Type: SystemInt32
<define>VV_LOOKUP</define> - space
- Type: SystemDouble
Spacing for some modes
Remarks
The input reference VV must be in ascending numerical order.
If your reference data is NOT ordered, then use the SortIndex1_VV
function to create an order index, then sort both the reference and data VVs
using this index VV before you call SetupIndex_VV.
Example: You have a reference data set taken at specific times, hVVt, hVVy
and you want to calculate/estimate/interpolate the values hVVy2 at a second set
of times hVVt2
Step 1: Create an index, hVVi, type <define>GS_DOUBLE</define>, and call SetupIndex_VV.
with: hVVt2, hVVi, VV_LOOKUP_XXX, rSpacing
Internally, this assigns index values of 0.0, 1.0, 2.0 etc. to the individual
values in hVVt, then, depending on the lookup method chosen, assigns
fractional index values to the input values in hVVt2.
Step 2: To determine what the lookup values hVVy2 should be at times hVVt2,
call the LookupIndex_VV function for hVVy with hVVi, hVVy2
Internally, this assigns index values of 0.0, 1.0, 2.0 etc. to the individual
values in hVVy, and uses linear interpolation to calculate the values of
hVVy2 at the input indices contained in hVVi.
See Also