timeinputmodulo
Returns a map for each timestep using a modulo index into a shorter map stack.
Result = timeinputmodulo(SuffixMap, highestTimestepAvail)
Works like the timeinput except that in timesteps larger than highestTimestepAvail a stack item I is read according to the formula:
m = time() mod highestTimestepAvail
I = if (m eq 0, then highestTimestepAvail else m)
highestTimestepAvail must be a single integer and cannot be a computed variable.
A dynamic modelling script with 7 timesteps contains the function:
rainFall = timeinputmodulo(rain,3);
The maps assigned to rainFaill are as follows:
in timestep map 1 rain0000.001 2 rain0000.002 3 rain0000.003 4 rain0000.001 5 rain0000.002 6 rain0000.003 7 rain0000.001