Re: [GRASS-user] compare a DCELL and FCELL question

2021-01-24 Thread ming han
Hi Markus and Micha I am just trying to find grids have the same values in these two rasters, I will try the threshold approach. Thanks Ming Markus Neteler 于2021年1月24日周日 上午6:58写道: > Hi Ming, > > On Sun, Jan 24, 2021 at 10:49 AM ming han wrote: > > > > Hi Micha > > > > Many thanks

Re: [GRASS-user] compare a DCELL and FCELL question

2021-01-24 Thread Markus Neteler
Hi Ming, On Sun, Jan 24, 2021 at 10:49 AM ming han wrote: > > Hi Micha > > Many thanks for your reply. > Here is the command I am using: > > if(float(cat1_acc_riv) == float(cat1_minacc), str_r, null()) > > The str_r is a CELL raster. the result is different when I change it

Re: [GRASS-user] compare a DCELL and FCELL question

2021-01-24 Thread Micha Silver
I can see that the maximum values are different. Have a look at the Range values. What are you trying to do? Maybe there's a simpler approach... On Sun, Jan 24, 2021 at 11:49 AM ming han wrote: > > Hi Micha > > Many thanks for your reply. > Here is the command I am using: > >

Re: [GRASS-user] compare a DCELL and FCELL question

2021-01-24 Thread ming han
Hi Micha Many thanks for your reply. Here is the command I am using: if(float(cat1_acc_riv) == float(cat1_minacc), str_r, null()) The str_r is a CELL raster. the result is different when I change it to: if(int(cat1_acc_riv) == int(cat1_minacc), str_r, null())

Re: [GRASS-user] compare a DCELL and FCELL question

2021-01-24 Thread Micha Silver
Is there some reason that you expect the rasters to be the same? Maybe begin by posting the outputs of `r.info` for both rasters, and what command you used to compare them? On Sun, Jan 24, 2021 at 6:13 AM ming han wrote: > > Hi Everyone > > I tried to compare if grids in two rasters are the

[GRASS-user] compare a DCELL and FCELL question

2021-01-23 Thread ming han
Hi Everyone I tried to compare if grids in two rasters are the same, one raster is FCELL and another raster is DCELL. I got different result when I int both raster first before comparing them; and when I float() both raster first before I comparing them Is there any reason for this? Thanks