time value

time value

time value parses a TVF file consisting of dates, values, and (optionally) labels. The start and end dates are read from the file, and the time controls can be used to interpolate the values to the date and time of interest. The interpolated value and the matching label are available as output ports, for use in titles and other annotation.

Ports

DirectionNameTypeDescription
InputInput DateDateDate used for interpolating between dates in a time domain file format.
OutputStart DateDateStart Date used for interpolating between dates in a time domain file format.
OutputEnd DateDateEnd Date used for interpolating between dates in a time domain file format.
OutputOutput DateDateDate used for interpolating between dates in a time domain file format.
OutputCurrent Date And Time LabelStringText containing the name of the label for the Current Date and Time.
OutputCurrent Date And Time ValueNumberInterpolated value for the Current Date and Time.

Properties

PropertyTypeDescription
FilenameFileThe TVF file to process for interpolation.
ExecuteButtonForces the module to run. Available once a file name is set.
Label OptionsChoice: Use Previous Label, Use Closest LabelControls which label is read from the file. Use Previous Label uses the last label set before the current date. Use Closest Label uses the label closest to the date.
Date And TimeDoubleThe date and time of interest.
Time LoopLoop controlSteps the Date And Time by the specified increments.
Start DateDateThe beginning time of the simulation. This value is set to the first date in the file and is read-only.
End DateDateThe end time of the simulation. This value is set to the last date in the file and is read-only.
Step Time UnitsChoice: Seconds, Minutes, Hours, Days, Weeks, YearsThe time units of the increment for advancement when stepping or running.
Step SizeDoubleA factor, used with the Step Time Units, for the increment for advancement when stepping or running.
Current Date And Time ValueDouble (read-only)The value interpolated from the file using the set Date And Time.
Current Date And Time LabelString (read-only)The label read from the file using the set Date And Time.

Subsections of time value

TVF files provide a way to generate a time varying numeric and option string (label). The file is similar to the TCF file, but does not reference information in external files.

The file consists of two or more rows, each having 2 or 3 columns of information. The columns must contain:

  1. Date and/or time in Windows standard format
  2. A numeric (float) value (required)
  3. A string consisting of one or more words. These need not be in quotes. Everything on the row after the numeric value will be used. (optional)

Dates must be in order from earliest to latest and not repeating. Only the label column is optional.

An example file follows:
 
06/01/12	-1.63   Spring Rains
06/04/12	-1.87
06/07/12	-2.17
06/10/12	-1.87
06/13/12	-1.9
06/16/12	-2.2
06/19/12	-1.9
06/22/12	-1.96   Summer
06/25/12	-1.81
06/28/12	-1.84
07/01/12	-1.69
07/04/12	-1.39
07/07/12	-1.33
07/10/12	-1.12
07/13/12	-0.85
07/16/12	-1.03
07/19/12	-1.06
07/22/12	-0.76
07/25/12	-0.61	Flood Event
07/28/12	-0.31
07/31/12	-0.31
08/03/12	-0.52
08/06/12	-0.37
08/09/12	-0.61
08/12/12	-0.85
08/15/12	-0.79
08/18/12	-0.76
08/21/12	-0.58
08/24/12	-0.64
08/27/12	-0.49
08/30/12	-0.46
09/02/12	-0.67
09/05/12	-0.91
09/08/12	-0.82
09/11/12	-1.09	""
09/14/12	-1.27
09/17/12	-1.3
09/20/12	-1.33
09/23/12	-1.51   Fall
09/26/12	-1.42
09/29/12	-1.69
10/02/12	-1.69
10/05/12	-1.78
10/08/12	-1.84
10/11/12	-1.96
10/14/12	-2.17
10/17/12	-2.29
10/20/12	-2.26
10/23/12	-2.05
10/26/12	-2.05
10/29/12	-1.84
11/01/12	-2.05
11/04/12	-2.23
11/07/12	-2.08
11/10/12	-2.2
11/13/12	-2.41
11/16/12	-2.62
11/19/12	-2.83
11/22/12	-2.62
11/25/12	-2.5
11/28/12	-2.29
12/01/12	-2.11
12/04/12	-2.2
12/07/12	-1.9
12/10/12	-2.08
12/13/12	-1.93
12/16/12	-1.81
12/19/12	-1.75
12/22/12	-1.63   Winter
12/25/12	-1.36
12/28/12	-1.45
12/31/12	-1.24
01/03/13	-1.21
01/06/13	-1
01/09/13	-1.27
01/12/13	-1.21
01/15/13	-1.18
01/18/13	-1.15
01/21/13	-1.12
01/24/13	-1.33
01/27/13	-1.39
01/30/13	-1.24
02/02/13	-1.3
02/05/13	-1.57
02/08/13	-1.66
02/11/13	-1.81
02/14/13	-1.69
02/17/13	-1.78
02/20/13	-1.78
02/23/13	-1.84
02/26/13	-1.72
03/01/13	-2.02
03/04/13	-2.23
03/07/13	-2.08
03/10/13	-2.02
03/13/13	-2.32
03/16/13	-2.11
03/19/13	-2.41
03/22/13	-2.65   Spring
03/25/13	-2.38
03/28/13	-2.47
03/31/13	-2.47
04/03/13	-2.32
04/06/13	-2.17
04/09/13	-2.14
04/12/13	-2.41
04/15/13	-2.65
04/18/13	-2.47
04/21/13	-2.35
04/24/13	-2.32
04/27/13	-2.38
04/30/13	-2.08
05/03/13	-1.93
05/06/13	-1.84
05/09/13	-1.57
05/12/13	-1.84
05/15/13	-1.57
05/18/13	-1.57
05/21/13	-1.69
05/24/13	-1.93
05/27/13	-1.78
05/30/13	-1.57
06/02/13	-1.84