[GRASS-user] r.stats.zonal output raster type

Hi everyone

Is it possible to let r.stats.zonal output raster to be CELL?

Thanks
Ming

Try with r.statistics. Unfortunately, there are a few modules with similar functionality, yet they work on different raster data types.

Nikos


On 2021-01-24 21:25, ming han wrote:

Hi everyone

Is it possible to let r.stats.zonal output raster to be CELL?

Thanks
Ming


grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user

Got it, many thanks.

<nik@nikosalexandris.net> 于2021年1月24日周日 下午2:51写道:

Try with r.statistics. Unfortunately, there are a few modules with similar functionality, yet they work on different raster data types.

Nikos


On 2021-01-24 21:25, ming han wrote:

Hi everyone

Is it possible to let r.stats.zonal output raster to be CELL?

Thanks
Ming


grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user

Hi everyone

I just notice that r.statistics is not in grass add on, how to install it?

<nik@nikosalexandris.net> 于2021年1月24日周日 下午2:51写道:

Try with r.statistics. Unfortunately, there are a few modules with similar functionality, yet they work on different raster data types.

Nikos


On 2021-01-24 21:25, ming han wrote:

Hi everyone

Is it possible to let r.stats.zonal output raster to be CELL?

Thanks
Ming


grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user

Hi Ming,

https://grass.osgeo.org/grass78/manuals/r.statistics.html

r.statistics is not an add-on but part of grass core, so no need to install it. It’s already there :slight_smile:

Best,
Vero

El dom., 24 ene. 2021 20:52, ming han <dustming@gmail.com> escribió:

Hi everyone

I just notice that r.statistics is not in grass add on, how to install it?

<nik@nikosalexandris.net> 于2021年1月24日周日 下午2:51写道:

Try with r.statistics. Unfortunately, there are a few modules with similar functionality, yet they work on different raster data types.

Nikos


On 2021-01-24 21:25, ming han wrote:

Hi everyone

Is it possible to let r.stats.zonal output raster to be CELL?

Thanks
Ming


grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user


grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user

On Sun, Jan 24, 2021 at 8:25 PM ming han <dustming@gmail.com> wrote:

Hi everyone

Is it possible to let r.stats.zonal output raster to be CELL?

The output of r.stats.zonal should be as accurate as possible, thus in most cases a floating point output is required and produced.

If you want to reduce the accuracy to integer, you can do so by creating a new map with r.mapcalc’s function round() and delete the original output afterwards.

Markus M

Thanks
Ming


grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user