GetSlotVals and GetSlotValsNaNToZero

Description

This function evaluates to a list composed of the values of a given series slot within a time range. GetSlotVals can also be used on a periodic slot, while GetSlotValsNaNToZero, cannot.

Type

LIST{NUMERIC}

Arguments

Type

Meaning

1

SLOT

the series (or periodic slot) whose values to get

2

DATETIME

start datetime

3

DATETIME

end datetime

Evaluation

A list is generated by looking up each value in the given slot, beginning with the start datetime, and ending with the end datetime. All slot values in the range are returned, regardless of the slot data’s timestep resolution vis-a-vis that of the run control.

Mathematical
Expression

 

Comments

If the start datetime or end datetime does not match one of the slot’s values’, or if the start datetime is after the end datetime, this function aborts the run with an error. For GetSlotVals, if one of the slot values within the desired time range is a NaN, the function exits the rule with an early termination. For GetSlotValsNaNToZero, it converts any NaNs into zero.

For periodic slots and GetSlotVals, the dates used are those within the range and falling on a run timestep; the column used is the first (column 0).

 
GetSlotVals(Dolores.Inflow, @"t",
@"September 31,Current Year")
GetSlotValsNaNToZero(Mead.Seepage, @”Start Timestep”, @”t”)
 
{ 1.43"cms", 2.12 "cms" }