[GRASS-dev] [GRASS GIS] #1528: r.mapcalc within a FCELL mask cell_values_float: xdr_float failed

GRASS GIS trac at osgeo.org
Sat Dec 31 06:41:38 EST 2011


#1528: r.mapcalc within a FCELL mask cell_values_float: xdr_float failed
----------------------+-----------------------------------------------------
 Reporter:  pertusus  |       Owner:  grass-dev@…              
     Type:  defect    |      Status:  new                      
 Priority:  normal    |   Milestone:  7.0.0                    
Component:  Default   |     Version:  svn-trunk                
 Keywords:            |    Platform:  Linux                    
      Cpu:  x86-64    |  
----------------------+-----------------------------------------------------
 This is not a very reproducible bug, but intermitently reproducible.  I do
 a FCELL mask, with
 {{{
 r.circle output=circle10 coordinate=$x,$y min=0 max=10000
 echo "$x|$y|1" | r.in.xyz input=- output=seed
 r.patch input=seed,circle10 output=circle10_seed
 }}}

 and after the mask is set, a r.mapcalc gives:
 {{{
 r.mask circle10_seed
 r.mapcalc "result_$nr = continent_fa - circle10_seed"
 ERROR: cell_values_float: xdr_float failed for index 47
 }}}

 This is not so easily reproduced, to reproduce it I need the continent_fa
 map which is a flow accumulation map from hydro1k...

 I attach a tarball to reproduce the issue.  First you need to run

 {{{
 ./prepare_hydro1k.sh
 }}}
 which downloads using wget, and unpack.

 Then you can test with
 {{{
 ./lambert_map.sh
 }}}

 The r.mapcalc is in a loop because it doesn't error each time.

 If the mask is CELL, for instance by using:
 {{{
 echo "$x|$y|1" | r.in.xyz input=- output=seed type=CELL
 }}}
 there is no error.

 There is no such error with 6.4.

-- 
Ticket URL: <http://trac.osgeo.org/grass/ticket/1528>
GRASS GIS <http://grass.osgeo.org>



More information about the grass-dev mailing list