[GRASS-user] r.fuzzy.system: specifying raster file?

Johannes Radinger johannesradinger at gmail.com
Mon Jun 17 02:25:18 PDT 2013


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.


On Mon, Jun 17, 2013 at 9:41 AM, Markus Neteler <neteler at osgeo.org> wrote:

> On Tue, Jun 4, 2013 at 11:09 AM, RichardC <richtcooper at hotmail.com> 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 lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20130617/bb630c74/attachment.html>


More information about the grass-user mailing list