[GRASS-dev] Re: [GRASS GIS] #510: bad display in the Output window for r.report and r.stats with aspect maps.

GRASS GIS trac at osgeo.org
Sat Feb 28 19:44:04 EST 2009


#510: bad display in the Output window for r.report and r.stats with aspect maps.
----------------------+-----------------------------------------------------
  Reporter:  clerici  |       Owner:  grass-dev at lists.osgeo.org
      Type:  defect   |      Status:  new                      
  Priority:  major    |   Milestone:  6.4.0                    
 Component:  default  |     Version:  6.4.0 RCs                
Resolution:           |    Keywords:                           
  Platform:  Linux    |         Cpu:  Unspecified              
----------------------+-----------------------------------------------------
Comment (by hamish):

 I can't replicate the badly sorted r.report output, either from GIS.m or
 the command line.


 Note that your r.stats result is missing some lines too, it seems to skip
 from 1.4% to 33%. Here I get the continuous set:

 {{{
 spearfish:G65> g.region rast=aspect
 spearfish:G65> r.stats -a -p in=aspect | head -n 25
  100%
 0-1.411765 537300.000000   0.20%
 1.411765-2.823529 827100.000000   0.30%
 2.823529-4.235294 882900.000000   0.32%
 4.235294-5.647059 1002600.000000   0.37%
 5.647059-7.058824 965700.000000   0.35%
 7.058824-8.470588 1116000.000000   0.41%
 8.470588-9.882353 919800.000000   0.34%
 9.882353-11.294118 1382400.000000   0.51%
 11.294118-12.705882 774000.000000   0.28%
 12.705882-14.117647 1156500.000000   0.42%
 14.117647-15.529412 978300.000000   0.36%
 15.529412-16.941176 1044000.000000   0.38%
 16.941176-18.352941 586800.000000   0.22%
 18.352941-19.764706 1832400.000000   0.67%
 19.764706-21.176471 1099800.000000   0.40%
 21.176471-22.588235 1141200.000000   0.42%
 22.588235-24 1195200.000000   0.44%
 24-25.411765 1080000.000000   0.40%
 25.411765-26.823529 1445400.000000   0.53%
 26.823529-28.235294 1169100.000000   0.43%
 28.235294-29.647059 1305900.000000   0.48%
 29.647059-31.058824 1350900.000000   0.50%
 31.058824-32.470588 1152900.000000   0.42%
 32.470588-33.882353 1373400.000000   0.50%
 33.882353-35.294118 1186200.000000   0.44%
 }}}


 the only problem I see is that there is too much whitespace after the
 "#|description" in the header for FP range mode.

 {{{
 |-----------------------------------------------------------------------------|
 |MAP: aspect in degrees from east (aspect at PERMANENT in PERMANENT)
 |
 |-----------------------------------------------------------------------------|
 |                   Category Information                    |  square  |
 %  |
 |                    #|description
 |kilometers| cover|
 |-----------------------------------------------------------------------------|
 |           0-1.411765|from no aspect to 1 degree from east |  0.537300|
 0.20|
 |    1.411765-2.823529|from 1 degree from east to 3 degrees |  0.827100|
 0.30|
 |                     |from east                            |          |
 |
 }}}


 So I'm not sure what's wrong at your end.


 Hamish

-- 
Ticket URL: <https://trac.osgeo.org/grass/ticket/510#comment:1>
GRASS GIS <http://grass.osgeo.org>


More information about the grass-dev mailing list