Masterdrain
Information for programmers.
Config file structure.
To enable producers of other related programs to use the data returned in the Config files for hydrological constants, the file structure is given below.
Open the file (*.CNF) and retrieve the following constants. This is a simple text file, and can be opened in the normal manner:-
| Constant | Unit | Data type |
|---|
| Area Location | 1 or 2 | Long integer |
| M5-60 | mm | Single precision |
| r | n/a | Single precision |
| SOIL value | 1 to 5 | Long integer |
| SAAR | mm | Long integer |
| natgrid | text | String |
| Placename | text | String |
| FEH c | text | Single precision |
| FEH d1 | text | Single precision |
| FEH d2 | text | Single precision |
| FEH d3 | text | Single precision |
| FEH e | text | Single precision |
| FEH f | text | Single precision |
| Hyd. area | text | Long integer |
| Hyd. zone | text | Long integer |
Note that the Area location=1 is England & Wales, 2 is Scotland & N. Ireland
An example of a config file structure is given below:-
1
20
0.41
1
660
"TQ3769"
"BECKENHAM"
0
0
0
0
0
0
6
8
About the programs
All of these programs are written in PBWin 9. This language produces tight, fast and efficient
code, and is particularly adept at producing DLLs (there are currently 18 DLLs used by this suite
of programs). For programmers new to this language, it represents a major advancement over Visual
Basic (VB is not in the same league), and is easier to use than C or C++.
Further information
can be obtained from PB's web site - powerbasic.com.
Full peer support is available from the user forums - an unrivalled resource for any programmer.
Have a look!