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

2021-01-26 Thread Markus Metz
On Sun, Jan 24, 2021 at 8:25 PM ming han  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
___
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user


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

2021-01-25 Thread Veronica Andreo
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 :)

Best,
Vero

El dom., 24 ene. 2021 20:52, ming han  escribió:

> Hi everyone
>
>I just notice that r.statistics is not in grass add on, how to install
> it?
>
>
>  于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
>
___
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user


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

2021-01-24 Thread ming han
Hi everyone

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


 于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


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

2021-01-24 Thread ming han
Got it, many thanks.

 于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


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

2021-01-24 Thread nik

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