[GRASS-dev] d.histogram and FP maps

Martin Landa landa.martin at gmail.com
Tue Aug 22 09:28:23 EDT 2006


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

I am waiting for your comments... Shall I commit the patch to CVS HEAD?

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 *
-------------- next part --------------
A non-text attachment was scrubbed...
Name: d_histogram_fp-2006-08-22.diff.gz
Type: application/x-gzip
Size: 2988 bytes
Desc: not available
Url : http://lists.osgeo.org/pipermail/grass-dev/attachments/20060822/dd24d175/d_histogram_fp-2006-08-22.diff.gz


More information about the grass-dev mailing list