Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Data Format B-1  P2D Polyline / and Polygon File.
Any number of polylines /or polygons can reside in the same file. Each one begins with a single line header that is used as the "ID" of the polyline /or polygon. Next comes the data in either 2D or 3D format, the importing automatically handles either. Finally, the polyline /or polygon is finished (not necessarily "closed") by an "*" in column 1. There is no difference between polyline and polygon in a P2D file, only how the data are treated by the application reading the file.
Example
------------------------
Polyline                                                            Test

...

Data Format B-2  TB2 XYZ Gridded Data.
This format is a compact way to store regular grid X, Y, and Z data. It contains three lists, each with the number of data points as the first value in the list. The file contains a list of the X coordinates, a list of Y coordinates, and a list of the Z's.
Example
------------------------
195                                                            Nx

...

-28.1969829
...
...
...

Data Format B-3  DX Polyline /and Polygon File.
The DX format is described by in the following outline. The vertical bar "|" indicates the actual left side of the file.

...

Loop over the number of vertical profile locations
    Line 1: ID                                 (any user defined ID)
    Line 2: Xc, Yc, nPts                 (nPts in vertical profile)
    Loop over nPts
       Input Depth                           (Positive depths below the water surface, m)
    End Loop
    Loop over nPts
        Input Parameter_Value         (units dependent on the parameter)
    End Loop
 End Loop

...

Data file containing observation data (.wq,.dat)

Description

10993 USGS_Speedy, Salinity, PPT
01-Jul-1999 00:00 27.7
01-Jul-1999 01:00 27.6
01-Jul-1999 02:00 27.8
01-Jul-1999 03:00 27.8
01-Jul-1999 04:00 27.7
01-Jul-1999 05:00 27.6
01-Jul-1999 06:00 27.6
01-Jul-1999 07:00 27.5
01-Jul-1999 08:00 27.5
01-Jul-1999 09:00 27.5
01-Jul-1999 10:00 27.6
01-Jul-1999 11:00 27.8
01-Jul-1999 12:00 27.9
01-Jul-1999 13:00 28
01-Jul-1999 14:00 27.9
01-Jul-1999 15:00 28
01-Jul-1999 16:00 28.1
01-Jul-1999 17:00 28.1
.......................

First line: 10993: number (N) of data points; USGS_Speedy, Name, Units: title for some meaning (here: station name, water temperature in Celsius degree). This text is only used for labeling.

Second line to N lines: Date (Gregorian) (Julian date is also OK, for example, the 370th day counting from 01-Jan-1999), time, and parameter's value. The Gregorian date format can be in any format that Windows recognizes as a date. EE uses the last parameter in the line as the data value.

The data lines are repeated for all N data points.

...

SE 03, Unknown (Unknown) @ 573370.8125, 3009112
14 18-Aug-1999 11:25
0.000 0.500 1.000 1.500 2.000 2.500 3.000 3.000 3.500 4.000 4.500 5.000 5.500 6.000
6.300 6.300 7.100 7.100 7.400 9.000 10.300 10.300 11.200 11.700 12.300 14.200 16.500 17.500
12 29-Sep-1999 10:15
0.000 0.500 1.000 1.500 2.000 2.500 3.000 3.000 3.500 4.000 4.500 5.000
1.600 1.600 1.600 1.700 1.700 1.700 1.700 1.700 1.700 1.700 1.700 1.700
8 18-Oct-1999 12:05
0.000 0.500 1.000 1.500 2.000 2.500 3.000 3.000
0.100 0.100 0.100 0.100 0.100 0.100 0.100 0.100
13 29-Nov-1999 11:33
0.000 0.500 1.000 1.500 2.000 2.500 3.000 3.000 3.500 4.000 4.500 5.000 5.500
6.300 6.700 7.500 8.400 10.600 12.100 12.700 12.700 16.700 17.000 17.100 17.200 18.400
9 15-Dec-1999 11:00
0.000 0.500 1.000 1.500 2.000 2.000 2.500 3.000 3.500
8.500 8.600 8.600 8.800 9.300 9.700 9.900 10.700 11.480
13 13-Jan-2000 10:54
0.000 0.500 1.000 1.500 2.000 2.500 3.000 3.000 3.500 4.000 4.500 5.000 5.500
4.100 4.400 8.900 10.300 12.900 14.100 15.100 15.100 15.300 15.100 16.800 17.000 17.200
13 24-Feb-2000 12:26
0.000 0.500 1.000 1.500 2.000 2.500 3.000 3.000 3.500 4.000 4.500 5.000 5.500
23.800 24.000 24.000 24.200 24.200 24.200 24.200 24.200 24.300 24.300 24.300 24.300 24.400
14 23-Mar-2000 10:52
0.000 0.500 1.000 1.500 2.000 2.500 3.000 3.000 3.500 4.000 4.500 5.000 5.500 6.000
21.000 21.000 21.100 21.200 21.200 21.300 21.300 21.300 21.300 21.300 21.300 21.700 21.700 21.700
14 10-Apr-2000 11:26
0.000 0.500 1.000 1.500 2.000 2.500 3.000 3.000 3.500 4.000 4.500 5.000 5.500 6.000
21.600 21.700 21.800 21.800 21.900 22.600 22.700 22.700 22.900 23.000 23.200 23.300 23.500 23.600
15 01-May-2000 12:00
0.000 0.500 1.000 1.500 2.000 2.500 3.000 3.000 3.500 4.000 4.500 5.000 5.500 6.000 6.500
1.800 1.800 2.200 4.000 5.100 6.300 7.200 7.200 8.700 9.400 9.600 9.700 9.800 9.900 9.900
13 08-May-2000 11:15
0.000 0.500 1.000 1.500 2.000 2.500 2.500 3.000 3.500 4.000 4.500 5.000 5.500
2.300 2.500 2.700 2.700 2.800 2.900 2.900 2.900 2.900 3.200 3.900 3.900 4.200
11 25-May-2000 12:15
0.000 0.500 1.000 1.500 2.000 2.500 3.000 3.000 3.500 4.000 4.500
6.100 6.100 6.100 8.200 10.900 13.700 16.100 16.100 18.700 21.200 21.600
12 07-Jun-2000 11:30
0.000 0.500 1.000 1.500 2.000 2.500 2.500 3.000 3.500 4.000 4.500 5.000
18.400 18.700 19.100 19.300 20.100 20.600 20.600 21.100 21.700 22.500 23.100 23.500
11 26-Jun-2000 13:20
0.000 0.500 1.000 1.500 2.000 2.500 3.000 3.000 3.500 4.000 4.500
17.900 17.890 18.300 21.450 21.640 21.710 21.790 21.790 21.960 22.230 22.340
14 06-Jul-2000 11:20
0.000 0.500 1.000 1.500 2.000 2.500 3.000 3.000 3.500 4.000 4.500 5.000 5.500 6.000
30.900 20.300 21.500 21.800 22.200 22.600 23.100 23.100 23.600 23.700 24.000 24.000 24.000 24.000
13 21-Aug-2000 11:55
0.000 0.500 1.000 1.500 2.000 2.500 3.000 3.000 3.500 4.000 4.500 5.000 5.500
15.400 15.300 15.300 15.400 15.400 15.400 15.500 15.500 15.700 15.700 16.100 16.100 16.700
14 18-Sep-2000 12:28
0.000 0.500 1.000 1.500 2.000 2.500 3.000 3.000 3.500 4.000 4.500 5.000 5.500 6.000
21.280 21.210 21.240 21.930 22.060 22.200 22.380 22.380 22.230 22.560 22.470 22.850 23.000 23.040

First line: Title for some meaning (here: station name, coordinate) This field is not used by EE.

Second line: number of data points on the vertical profile (i.e., 14); Date (Gregorian) (i.e., 18-Aug-1999) and time (i.e., 11:25)
Third line: the water depths (from the water surface) of the points along with the vertical profile (the depth unit must correspond to the model unit: meters)
Fourth line: the observation water quality values of the points. Units – Must correspond to the model units.

Repeat lines 2-4 for each profile.


Data Format B-9  Polygon DSM Format
The "Polygon" Digital Sediment Model (DSM) format is a file that contains any number of polygons that define an area followed by a data block that contains the sediment data. The polygon ID and the data block ID's must match. The data block consists of a line for each depth (beginning at the surface or 0.0 depth) for which data exists. On each line, the user must include the depth (m), thickness (m), porosity, and then the grain size. The number of grain size classes and the associated size breaks are determined by the space-delimited data of the label line (see example). The number of grain size classes and their sizes must be the same for every sediment data block in the file. However, the size classes can vary from file to file or project to project to meet the project needs.
Example

...

Data Format B-10  Sediment Cores with Grainsize DSM Format
The "Sediment Cores with Grainsize" Digital Sediment Model (DSM) format is a file that contains any number of cores. Each core can have any number of samples at depths below the top of the core. For each core, the user must locate the core in horizontal (XY) space. The "Z" requested is the top of the core elevation (i.e. the bottom elevation at the core location).

Title Line
"Discrete" Flag: Used to determine the data file format
Loop over groupings of cores (Loop Terminated by the "END" statement)

...

Explanation of the header fields:

Table 1: Description of the data field in TVF file header

INPT

Input format:

INPT = 0: The number of values and its order for each component the field in each time step is the same as grid cells.

INPT = 1: The number of values each component the field in each time step can be less than the number of the grid cells but the data lines should have cell indices (NL, IC, JC) in front of data values.

NT

Number of time steps.

NC

Number of components.

NC=1 for bathymetry, bottom roughness, barometric pressure, etc.

NC=2 for wind fields (X and Y components of wind speed).

NL

Number of grid cells. This is for QC to ensure the data matches the model grid.

NK

number of vertical layers (NK = 1 for this version).

ITRP

Interpolation option:

ITRP = 0: no interpolation, direct field applied at each time step.

ITRP = 1: linear interpolation between time steps.

IUPD

Flag to direct EFDC on how to update the current cell value with the reading value.

IUPD = 0: The cell value will be replaced by the reading value.

IUPD = 1: The cell value will be added with the reading value.

IUPD = 2: The cell value will be the min. of the current cell value and the reading value.

IUPD = 3: The cell value will be the max. of the current cell value and the reading value.

IDST

Specific option for data operation after interpolation

IDST = 0: Cell value = field value

IDST = 1: Cell value = field value multiplies cell area

TSCL

Conversion factor to convert time values to seconds (default 86400)

TSHF

Time offset having the same unit as time values (default 0)

VSCL

Conversion factor to convert the field values to the same units as in EFDC (default 1)

VSHF

Value offset having the same unit as the field values (default 0)

NODAT

No data value. Cells having this value will not change/not be updated by reading values.

YY

The year of the base date

MM

The month of the base date

DD

The day of the base date

...

Each data block for one time step begins with the time value (in Julian days from the base date) and a number of grid cells to which the data will be applied for (should be the same as NL for INPT = 0).

For INPT = 0, the number of the data values for in each block should be NC × NL × NK values and the FORTRAN command to read the data is as follows

...

For INPT = 1, the number of the data values for in each block can vary and the FORTRAN command to read the data is as follows

...

The file header has a length of 80 bytes with the data fields are as the table bellows:

Description of the data field in a binary TVF file header

...

For INPT = 0, the number of the data values for in each block should be NC × LC × NK values and the FORTRAN command to read the data is as follows

...

For INPT = 1, the number of the data values for in each block can vary and the FORTRAN command to read the data is as follows

...