read tcf

read tcf

read tcf is designed to create models and animations of data that changes over time. This type of data can result from water table elevation and/or chemical measurements taken at discrete times, or from the output of groundwater simulations or other 3D time-domain simulations.

read tcf creates a field using a Time Control File (.TCF) that specifies the date/time, the field file, and the corresponding data component to read for each time step of a time data field. All files named in the TCF file must be of the same type. The same file can be repeated, specifying different data components to represent different time steps of the output. When the TCF file names VTK files, the Vtk Import Settings apply, because VTK files do not record their own coordinate units.

The module performs internal interpolation between the appropriate pair of files and data components specified in the TCF file. Its internal structure only requires reading the two time steps surrounding the date of interest, rather than the complete listing of time steps normally represented in a time data field.

The date can be driven directly with the Date And Time control and Time Loop, or, with Use Sequencing turned on, by a generated sequence of dates that is output on the Output Sequence port.

Ports

DirectionNameTypeDescription
InputInput DateDateDate used for interpolating between dates in a time control file format.
OutputStart DateDateStart Date used for interpolating between dates in a time control file format.
OutputEnd DateDateEnd Date used for interpolating between dates in a time control file format.
OutputOutput DateDateDate used for interpolating between dates in a time control file format.
OutputOutput FieldFieldThe main output field with interpolated data.
OutputOutput SequenceSequenceThe generated sequence of states.

Properties

PropertyTypeDescription
FilenameFileThe time control file to process for interpolation.
ExecuteButtonForces the module to run. Available once a file name is set.
Log Process Nodal DataBooleanTakes the log of the input nodal data.
Log Process Cell DataBooleanTakes the log of the input cell data.
Date And TimeDateThe date and time of interest. Available when Use Sequencing is off.
Time LoopLoop controlSteps the Date And Time by the specified increments. Available when Use Sequencing is off.
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.
Use SequencingBooleanAllows a generated sequence of dates to drive the module instead of the Date And Time control.

Vtk Import Settings

PropertyTypeDescription
UnitsStringThe coordinate units of the VTK files named by the time control file. VTK files do not record their own units. Available when the time control file uses VTK files.
Split Polyhedral CellsBooleanSplits each polyhedral cell into tetrahedra as the file is read. Off by default, so polyhedra are imported as they are in the file and one cell in EVS stays one cell in the model. Turn this on if the model is slow to probe, interpolate or pick: locating a point inside a polyhedron is far more expensive than inside a tetrahedron, and splitting trades that cost for a much higher cell count, with each cell’s data repeated across the pieces it becomes. Splitting cannot be undone later in the network. Both timesteps are read with this setting.

Sequence Settings

PropertyTypeDescription
Current StateSequence StateThe current state of the sequence. Available when Use Sequencing is on.
State ControlChoice: Slider, Combo Box, List BoxDetermines how the user interacts with the created sequence of states.
Allow CyclesBooleanAllows the state control to be cycled in CTWS files.
State TitleExpressionThe template used to generate the title for each state of the sequence. Variables: Date (the date and time of the state, in the application date format), Value (the date and time of the state as a number), StepSize (the expected step size, in days, between sequence values), ModuleName (the display name of the module).
Sequence Generation PropertiesValue generatorGenerates the list of dates for sequencing. Methods: Linear By Step (values from an anchor point at a fixed step size), Linear By Count (a fixed number of evenly-spaced values), User Entries (manually specified values), File Times (the dates listed in the time control file).

Subsections of read tcf

TCF File Format and Example

The listing below is the full contents of the Time Control File control_tce_cdf.tcf. Blank lines or any lines beginning with a “#” are ignored. Valid lines representing time steps must be in order of ascending time and consisting of:

a) a date and/or time in Windows standard format

b) a file name with an absolute path or just the filename (if the data files are in the same directory as the TCF file). This is not a true relative path (..\file.cdf and subdir\file.cdf don’t work, but file.cdf does), but gives some of the relative path abilities.

c) the data component to use for that time step. (You can specify -1 in the third column, which causes ALL the data components to pass through.)

NOTE: These three items on each line must be separated with a comma “,”.

This file contains the list of control commands for the

TCE time data in netCDF format.

The format is a date/time, then the file, then the nodal data component.

The END on the last line is optional.

Each line MUST be comma delimited

(since spaces can exist in the time and filename)

6/1/1990 12:00 AM, $XP_PATH<0>/data/netcdf/time_data/tce_01.cdf, 0

12/1/1990, $XP_PATH<0>/data/netcdf/time_data/tce_02.cdf, 0

2/1/1991, $XP_PATH<0>/data/netcdf/time_data/tce_03.cdf, 0

5/1/1991, $XP_PATH<0>/data/netcdf/time_data/tce_04.cdf, 0

8/1/1991, $XP_PATH<0>/data/netcdf/time_data/tce_05.cdf, 0

11/1/1991, $XP_PATH<0>/data/netcdf/time_data/tce_06.cdf, 0

3/1/1992, $XP_PATH<0>/data/netcdf/time_data/tce_07.cdf, 0

6/1/1992, $XP_PATH<0>/data/netcdf/time_data/tce_08.cdf, 0

10/1/1992, $XP_PATH<0>/data/netcdf/time_data/tce_09.cdf, 0

3/1/1993, $XP_PATH<0>/data/netcdf/time_data/tce_10.cdf, 0

4/1/1993, $XP_PATH<0>/data/netcdf/time_data/tce_11.cdf, 0

8/1/1993, $XP_PATH<0>/data/netcdf/time_data/tce_12.cdf, 0

12/1/1993, $XP_PATH<0>/data/netcdf/time_data/tce_13.cdf, 0

3/1/1994, $XP_PATH<0>/data/netcdf/time_data/tce_14.cdf, 0

6/1/1994, $XP_PATH<0>/data/netcdf/time_data/tce_15.cdf, 0

9/1/1994, $XP_PATH<0>/data/netcdf/time_data/tce_16.cdf, 0

11/1/1994, $XP_PATH<0>/data/netcdf/time_data/tce_17.cdf, 0

3/1/1995, $XP_PATH<0>/data/netcdf/time_data/tce_18.cdf, 0

5/1/1995, $XP_PATH<0>/data/netcdf/time_data/tce_19.cdf, 0

8/1/1995, $XP_PATH<0>/data/netcdf/time_data/tce_20.cdf, 0

10/1/1995, $XP_PATH<0>/data/netcdf/time_data/tce_21.cdf, 0

1/1/1996, $XP_PATH<0>/data/netcdf/time_data/tce_22.cdf, 0

5/1/1996, $XP_PATH<0>/data/netcdf/time_data/tce_23.cdf, 0

9/1/1996, $XP_PATH<0>/data/netcdf/time_data/tce_24.cdf, 0

11/1/1996, $XP_PATH<0>/data/netcdf/time_data/tce_25.cdf, 0

12/1/1996, $XP_PATH<0>/data/netcdf/time_data/tce_26.cdf, 0

3/1/1997 12:00 AM, $XP_PATH<0>/data/netcdf/time_data/tce_27.cdf, 0

6/1/1997, $XP_PATH<0>/data/netcdf/time_data/tce_28.cdf, 0

9/1/1997, $XP_PATH<0>/data/netcdf/time_data/tce_29.cdf, 0

12/1/1997, $XP_PATH<0>/data/netcdf/time_data/tce_30.cdf, 0

3/1/1998, $XP_PATH<0>/data/netcdf/time_data/tce_31.cdf, 0

6/1/1998, $XP_PATH<0>/data/netcdf/time_data/tce_32.cdf, 0

9/1/1998, $XP_PATH<0>/data/netcdf/time_data/tce_33.cdf, 0

11/1/1998, $XP_PATH<0>/data/netcdf/time_data/tce_34.cdf, 0

5/1/1999, $XP_PATH<0>/data/netcdf/time_data/tce_35.cdf, 0

10/1/1999, $XP_PATH<0>/data/netcdf/time_data/tce_36.cdf, 0

3/1/2000, $XP_PATH<0>/data/netcdf/time_data/tce_37.cdf, 0

7/1/2000, $XP_PATH<0>/data/netcdf/time_data/tce_38.cdf, 0

11/1/2000, $XP_PATH<0>/data/netcdf/time_data/tce_39.cdf, 0

3/1/2001, $XP_PATH<0>/data/netcdf/time_data/tce_40.cdf, 0

5/1/2001, $XP_PATH<0>/data/netcdf/time_data/tce_41.cdf, 0

10/1/2001, $XP_PATH<0>/data/netcdf/time_data/tce_42.cdf, 0

END