Download WDMUtil - AQUA TERRA Consultants
Transcript
Appendices A message box is opened, then the script proceeds. While (While (Not EOF) ... ) The first argument is evaluated for truth (0 or 1). If true, the other arguments are evaluated (run) and then the loop repeats. > >= < <= <> = (If (> Repeats 31) ... ) Comparison operators evaluate to 1 if the comparison is true, 0 if it is false. Fixed width ColumnFormat Example and discussion (ColumnFormat Fixed 61-66:Value 32-35:Year 36-37:Month 59-60:Hour 9-31:Location 55-58:Constituent 1-8:Station 38-42:Latitude 43-48:Longitude 49-54:Elevation 59-66:Repeating) For fixed width columns, the first argument is “Fixed”. All other arguments are in the format columns:name. Columns are numbered starting with 1 for the first character. Columns are either a single number indicating a single character position (perhaps a flag column) or a pair of numbers indicating a range of columns. 10-12 indicates a column that includes three characters on each line: 10, 11, and 12. 10+3 indicates the same three characters and is merely an alternate syntax for convenience. The name which appears after the colon is how this column is referred to later in the script. Repeating is a special column name. This is specified if there is more than one value on a line. The columns specified for Repeating are the first set of character positions that show the pattern. In the example above, 59-66:Repeating includes the colums for 59-60:Hour and 61-66:Value so both of these columns repeat. It is important to get the boundaries of Repeating correct - The character just after the end of Repeating should correspond to the first character of Repeating. For example, if 50-59:repeating is specified, that range should include the first value on the line and 60-69 should contain the second value and so on. When reading all the values on a line, the special variable Repeat is used to determine which position we are looking at. 129