Hermann Peifer | 1 Oct 2009 11:54
Picon

r.stats: negative cell counts and percentages

Hi,

I have the following raster map:

Type of Map:  raster               Number of Categories: 255 
  Data Type:    CELL 
    Rows:         58000 
      Columns:      67000 
        Total Cells:  3886000000

r.stats (-c and -p) tells me:

1 608232            1  -0.15%
2 13691259          2  -3.35%
3 2047970           3  -0.50%
4 194288            4  -0.05%
5 105156            5  -0.03%
6 303014            6  -0.07%
7 632953            7  -0.15%
8 110266            8  -0.03%
9 119532            9  -0.03%
10 301250           10  -0.07%
11 859077           11  -0.21%
12 110022085        12 -26.90%
13 3174787          13  -0.78%
14 587198           14  -0.14%
15 3958146          15  -0.97%
16 2526227          16  -0.62%
17 3996373          17  -0.98%
18 38131042         18  -9.32%
(Continue reading)

Hamish | 1 Oct 2009 13:20
Picon
Favicon
Gravatar

Re: r.stats: negative cell counts and percentages

which versions of grass? the more detailed the answer the
better, I am wondering if it is before or after a recent
off-by-one fix.

tx,
Hamish

--- On Thu, 1/10/09, Hermann Peifer <peifer <at> gmx.eu> wrote:

> From: Hermann Peifer <peifer <at> gmx.eu>
> Subject: [GRASS-user] r.stats: negative cell counts and percentages
> To: grass-user <at> lists.osgeo.org
> Received: Thursday, 1 October, 2009, 10:54 PM
> Hi,
> 
> I have the following raster map:
> 
> Type of Map:  raster         
>      Number of Categories: 255 
> Data Type:    CELL    Rows:   
>      58000     
> Columns:      67000     
>   Total Cells:  3886000000
> 
> r.stats (-c and -p) tells me:
> 
> 1 608232            1 
> -0.15%
> 2 13691259          2 
> -3.35%
(Continue reading)

Markus Neteler | 1 Oct 2009 14:50
Favicon

Re: Database driver problem

On Sun, Sep 27, 2009 at 11:45 AM, grassyjohn <jf_walsh <at> hotmail.com> wrote:
>
> I've tried importing the spearfish_contours files via File-->Import Vector
> Map-->Multiple Formats Using OGR and get this message
>
> Invalid argument: can't _spawnl
> Unable to start driver <sqlite>
>
> Unable open database
> <D:/GIS_DataBase/Spearfish60/user1/dbf/spearfish_contours.db> by driver
> <sqlite>
>
> I've tried using dbf and ogr database drivers but the result is the same.
>
> I'm using GRASS 6.4 on Windows XP.  Has anyone come across the problem?

I could try here on XP, same issue. with g.gisenv and DEBUG=3 I see

g.remove vect=vegetazione_Monte_madonna_UTM32 <at> Monte_Madonna
Removing vector <vegetazione_Monte_madonna_UTM32 <at> Monte_Madonna>
D3/3: Delete vector 'vegetazione_Monte_madonna_UTM32'
D1/3: dbln file: C:\grassdata/UTM32N/Monte_Madonna/vector/ve
getazione_Monte_madonna_UTM32/dbln
D1/3: Vect_open_old(): name =
vegetazione_Monte_madonna_UTM32 mapset= Monte_Madonna update
= 0
D1/3: Vect_set_thresh(): thresh = 0.000000
D3/3: dig_init_plus()
D1/3: dig_spidx_init()
D3/3: dig_cidx_init()
(Continue reading)

Hermann Peifer | 1 Oct 2009 14:53
Picon

Re: r.stats: negative cell counts and percentages

svn up https://svn.osgeo.org/grass/grass/branches/releasebranch_6_4 
grass64_release

(on 8 Sptember 2009)

Hermann

Hamish wrote:
> which versions of grass? the more detailed the answer the
> better, I am wondering if it is before or after a recent
> off-by-one fix.
>
>
> tx,
> Hamish
>
>
>
>
> --- On Thu, 1/10/09, Hermann Peifer <peifer <at> gmx.eu> wrote:
>
>   
>> From: Hermann Peifer <peifer <at> gmx.eu>
>> Subject: [GRASS-user] r.stats: negative cell counts and percentages
>> To: grass-user <at> lists.osgeo.org
>> Received: Thursday, 1 October, 2009, 10:54 PM
>> Hi,
>>
>> I have the following raster map:
>>
(Continue reading)

Nikos Alexandris | 1 Oct 2009 15:00
Picon

Can't install "Image Cutter" plugin

Can't install Image Cutter under Jaunty 64-bit, qgis 1.4.0-trunk
(revision 11737). The error message is: 

-%<--
The plugin is broken. Python said:
Bad magic number
in /home/nik/.qgis//python/plugins/image_cutter/resources.pyc
-%<--

Best regards, Nikos

_______________________________________________
grass-user mailing list
grass-user <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

Nikos Alexandris | 1 Oct 2009 15:12
Picon

Re: Can't install "Image Cutter" plugin

Oops! Sorry, that should land here :-!

_______________________________________________
grass-user mailing list
grass-user <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

Hamish | 1 Oct 2009 15:34
Picon
Favicon
Gravatar

Re: r.stats: negative cell counts and percentages

Hermann wrote:
> svn up https://svn.osgeo.org/grass/grass/branches/releasebranch_6_4 grass64_release

not that it matters here, but do you use 32 bit or 64 bit
CPU+OS?

> (on 8 Sptember 2009)
...
> >> I have the following raster map:
> >> 
> >> Type of Map:  raster     
>         Number of Categories: 255 Data
> Type:    CELL    Rows:   
>     58000     Columns: 
>     67000       Total
> Cells:  3886000000
> >> 
> >> r.stats (-c and -p) tells me:
...
> >> I guess there is an integer overflow somewhere(?)

Yeah, I think you are right.

There are many int++'s in raster/r.stats/stats.c
Perhaps those counters++ should be changed to "long long"?

what is the result of r.univar ?

I see r.univar has been modified to use int for number of cells
and number of non-null cells. (earlier versions used unsigned
(Continue reading)

Hermann Peifer | 1 Oct 2009 16:30
Picon

Re: r.stats: negative cell counts and percentages

Hamish wrote:
> Hermann wrote:
>> svn up https://svn.osgeo.org/grass/grass/branches/releasebranch_6_4 grass64_release
> 
> not that it matters here, but do you use 32 bit or 64 bit
> CPU+OS?
>  

32

> what is the result of r.univar ?
> 

total null and non-null cells: -408967296
total null cells: -913132378

Hermann
_______________________________________________
grass-user mailing list
grass-user <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

achim | 1 Oct 2009 17:55
Picon

Re: serious problem with "ROUND-OFF"

Dear users,

I am writing to mention, that I have solved the problem.

For every point (connection between two lines), which is a critical
point (on the border between two raster cells), I did a 'r.what' with a
offset less than half grid-resolution in every direction (ne,nw,se,sw
and n,s and e,w). Because I generated the lines from high raster-values
(river-network), I could choose the cell with the highest value as a
direction for moving node and verts with 'v.edit'.

Thanks for patience, especially Hamish,
Achim

achim schrieb:
> Hi Hamish,
> 
> thanks for your suggestions. It is very useful to get ideas from a
> different perspective!
> 
> I am sorry, that I have to write a 'but' again:
> 
>>> r.to.vect the area
> ..I have no areas to extract. I have a river network, for which I want
> to subdivide some lines.
> Because I have some thousands of lines, I always get some
> start/end-nodes on these critical points on the border between two
> raster-cells.
> 
>>> add cats to boundaries with v.category
(Continue reading)

Horacio Samaniego | 1 Oct 2009 17:26
Picon

installing addons without the source tree. But with grass-dev!

Hi, this is a question to more advanced users and perhaps developers...

I've been trying to install a module (r.stream.* from
http://heretic.livenet.pl/heretic) using the instructions provided in
the wiki to do so:
(http://grass.osgeo.org/wiki/Compile_and_Install#Addons)

However, I do not want to compile the whole grass src tree and are
trying to install this using the grass-dev provided by my distro (ubuntu
9.04) with no success.

The problem seem to be that the addon is unable to find tome libraries
that are actually in /usr/lib/grass64/include/grass

Here's the error:
	io.c:1:27: error: grass/glocale.h: No such file or directory
	In file included from io.c:2:
	global.h:5:23: error: grass/gis.h: No such file or directory
	...
	..
	.

The instruction say that I should place the addon in the
grass_src/raster directory which I don't have. However, I do have
the /usr/lib/grass64/include directory... how can I point the correct
path in the Makefile?

the content of the Makefile is:

	MODULE_TOPDIR = ../..
(Continue reading)


Gmane