[GRASS5] Fw: Re: [GRASSLIST:8983] r.terraflow: wrong data type

Hamish hamish_nospam at yahoo.com
Thu Nov 10 22:33:16 EST 2005


Begin forwarded message:

Date: Thu, 10 Nov 2005 19:13:00 -0500
From: Laura Toma <ltoma bowdoin edu>
Subject: Re: [GRASSLIST:8983] r.terraflow: wrong data type


Hi Hamish,

I looked at the code. Internally Terraflow uses the same type for  
elevation and filled-elevation streams.   The truncation to CELL  
happens only we convert from the terraflow streams  into a GRASS grid.

in main.cc

stream2_CELL(filledstr, nrows, ncols, opt->filled_grid);

should be

stream2_FCELL(filledstr, nrows, ncols, opt->filled_grid);
or more precisely, it should be templated on the elevation type.

Technically this should be corrected, and I'll look into it . Unless  
somebody else volunteers in the meantime..

-Laura


------------------
Laura Toma
Asst. Professor
Dept. of Computer Science
Bowdoin College




More information about the grass-dev mailing list