[GRASSLIST:4296] r.contour

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,
On grass-5.7.cvs-i686-pc-linux-gnu-28_08_2004 on debian
I tried to use r.contour on a kernel raster but I have this result:

GRASS 5.7.cvs:~ > r.contour input=fagiano_kernel step=0.00001 cut=0
output=fagiano_kernel
WARNING: The vector 'fagiano_kernel' already exists and will be
         overwritten.
Reading data.
Percent complete: 100%
FPRange of data: min = 0.000000 max = 0.003658
Minimum level will be 0.000000
Maximum level will be 0.003650
Continue?(y/n) [y] y
Displacing data.
Percent complete: 100%
Total levels: 367 Current level:(it counts levels and then...)
Segmentation fault

If I want display it I see the vector but it say to me:
WARNING: coor files of vector 'fagiano_kernel@2004_miglioramenti_zrv' is
         larger than it should be (232324 bytes excess).
WARNING: Cannot display areas, topology not available

I remember thath in the past I used r.contour without problem, but I am not
sure.

Thanks
- --
Leonardo Lami
lami@faunalia.it www.faunalia.it
Via Colombo 3 - 51010 Massa e Cozzile (PT), Italy Tel: (+39)349-1310164
GPG key @: hkp://wwwkeys.pgp.net http://www.pgp.net/wwwkeys.html
https://www.biglumber.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFBOHhS92hCyP73w7ARAko6AJoCw3UAHZjz8clQ69Vp37QW4yQDvwCdGbjj
k6IsbZKQkWcxMY/ZlirPBN4=
=6Jxr
-----END PGP SIGNATURE-----

On grass-5.7.cvs-i686-pc-linux-gnu-28_08_2004 on debian
I tried to use r.contour on a kernel raster but I have this result:

GRASS 5.7.cvs:~ > r.contour input=fagiano_kernel step=0.00001 cut=0
output=fagiano_kernel
WARNING: The vector 'fagiano_kernel' already exists and will be
         overwritten.
Reading data.
Percent complete: 100%
FPRange of data: min = 0.000000 max = 0.003658
Minimum level will be 0.000000
Maximum level will be 0.003650
Continue?(y/n) [y] y
Displacing data.
Percent complete: 100%
Total levels: 367 Current level:(it counts levels and then...)
Segmentation fault

This works fine for me, can you make it fail with something from the
spearfish dataset?

If I want display it I see the vector but it say to me:
WARNING: coor files of vector 'fagiano_kernel@2004_miglioramenti_zrv'
is
         larger than it should be (232324 bytes excess).
WARNING: Cannot display areas, topology not available

.. you can try v.build, but basically the vector file is broken.

I just made a minor change to 5.7's r.contour which might help in the
debugging.

Hamish

On Sun, 5 Sep 2004 17:34, Hamish wrote:

> On grass-5.7.cvs-i686-pc-linux-gnu-28_08_2004 on debian
> I tried to use r.contour on a kernel raster but I have this result:
>
> GRASS 5.7.cvs:~ > r.contour input=fagiano_kernel step=0.00001 cut=0
> output=fagiano_kernel
> WARNING: The vector 'fagiano_kernel' already exists and will be
> overwritten.
> Reading data.
> Percent complete: 100%
> FPRange of data: min = 0.000000 max = 0.003658
> Minimum level will be 0.000000
> Maximum level will be 0.003650
> Continue?(y/n) [y] y
> Displacing data.
> Percent complete: 100%
> Total levels: 367 Current level:(it counts levels and then...)
> Segmentation fault

This works fine for me, can you make it fail with something from the
spearfish dataset?

FWIW I've also had problems with r.contour segfaulting when producing large
numbers of contours on reasonably large datasets.

I don't remember the details, and it wasn't worth tracking it down, but I
think the work around was just to ask for less contours, then it would work.

My untested suspicion is that perhaps there is a list of nodes maintained in a
short array and it segfaults when you get more than 32K nodes.

Regards
Gordon

--

Gordon Keith
Programmer/Data Analyst
Marine Acoustics
CSIRO Marine Research
http://www.marine.csiro.au

In theory there is no difference between theory and practice.
In practice there is.