[GRASS-dev] [GRASS GIS] #2209: r.ros fails with -s flag with invalid descriptor error

GRASS GIS trac at osgeo.org
Wed Mar 5 20:04:31 PST 2014


#2209: r.ros fails with -s flag with invalid descriptor error
-------------------------+--------------------------------------------------
 Reporter:  wenzeslaus   |       Owner:  grass-dev@…              
     Type:  defect       |      Status:  new                      
 Priority:  minor        |   Milestone:  7.0.0                    
Component:  Raster       |     Version:  svn-trunk                
 Keywords:               |    Platform:  Linux                    
      Cpu:  Unspecified  |  
-------------------------+--------------------------------------------------
 Steps provided with sample fire simulation data
 (http://grass.osgeo.org/download/sample-data/) fails for GRASS 7 (trunk).

 When G7:r.ros is used with `-s` flag it reports `ERROR: Invalid
 descriptor: somenumber`:

 {{{
 r.ros -s model=fuel_model moisture_1h=1hour_moisture
 moisture_live=live_moisture velocity=wind_speed direction=wind_direction
 slope=slope aspect=aspect elevation=elevation output=my_ros
  100%
 ERROR: Invalid descriptor: 11
 }}}

 I'm in demomapset. All output maps are created (my_ros.base, my_ros.max,
 ...) including `my_ros.spotdist` and I can run G7:r.spread.

 It works without `-s` flag:
 {{{
 r.ros model=fuel_model moisture_1h=1hour_moisture
 moisture_live=live_moisture velocity=wind_speed
 direction=wind_direction slope=slope aspect=aspect elevation=elevation
 output=my_ros
 }}}

 It seems that the error goes from source:grass/trunk/lib/raster/close.c:

 {{{
 $ grep -Irn "Invalid descriptor" .
 ./lib/raster/close.c:74:    G_fatal_error(_("Invalid descriptor: %d"),
 fd);
 ./lib/raster/close.c:107:    G_fatal_error(_("Invalid descriptor: %d"),
 fd);
 }}}


 Rewritten from the discussion at grass-dev:
 [http://lists.osgeo.org/pipermail/grass-dev/2014-January/066740.html
 Testing sample fire simulation data in GRASS 7] ([http://osgeo-
 org.1560.x6.nabble.com/Testing-sample-fire-simulation-data-in-
 GRASS-7-td5096039.html nabble],
 [http://comments.gmane.org/gmane.comp.gis.grass.devel/56048 gmane]).

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



More information about the grass-dev mailing list