<div dir="ltr">All:<br clear="all"><div><br></div><div>I need to generate an ascii text file from a flow direction grid that consists of (among a couple other things that don't really matter at this point) for each pixel:<br><br></div><div>(1) a unique integer identifier (1 -- N) for the pixel<br></div><div>(2) the integer identifier of the downstream pixel (assuming there is ONLY one)<br></div><div>(3) the x,y location of the pixel (presumably, the lower left corner of the pixel)<br><br></div><div>has anyone already done something like this?<br><br></div><div>It's needed (along with some header information) as an input file for a gridded distributed hydrologic model, identifying the flow connectivity from pixel to pixel for streamflow routing purposes. I have already formulated conceptually how to do this, but if someone has already done such a thing, why reinvent the wheel??<br><br></div><div>Any help is appreciated.<br><br></div><div>Regards,<br></div><div>Tom<br></div><div><br></div></div>