Hi:
There's an option to the r.univar module that takes a "zones" raster, and calculates univariate statistics for each zone. Statistics like mean, max, count, etc are calculated from the input raster for each category in the zones file. The zones, in your case would be basins from r.watershed, So you could do:

r.univar map=temperature zones=basins output=temperature_stats


I'm not sure this is what you want, but it might get you started...

On 05/05/2018 09:51 PM, Giuseppe Amatulli wrote:
Hi, 
I'm searching for a GRASS command that is able to "accumulate" a raster following the flow accumulation output obtained by r.watershed. 

In other words if I have a temperature raster I would like to accumulate the temperature values following the drainage direction. The final results would to get the mean of the uppers stream temperature (so accumulation_temperature / flowaccumulation).  

 r.accumulation input=temperature  flowaccumulation=flow accumulation output=acc_temperature 

It is something that exist? 

Thank you 
Giuseppe 


--
Giuseppe Amatulli, Ph.D.

Research scientist at
Yale School of Forestry & Environmental Studies
Yale Center for Research Computing
Center for Science and Social Science Information
New Haven, 06511
Work:  https://environment.yale.edu/profile/giuseppe-amatulli/


_______________________________________________
grass-user mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/grass-user

-- 
Micha Silver
Ben Gurion Univ.
Sde Boker, Remote Sensing Lab
cell: +972-523-665918

_______________________________________________
grass-user mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/grass-user

Reply via email to