Re: [GRASS-user] How to find elevation drop for all cells in a basin

2020-12-16 Thread Ken Mankoff
I agree this would work. Given that I have 65036 basins, I was trying to avoid a loop. But if it's fast, who cares... I will try this method. Thanks, -k. On 2020-12-16 at 08:29 -08, Thomas Adams wrote... > Hi Ken! > > So, presumably, you know the locations of all the basin outlets >

Re: [GRASS-user] How to find elevation drop for all cells in a basin

2020-12-16 Thread Thomas Adams
Hi Ken! So, presumably, you know the locations of all the basin outlets (lat-long, e.g.). Using *v.what.rast*, query the elevation map to get the elevation at the basin outlet (locations) that the vector points identify. This associates the basin outlet elevation with its location. Assuming you

Re: [GRASS-user] How to find elevation drop for all cells in a basin

2020-12-15 Thread Ken Mankoff
On 2020-12-15 at 12:28 -08, Thomas Adams wrote... > So, if I understand, that seems pretty simple and could be done with > r.mapcalc: > > diff = elev - outlet_elev > > where elev is a raster map of elevations and outlet_elev is the elevation > at the basin outlet. Using a basin mask the

Re: [GRASS-user] How to find elevation drop for all cells in a basin

2020-12-15 Thread Thomas Adams
Hi Ken, So, if I understand, that seems pretty simple and could be done with r.mapcalc: diff = elev - outlet_elev where elev is a raster map of elevations and outlet_elev is the elevation at the basin outlet. Using a basin mask the calculation could be confined to any basin of interest. But, I

Re: [GRASS-user] How to find elevation drop for all cells in a basin

2020-12-15 Thread Ken Mankoff
Hi Thomas, On 2020-12-15 at 11:34 -08, Thomas Adams wrote... > What exactly do you mean by elevation drop (at each cell)? I can only guess… I meant the change in each cell between their elevation and the elevation of the associated hydrologic outlet cell. I actually need to query a different

Re: [GRASS-user] How to find elevation drop for all cells in a basin

2020-12-15 Thread Ken Mankoff
Hi Anna, On 2020-12-15 at 11:29 -08, Anna Petrášová wrote... > isn't r.stream.distance what you need? Yes that is what I need. I did not realize it worked for the non-stream cells too. Thank you, -k. ___ grass-user mailing list

Re: [GRASS-user] How to find elevation drop for all cells in a basin

2020-12-15 Thread Thomas Adams
Hi Ken, What exactly do you mean by elevation drop (at each cell)? I can only guess… Tom On Tue, Dec 15, 2020 at 1:10 PM Ken Mankoff wrote: > > Specifically, I have outlets and basins. I can find the (x,y) location of > the outlet for every cell in each basin using the following code. Note

Re: [GRASS-user] How to find elevation drop for all cells in a basin

2020-12-15 Thread Anna Petrášová
On Tue, Dec 15, 2020 at 1:10 PM Ken Mankoff wrote: > > Specifically, I have outlets and basins. I can find the (x,y) location of > the outlet for every cell in each basin using the following code. Note that > I'm doing this for all cells in the basin, not just stream cells. The > r.stream.order