Read First: The PRJ and GEN files
Tutorial: The importance of the PRJ and GEN files
The Project (PRJ) and General (GEN) files store information regarding file paths and input parameters. These files are almost always coupled together with the same file name. This prevents the user from changing the system design in one project and having those changes affect other projects.
Only advanced users should manually edit these files outside of the DRAINMOD interface. The DRAINMOD simulation code is written in Fortran. Line numbers and character spacing are very important. Manually editing the PRJ or GEN file can irreversibly corrupt the file rendering your project files useless.
The Project File lists all the options and file paths of input data sets that define a DRAINMOD simulation scenario.
The format of the file is the same as a windows program *.INI file with a [Section] and a key=value pair under each section. The key name is case-sensitive.
The following is a sample from the DHP.PRJ project file.
|
[Options] Project=0 Yield=0 PET=1 CREAMS=0 Runoff=0
[General] Hydrology=C:\drainmod\inputs\DHP.gen Runoff= FieldRatio=0 Nitrogen= Salinity=
[Soils] SoilFile=C:\drainmod\soils\Portse.sin SoilWater= VolDrained=
[Weather] Rainfall=C:\DRAINMOD\WEATHER\PLYMOUTH.RAI Temperature=C:\DRAINMOD\WEATHER\PLYMOUTH.TEM PET=
[Crops] NumCrop=0 Crop1=C:\DRAINMOD\CROPS\CORN130.CIN |
The General File stores most of the hydrology system design settings. These include drainage design, weather files,
The following is a sample from the DHP.GEN general file.
A brief line description for some inputs are highlighted in yellow.
|
*** Job Title *** CONVENTIONAL DRAINAGE, NO YIELD, PORTSMOUTH-E SOIL //Project description line 1 PLYMOUTH, NORTH CAROLINA WEATHER DATA //Project description line 2 *** Printout and Input Control *** 3 101 c:\drainmod\OUTPUTS //Output file folder *** Climate *** 1 C:\DRAINMOD\WEATHER\PLYMOUTH.RAI //rainfall file 1 C:\DRAINMOD\WEATHER\PLYMOUTH.TEM //temperature file 1959 1 1964 12 3547 75 0 //Simulation start and end year / month, Latitude, HI 2.01 2.32 2.10 1.72 1.23 1.00 .86 .82 .92 1.05 1.22 1.44 //PET Correction factors *** Drainage System Design *** 1 100.00 80.07 2000.00 .50 2.50 .50 10.17 50.00 //drain depth, equivalent depth, spacing, max surface storage, drainage coef, kirkhams depth, kirkhams G, initial wtd 0 0.000000E+00 0.000000E+00 //down slope seepage 0 0.000000E+00 0.000000E+00 0.000000E+00 //vertical seepage 0 0.000000E+00 0.000000E+00 0.000000E+00 0.000000E+00 //lateral seepage 200.00 .50 .00 //bottom depth weir, side slope 1120 1120 1120 1120 1120 1120 1120 1120 1120 1120 1120 1120 //weir depths *** Soils *** 215.00 1.50 //depth restrictive, effective radius 30.15.00 100. 2.00 215. 8.00 0. .00 0. .00 //lat k depth / K value for each layer 99 .00 *** Trafficability *** 315 415 820 3.0 1.2 2.0 //first work period 12321232 820 3.9 1.2 2.0 //second work period *** Crop *** .170 //lower limit water content 410 818 30.00 //wet period dates, limiting wt depth 410 818 //dry period dates 11 1 1 3.00 416 3.00 5 4 4.00 517 15.00 6 1 25.00 620 30.00 718 30.00 820 20.00 //root depths and dates 924 10.00 925 3.001231 3.00 //root depths and dates *** Wastewater Irrigation *** 0 1 1 10 1 6 //0 or 1 : wastewater on or off, month and day to begin irrigation, interval, start / end hour 0 0 0 0 0 0 0 0 //no irrgation dates 7.00000 1.00000 .40 .40 .40 .40 .40 .40 .40 .40 .40 .40 .40 .40 //min vol drained, min precip, rates WET *** Wetlands Information *** 0 //0 or 1 : wetland counter on or off, 1 365 // start and end date 30.0 14 //critical wtd, days saturation COM *** Combo Drainage Weir Settings *** 0 0 0 .0 0 0 0 .0 0 0 0 .0 0 0 0 .0 0 0 0 .0 0 0 0 .0 0 0 0 .0 0 0 0 .0 0 0 0 .0 0 0 0 .0 0 0 0 .0 0 0 0 .0 0 0 0 .0 0 0 0 .0 0 0 0 .0 0 0 0 .0 0 0 0 .0 0 0 0 .0 0 0 0 .0 0 0 0 .0 0 0 0 .0 0 0 0 .0 0 0 0 .0 0 0 0 .0 FPE *** Fixed Monthly PET *** 1.00 1.00 1.00 1.00 1.00 1.00 1.00 1.00 1.00 1.00 1.00 1.00 MRA *** Monthly Ranking *** 0 FAC *** Daily PET Factors *** 0 OVR *** Contributing Area Flow *** 0 .000
|