[GRASS-dev] d.histogram and FP maps

Markus Neteler neteler at itc.it
Tue Aug 22 09:45:03 EDT 2006


On Tue, Aug 22, 2006 at 03:28:23PM +0200, Martin Landa wrote:
> Hi all && Markus
> 
> I have added a new parameter 'ndigits' to the d.histogram module
> 
> [snip]
> 
>  ndigits   Number of digits after the decimal point (fp maps only)
>            default: 1

Let me propose to call it 'dp' since r.out.ascii and
v.out.ascii also have dp= (to avoid that too many different
parameter names for the same thing are used).
 
> I am waiting for your comments... Shall I commit the patch to CVS HEAD?

I am +1 for this with renaming :-)

Markus

> Best, Martin
> 
> 2006/8/21, Markus Neteler <neteler at itc.it>:
> >Martin,
> >
> >to me the changes seems to be very useful.
> >
> >Markus
> >
> >On Mon, Aug 21, 2006 at 12:10:25AM +0200, Martin Landa wrote:
> >> Hi all,
> >>
> >> working with FP raster map (range: [0,1]) d.histogram does not display
> >> real numbers along x-axis (see [1]).
> >>
> >> I have tried to fix it (see [2], fixed number of digits after the
> >> decimal point -- 2).
> >>
> >> Maybe it would be sufficient to add a new parameter to enable user to
> >> display more/less digits after the decimal point. Any ideas?
> >>
> >> Should be fixed in CVS?
> >>
> >> r.info ndvi -r
> >> min=-1.000000
> >> max=0.861314
> >>
> >> Cheers, Martin
> >>
> >> [1]
> >> 
> >http://gama.fsv.cvut.cz/~landa/.../tmp-grass-screenshots/histogram_fp-0.png
> >> [2]
> >> 
> >http://gama.fsv.cvut.cz/~landa/.../tmp-grass-screenshots/histogram_fp-1.png
> >>
> >> --
> >> Martin Landa <landa.martin at gmail.com> * http://gama.fsv.cvut.cz/~landa *
> >
> >
> >> _______________________________________________
> >> grass-dev mailing list
> >> grass-dev at grass.itc.it
> >> http://grass.itc.it/mailman/listinfo/grass-dev
> >
> >--
> >Markus Neteler  <neteler itc it>  http://mpa.itc.it/markus/
> >ITC-irst -  Centro per la Ricerca Scientifica e Tecnologica
> >MPBA - Predictive Models for Biol. & Environ. Data Analysis
> >Via Sommarive, 18        -       38050 Povo (Trento), Italy
> >
> >_______________________________________________
> >grass-dev mailing list
> >grass-dev at grass.itc.it
> >http://grass.itc.it/mailman/listinfo/grass-dev
> >
> 
> 
> -- 
> Martin Landa <landa.martin at gmail.com> * http://gama.fsv.cvut.cz/~landa *



-- 
Markus Neteler  <neteler itc it>  http://mpa.itc.it/markus/
ITC-irst -  Centro per la Ricerca Scientifica e Tecnologica
MPBA - Predictive Models for Biol. & Environ. Data Analysis
Via Sommarive, 18        -       38050 Povo (Trento), Italy




More information about the grass-dev mailing list