[GRASS-user] Problem using i.cluster on GRASS GIS 6.4.0RC3
Hamish
hamish_b at yahoo.com
Tue Feb 24 18:40:39 EST 2009
sindile.bidla wrote:
> I get the following error when using i.cluster: ERROR:
> Unable to create report file <(null)>
>
> This is how I wrote the commands
> i.group group=lsat1 subgroup=lsat1
> in=L71171078_07820001007_B10,L71171078_07820001007_B20,L71171078_07820001007_B30,L71171078_07820001007_B40,L71171078_07820001007_B50,L72171078_07820001007_B70
> i.cluster group=lsat1 subgroup=lsat1 sig=sig.cluster
> classes=15 sep=1.5
>
> Windows XP - GRASS GIS 6.4.0RC3
>
> I have seen the following tickets
> http://trac.osgeo.org/grass/ticket/174 and
> http://trac.osgeo.org/grass/ticket/70 which seem to suggest
> that the
> problem has been solved / there is a work around.
nope, not fixed yet.
i.cluster/main.c has:
if ((reportfile = parm.report_file->answer) == NULL)
report = fopen("/dev/null", "w");
there is no /dev/null on Windows, so it fails to open the file.
work-around: specify reportfile=something.txt
others that need fixing:
raster/r.out.mpeg/main.c
raster/r.topmodel/misc.c
Hamish
More information about the grass-user
mailing list