| 1 |
Date: Sun, 15 Jul 2001 18:26:51 -0600 |
| 2 |
From: "Roger S. Miller" <[email protected]> |
| 3 |
X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.0.27 i586) |
| 4 |
X-Accept-Language: en |
| 5 |
To: Markus Neteler <[email protected]> |
| 6 |
Subject: r.drain -- new version |
| 7 |
|
| 8 |
Markus, |
| 9 |
|
| 10 |
I worked on the original r.drain for a while and wasn't really able to |
| 11 |
understand what it was doing, much less where the problem was. I |
| 12 |
figured that I might be able to spend the rest of the weekend figuring |
| 13 |
it out and in the end I would still have a program with unusual behavior |
| 14 |
in flat spots. I decided instead to finish the version that I started |
| 15 |
based on r.fill.dir. |
| 16 |
|
| 17 |
My version of r.drain (which I called r.d2) is in the attached zip file. |
| 18 |
|
| 19 |
r.d2 reproduces most of the behavior of r.drain. It does not use the |
| 20 |
"null_value" option and it won't read input from a sites file. It uses |
| 21 |
all of the flags defined for r.drain. My first draft of the model |
| 22 |
didn't correctly handle the ew,ns and diagonal resolutions (as |
| 23 |
r.fill.dir does not). I believe that I fixed that problem. There are |
| 24 |
also some other minor behaviors that differ a little from r.drain. |
| 25 |
|
| 26 |
r.d2 runs pretty quickly on a small, clean dem, but it can take quite a |
| 27 |
while to run on a large cell map - particularly one with very many |
| 28 |
areas where the flow directions are ambiguous. I didn't write anything |
| 29 |
into the program to warn the user about the execution time. |
| 30 |
|
| 31 |
I tested it on the fcell map that you sent me when this issue first came |
| 32 |
up and on a lat-long cell map. It worked well in both cases. The |
| 33 |
version of r.fill.dir that I started with was the version I had archived |
| 34 |
here, which was not updated for all the changes needed to make |
| 35 |
r.fill.dir run on all of our platforms. I built in the changes that I |
| 36 |
could remember, but there may be a few more that come up when you try to |
| 37 |
compile it on the Cray. |
| 38 |
|
| 39 |
I hope this meets your needs. |
| 40 |
|
| 41 |
|
| 42 |
Roger |