[GRASS-user] fine to coarse resolution

Paulo van Breugel p.vanbreugel at gmail.com
Fri Apr 15 00:20:01 PDT 2016


You can use r.resamp.stats with aggregation method the sum

Paulo


On 15-04-16 09:02, Micha Silver wrote:
> Hello all,
> I have rasters in a fine resolution, with values of 1 and null. I need 
> to create, in a coarser resolution, new rasters where each cell gets 
> the total number of non-null pixels from the fine resolution raster 
> that are within the coarse pixel.
>
> The clunky method I worked out uses r.out.xyz and r.in.xyz. Starting 
> in the fine resolution, I export all (non-null) cell locations with 
> r.out.xyz. Then I switch to the coarse resolution and do r.in.xyz with 
> method=n. Seems to work, but is there anything better, more elegant?
>
> Thanks,
> Micha
>
> -- 
> Micha Silver
> Arava Drainage Authority
> +972-523-665918
>
>
> _______________________________________________
> grass-user mailing list
> grass-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-user

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20160415/250fedaf/attachment.html>


More information about the grass-user mailing list