time value

time_value

The time_value module is used to parse a TVF file consisting of dates, values, and (optional) labels. The starting and end dates are read from the file and the controls can be used to interpolate the values to the date and time of interest.

Module Input Ports

  • Date [Number] Accepts a date

Module Output Ports

  • Start Date [Number] Outputs the starting date
  • End Date [Number] Outputs the ending date
  • Date [Number] Output date
  • Current Date and Time Label [String] Resulting string for the output date
  • Current Date and Time Value [Number] Resulting value for the output date
  • TVF File Format

    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 info

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