[GRASS-user] r.fuzzy.system: specifying raster file?
Beatrice
beatrice.tarimo at umb.no
Tue Jul 16 15:08:52 PDT 2013
Johannes Radinger wrote
> Although I am not the author of that module, I can confirm that the input
> raster files are specified in the .map file as explained in the example.
>
> Hi,
>
> I am experiencing a similar problem. I have followed the steps as in the
> example, making sure all the maps are in the search path but
> r.fuzzy.system keeps reporting an error regardless of the map specified:
>
> My input map definition in the .map file:
>
> %elevation
> $nlow{left; -3,-2; linear; 0; 1}
> $scar{both; -3,-2,0,2; linear; 0; 1}
> $nhigh{right;0,2; linear; 0; 1}
>
> Reported Error:
>
> "Illegal filename. Character <
>> not allowed.
> ERROR: Raster map
> <elevation
>>
> not found"
>
> I have also tried to specify the mapset using "@" as explained in the
> example, still the same error regardless of the map (and respective
> mapset)
>
> My input map definition in the .map file:
>
> %elevation at PERMANENT
> $nlow{left; -3,-2; linear; 0; 1}
> $scar{both; -3,-2,0,2; linear; 0; 1}
> $nhigh{right;0,2; linear; 0; 1}
>
> Reported Error:
>
> "Illegal filename. Character <
>> not allowed.
> ERROR: Raster map
> <
> elevation at PERMANENT
> >
> not found"
>
> I will be grateful for any advice in finding out the source of this error
> and how to rectify it.
>
> Beatrice.
>
>
> On Mon, Jun 17, 2013 at 9:41 AM, Markus Neteler <
> neteler@
> > wrote:
>
>> On Tue, Jun 4, 2013 at 11:09 AM, RichardC <
> richtcooper@
> > wrote:
>> > Hi,
>> >
>> > I'm trying to run the r.fuzzy.system module - have created the map and
>> rules
>> > files, but can't seem to find where to specify the input raster file in
>> the
>> > r.fuzzy.system gui window. I can select the .map, and .rul file,
>>
>>
>> ... these you find in the "Required" tab.
>>
>> > but there
>> > doesn't seem to be a field for the input raster file.
>>
>> While I am not familiar with the module, I understand from the manual
>> that
>> the input map(s) are specified in the ASCII input file
>> ...
>> > I guess that that the input raster file needs to be specified in the
>> .map file,
>>
>> Yes, I also think so.
>>
>> > but I'd be grateful for any advice on the syntax needed to specify. My
>> > flood.map file contains the following:
>> >
>> > %mti
>> > $ low {right; -1,3; sshaped; 0; 1}
>> > $ moderate-low {both; -1,3,4,5; sshaped; 0; 1}
>> > $ moderate-high {both; 4,5,11,14; sshaped; 0; 1}
>> > $ high {left; 11,14; sshaped; 0; 1}
>> >
>> > My rules file:
>> > $ low {mti = low}
>> > $ moderate-low {mti = moderate-low}
>> > $ moderate-high {mti = moderate-high}
>> > $ high {mti = high}
>> >
>> > Refs:
>> >
>> https://svn.osgeo.org/grass/grass-addons/grass6/raster/r.fuzzy.system/description.html
>> > gama.fsv.cvut.cz/data/geoinformatics/2011/05-20/10-dileo.pdf
>>
>> The related source code snippet is (I think):
>>
>> map_parser.c:
>> if (*buf == '%') {
>>
>> fgetpos(fd, &position);
>>
>> sscanf(buf, "%[^\n]", map);
>> char_strip(map, '%');
>> G_strip(map);
>> mapset = (STRING) G_find_raster2(map, "");
>>
>>
>> So the word after % might be taken as map name as seen for example in
>>
>> http://trac.osgeo.org/grass/browser/grass-addons/grass7/raster/r.fuzzy/r.fuzzy.system/flood.map
>>
>> Perhaps the author can help to explain/confirm?
>>
>> Markus
>> _______________________________________________
>> grass-user mailing list
>>
> grass-user at .osgeo
>> http://lists.osgeo.org/mailman/listinfo/grass-user
>>
>
> _______________________________________________
> grass-user mailing list
> grass-user at .osgeo
> http://lists.osgeo.org/mailman/listinfo/grass-user
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/r-fuzzy-system-specifying-raster-file-tp5057685p5066892.html
Sent from the Grass - Users mailing list archive at Nabble.com.
More information about the grass-user
mailing list