[GRASS-dev] [GRASS GIS] #358: new flag for r.quantile to produce output compatible with r.recode

#358: new flag for r.quantile to produce output compatible with r.recode
-------------------------+--------------------------------------------------
Reporter: dylan | Owner: grass-dev@lists.osgeo.org
     Type: enhancement | Status: new
Priority: minor | Milestone: 6.4.0
Component: Raster | Version: svn-develbranch6
Keywords: r.quantile | Platform: All
      Cpu: All |
-------------------------+--------------------------------------------------
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.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/358&gt;
GRASS GIS <http://grass.osgeo.org>

#358: new flag for r.quantile to produce output compatible with r.recode
--------------------------+-------------------------------------------------
  Reporter: dylan | Owner: grass-dev@lists.osgeo.org
      Type: enhancement | Status: new
  Priority: minor | Milestone: 6.4.0
Component: Raster | Version: svn-develbranch6
Resolution: | Keywords: r.quantile
  Platform: All | Cpu: All
--------------------------+-------------------------------------------------
Comment (by glynn):

Replying to [ticket:358 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.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/358#comment:1&gt;
GRASS GIS <http://grass.osgeo.org>

On Sun, Nov 9, 2008 at 9:26 PM, GRASS GIS <trac@osgeo.org> wrote:

#358: new flag for r.quantile to produce output compatible with r.recode
--------------------------+-------------------------------------------------
Reporter: dylan | Owner: grass-dev@lists.osgeo.org
     Type: enhancement | Status: new
Priority: minor | Milestone: 6.4.0
Component: Raster | Version: svn-develbranch6
Resolution: | Keywords: r.quantile
Platform: All | Cpu: All
--------------------------+-------------------------------------------------
Comment (by glynn):

Replying to [ticket:358 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.

Thanks Glynn. I figured this would be universally useful. How hard
would be it be to apply this to the 6.4 branch?

Cheers,

Dylan

On Mon, Nov 10, 2008 at 6:38 AM, Dylan Beaudette
<dylan.beaudette@gmail.com> wrote:

On Sun, Nov 9, 2008 at 9:26 PM, GRASS GIS <trac@osgeo.org> wrote:

#358: new flag for r.quantile to produce output compatible with r.recode
--------------------------+-------------------------------------------------
Reporter: dylan | Owner: grass-dev@lists.osgeo.org
     Type: enhancement | Status: new
Priority: minor | Milestone: 6.4.0
Component: Raster | Version: svn-develbranch6
Resolution: | Keywords: r.quantile
Platform: All | Cpu: All
--------------------------+-------------------------------------------------
Comment (by glynn):

Replying to [ticket:358 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.

Thanks Glynn. I figured this would be universally useful. How hard
would be it be to apply this to the 6.4 branch?

As simple as
svn merge -c 34219 https://svn.osgeo.org/grass/grass/trunk

Done.

Markus

On Sunday 09 November 2008, Markus Neteler wrote:

On Mon, Nov 10, 2008 at 6:38 AM, Dylan Beaudette

<dylan.beaudette@gmail.com> wrote:
> On Sun, Nov 9, 2008 at 9:26 PM, GRASS GIS <trac@osgeo.org> wrote:
>> #358: new flag for r.quantile to produce output compatible with r.recode
>> --------------------------+---------------------------------------------
>>---- Reporter: dylan | Owner: grass-dev@lists.osgeo.org
>> Type: enhancement | Status: new
>> Priority: minor | Milestone: 6.4.0
>> Component: Raster | Version: svn-develbranch6
>> Resolution: | Keywords: r.quantile
>> Platform: All | Cpu: All
>> --------------------------+---------------------------------------------
>>---- Comment (by glynn):
>>
>> Replying to [ticket:358 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.
>
> Thanks Glynn. I figured this would be universally useful. How hard
> would be it be to apply this to the 6.4 branch?

As simple as
svn merge -c 34219 https://svn.osgeo.org/grass/grass/trunk

Done.

Markus

Thanks Markus, and thanks to Glynn for adding r.quantile!

Cheers,

Dylan

--
Dylan Beaudette
Soil Resource Laboratory
http://casoilresource.lawr.ucdavis.edu/
University of California at Davis
530.754.7341