question about r.info

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

question about r.info

roy roy
Checking a raster map about null values i get results that seem non consistent:
the map is a result from r.mapcalc (1 for null and 0 for all othe values)

r.info      min = 0 max = 1

r.stats  

0 775…
*  805…. 

r.info claims max value is 1
r.stats no cell with value 1

maybe i do not get how r.info is supposed to work but if i have no value 1 cell
how can be the range beetwen “0 “ and  “1”

thanks ,

Roy

Inviata da Windows Mail


_______________________________________________
grass-user mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/grass-user
Reply | Threaded
Open this post in threaded view
|

Re: question about r.info

peifer
m roy wrote
r.info      min = 0 max = 1

r.stats  
0 775…
*  805….
r.stats honours the current region, r.info doesn't.

If your map's data area would be in Europe and your current region is by mistake defined somewhere in the middle of Canada: r.stats would report all values to be NULL.

Hermann
Reply | Threaded
Open this post in threaded view
|

Re: question about r.info

roy roy
In reply to this post by roy roy


Thank’s for the replay Hermann,

this is not the case AFAIK because i generated the map using r.mapcalc
with region and MASK properly set …

roy

Da: [hidden email]
Data invio: ‎giovedì‎ ‎11‎ ‎settembre‎ ‎2014 ‎13‎.‎31
A: [hidden email]

m roy wrote
> r.info      min = 0 max = 1
>
> r.stats  
> 0 775…
> *  805….

r.stats honours the current region, r.info doesn't.

If your map's data area would be in Europe and your current region is by
mistake defined somewhere in the middle of Canada: r.stats would report all
values to be NULL.

Hermann



--
View this message in context: http://osgeo-org.1560.x6.nabble.com/question-about-r-info-tp5161293p5161299.html
Sent from the Grass - Users mailing list archive at Nabble.com.
_______________________________________________
grass-user mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/grass-user

_______________________________________________
grass-user mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/grass-user
Reply | Threaded
Open this post in threaded view
|

Re: question about r.info

roy roy
In reply to this post by roy roy


That’s all right, thanks !

Da: [hidden email]
Data invio: ‎giovedì‎ ‎11‎ ‎settembre‎ ‎2014 ‎19‎.‎06
A: [hidden email]

On 2014-09-11 14:10, m roy wrote:
>
>
> Thank’s for the replay Hermann,
>
> this is not the case AFAIK because i generated the map using r.mapcalc
> with region and MASK properly set …
>

Just to be on the safe side, you could do:

r.mask -r
g.region -p rast=myMap
r.describe myMap
r.stats -c myMap

Hermann



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