Opened 15 years ago

Closed 9 years ago

#358 closed enhancement (fixed)

new flag for r.quantile to produce output compatible with r.recode

Reported by: dylan Owned by: grass-dev@…
Priority: minor Milestone: 6.4.0
Component: Raster Version: svn-develbranch6
Keywords: r.quantile Cc:
CPU: All Platform: All

Description

Small patch to re-format output from r.quantile. Default output looks like this

r.quantile in=beam_150 quantiles=5
0:20.000000:7440.040527
1:40.000000:7512.872559
2:60.000000:7611.160645
3:80.000000:7611.161133

Modified output:

r.quantile in=beam_150 quantiles=5 -r

6429.886230:7440.040527:1
7440.040527:7512.872559:2
7512.872559:7611.160645:3
7611.160645:7611.161133:4
7611.161133:7638.599121:5

Patch is attached.

Attachments (1)

r.quantile-recode.patch (2.2 KB ) - added by dylan 15 years ago.

Download all attachments as: .zip

Change History (3)

by dylan, 15 years ago

Attachment: r.quantile-recode.patch added

in reply to:  description comment:1 by glynn, 15 years ago

Replying to dylan:

Small patch to re-format output from r.quantile.

Patch is attached.

I've committed a modified version of this as r34219 (7.0). The behaviour is identical, but the resulting diff is a bit simpler.

comment:2 by dylan, 9 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.