Hi,
I wanted to test sample fire simulation data (http://grass.osgeo.org/download/sample-data/) in GRASS 7. I used the provided script and tried one command after each other (you cannot use the whole script because of r.spread X mon connection).
However, the r.ros command is working only partially for me:
GRASS 7.0.svn (fire_demolocation):~/… > 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, …) and I can run r.spread.
It seems that the error goes from 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);
Recently, we tried some other data on some other system and it worked without an error. Also in GRASS 6.4.3 it works without problems (except for the last commands but probably just the script is confusing or confused). My system is Ubuntu 13.10 64bit (gcc).
I don’t know what to test or look for.
Vaclav
On Thu, Jan 2, 2014 at 12:25 AM, Vaclav Petras <wenzeslaus@gmail.com> wrote:
Hi,
I wanted to test sample fire simulation data
(http://grass.osgeo.org/download/sample-data/) in GRASS 7. I used the
provided script and tried one command after each other (you cannot use the
whole script because of r.spread X mon connection).
However, the r.ros command is working only partially for me:
GRASS 7.0.svn (fire_demolocation):~/... > 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
If you run it without -s, it works:
GRASS 7.0.svn (fire_demolocation):~/grassdata/fire_demolocation >
g.remove --q rast=my_ros.max,my_ros.base,my_ros.maxdir,my_ros.spotdist,my_spread,my_spread.x,my_spread.y,my_path
WARNING: ...
GRASS 7.0.svn (fire_demolocation):~/grassdata/fire_demolocation >
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
100%
r.ros complete. Raster maps <my_ros.base>, <my_ros.max> and <my_ros.maxdir>
created.
So the issue in in the -s code.
Markus
On Thu, Jan 2, 2014 at 9:13 AM, Markus Neteler <neteler@osgeo.org> wrote:
On Thu, Jan 2, 2014 at 12:25 AM, Vaclav Petras <wenzeslaus@gmail.com>
wrote:
> Hi,
>
> I wanted to test sample fire simulation data
> (http://grass.osgeo.org/download/sample-data/) in GRASS 7. I used the
> provided script and tried one command after each other (you cannot use
the
> whole script because of r.spread X mon connection).
>
> However, the r.ros command is working only partially for me:
>
> GRASS 7.0.svn (fire_demolocation):~/... > 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
If you run it without -s, it works:
GRASS 7.0.svn (fire_demolocation):~/grassdata/fire_demolocation >
g.remove --q
rast=my_ros.max,my_ros.base,my_ros.maxdir,my_ros.spotdist,my_spread,my_spread.x,my_spread.y,my_path
WARNING: ...
GRASS 7.0.svn (fire_demolocation):~/grassdata/fire_demolocation >
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
100%
r.ros complete. Raster maps <my_ros.base>, <my_ros.max> and <my_ros.maxdir>
created.
So the issue in in the -s code.
Thanks for checking this. I overlooked the fact that I haven't used -s
before.
Even the <my_ros.spotdist> map is created and is the same in G7 and G6
(haven't tested, but I guess that only color table differs, see attached
screenshot).
I might look at r.ros -s related code but not sure when.
Vasek
Markus
(attachments)
I’ve created the ticket because I almost forgot about this.
https://trac.osgeo.org/grass/ticket/2209
···
On Thu, Jan 2, 2014 at 12:26 PM, Vaclav Petras <wenzeslaus@gmail.com> wrote:
On Thu, Jan 2, 2014 at 9:13 AM, Markus Neteler <neteler@osgeo.org> wrote:
On Thu, Jan 2, 2014 at 12:25 AM, Vaclav Petras <wenzeslaus@gmail.com> wrote:
Hi,
I wanted to test sample fire simulation data
(http://grass.osgeo.org/download/sample-data/) in GRASS 7. I used the
provided script and tried one command after each other (you cannot use the
whole script because of r.spread X mon connection).
However, the r.ros command is working only partially for me:
GRASS 7.0.svn (fire_demolocation):~/… > 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
If you run it without -s, it works:
GRASS 7.0.svn (fire_demolocation):~/grassdata/fire_demolocation >
g.remove --q rast=my_ros.max,my_ros.base,my_ros.maxdir,my_ros.spotdist,my_spread,my_spread.x,my_spread.y,my_path
WARNING: …
GRASS 7.0.svn (fire_demolocation):~/grassdata/fire_demolocation >
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
100%
r.ros complete. Raster maps <my_ros.base>, <my_ros.max> and <my_ros.maxdir>
created.
So the issue in in the -s code.
Thanks for checking this. I overlooked the fact that I haven’t used -s before.
Even the <my_ros.spotdist> map is created and is the same in G7 and G6 (haven’t tested, but I guess that only color table differs, see attached screenshot).
I might look at r.ros -s related code but not sure when.
Vasek
Markus
On Thu, Jan 2, 2014 at 12:25 AM, Vaclav Petras <wenzeslaus@gmail.com> wrote:
Hi,
I wanted to test sample fire simulation data
(http://grass.osgeo.org/download/sample-data/) in GRASS 7. I used the
provided script and tried one command after each other (you cannot use the
whole script because of r.spread X mon connection).
However, the r.ros command is working only partially for me:
GRASS 7.0.svn (fire_demolocation):~/... > 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
For the (ML) record: solved in 6.4, 6.5 and 7.svn.
Markus