Opened 10 years ago

Closed 10 years ago

#2549 closed defect (fixed)

Wrong quartiles in r.hypso.py

Reported by: AtimGrass Owned by: grass-dev@…
Priority: normal Milestone: 7.0.0
Component: Default Version: unspecified
Keywords: Cc:
CPU: Unspecified Platform: Unspecified

Description

in r.hypso.py:

    ...
    ...  
    print "==========================="
    print "Hypsometric | quantiles"
    print "==========================="
    print '%.0f' %findint(kl,0.025) , "|", 0.025
    print '%.0f' %findint(kl,0.05) , "|", 0.05
    print '%.0f' %findint(kl,0.1) , "|", 0.1
    print '%.0f' %findint(kl,0.25) , "|", 0.25
    print '%.0f' %findint(kl,0.5) , "|", 0.5
    print '%.0f' %findint(kl,0.75) , "|", 0.75
    print '%.0f' %findint(kl,0.7) , "|", 0.7
    print '%.0f' %findint(kl,0.9) , "|", 0.9
    print '%.0f' %findint(kl,0.975) , "|", 0.975
    ...

after the 0.75 quantile there should come the 0.9 and then the 0.95 quantile.

Change History (1)

in reply to:  description comment:1 by hellik, 10 years ago

Resolution: fixed
Status: newclosed

Replying to AtimGrass:

in r.hypso.py:

    ...
    ...  
    print "==========================="
    print "Hypsometric | quantiles"
    print "==========================="
    print '%.0f' %findint(kl,0.025) , "|", 0.025
    print '%.0f' %findint(kl,0.05) , "|", 0.05
    print '%.0f' %findint(kl,0.1) , "|", 0.1
    print '%.0f' %findint(kl,0.25) , "|", 0.25
    print '%.0f' %findint(kl,0.5) , "|", 0.5
    print '%.0f' %findint(kl,0.75) , "|", 0.75
    print '%.0f' %findint(kl,0.7) , "|", 0.7
    print '%.0f' %findint(kl,0.9) , "|", 0.9
    print '%.0f' %findint(kl,0.975) , "|", 0.975
    ...

after the 0.75 quantile there should come the 0.9 and then the 0.95 quantile.

fixed by r64209.

Note: See TracTickets for help on using tickets.