[GRASS-dev] [GRASS GIS] #330: Enhancement to r.cross - add more layers to cross

#330: Enhancement to r.cross - add more layers to cross
----------------------------+-----------------------------------------------
Reporter: dnewcomb | Owner: grass-dev@lists.osgeo.org
     Type: enhancement | Status: new
Priority: minor | Milestone: 6.4.0
Component: default | Version: svn-develbranch6
Keywords: r.cross nfiles | Platform: Linux
      Cpu: x86-64 |
----------------------------+-----------------------------------------------
I'd like r.cross to be able to cross more than 10 layers. I did try
changing the NFILES setting to 30 in raster/r.cross/glob.h. This allows
me to cross 20 layers, but segfaults at 21 layers. Obviously, there is
something else limiting the number of layers besides NFILES which my lack
of skill at C programming does not permit me to see.

The rasters being crossed are in a region with 11451 rows and 25977
columns (297462627 cells).

The version of grass that I altered ( NFILES=10 --> 30)was the 6.4 svn
weekly snapshot from 10/04/2008

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

#330: Enhancement to r.cross - add more layers to cross
--------------------------+-------------------------------------------------
  Reporter: dnewcomb | Owner: grass-dev@lists.osgeo.org
      Type: enhancement | Status: new
  Priority: minor | Milestone: 6.4.0
Component: default | Version: svn-develbranch6
Resolution: | Keywords: r.cross nfiles
  Platform: Linux | Cpu: x86-64
--------------------------+-------------------------------------------------
Comment (by hamish):

You can follow the instructions on the wiki to run gdb to find out where
the segfault comes from:

   http://grass.osgeo.org/wiki/GRASS_Debugging

Hamish

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

#330: Enhancement to r.cross - add more layers to cross
--------------------------+-------------------------------------------------
  Reporter: dnewcomb | Owner: grass-dev@lists.osgeo.org
      Type: enhancement | Status: new
  Priority: minor | Milestone: 6.4.0
Component: default | Version: svn-develbranch6
Resolution: | Keywords: r.cross nfiles
  Platform: Linux | Cpu: x86-64
--------------------------+-------------------------------------------------
Comment (by dnewcomb):

Sorry to take so long. I upgraded to 6.4 snapshot of 10/18/08 and
segfault is gone. Tested 23 layers and worked fine with NFILES set to 30.
Would 30 be a good number to set to? I can test to 30 or more.

Doug

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

#330: Enhancement to r.cross - add more layers to cross
--------------------------+-------------------------------------------------
  Reporter: dnewcomb | Owner: grass-dev@lists.osgeo.org
      Type: enhancement | Status: closed
  Priority: minor | Milestone: 6.4.0
Component: default | Version: svn-develbranch6
Resolution: fixed | Keywords: r.cross nfiles
  Platform: Linux | Cpu: x86-64
--------------------------+-------------------------------------------------
Changes (by neteler):

  * status: new => closed
  * resolution: => fixed

Comment:

I have increased it to 30 files (7: r34000, 6.4: 34001).

Markus

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