<div dir="ltr">Hi Beatrice,<div><br></div><div>I traced down your problem(s) with your files for r.fuzzy.system. First, thank you for the minimal examples. That were great for tracing the problem.</div><div>So there were three problems:</div>
<div><br></div><div>1) you defined two output levels (res1 and res2) in your .MAP file but you used different levels in your .RUL file (rul1 and rul2)</div><div><br></div><div>2) you did not include the shape factor (e.g. "linear") in the definiton of your output classes</div>
<div><br></div><div>3) And the real problem that caused all your problems were the line endings. You're probably working on Windows and the Windows text editor you used for creating your files have by default a different definition of a "new line". This is different to Linux line endings. Common simple texteditors do not show which line endings are in use so it is really difficult for a user to realize that there are different line endings (I had the same problems some months/years ago). So what I did: I am using now TextWrangler on my Mac as text editor of my choice. This program and probably many others (also for Windows) allow to change the definition of the line endings to Unix-like "newlines". Just change that and than your fuzzy system will work smoothly (tested with GRASS6.5 so there is no need to run r.fuzzy.system in GRASS7)...</div>
<div><br></div><div><br></div><div>/Johannes</div><div><br></div><div><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Aug 19, 2013 at 2:11 PM, Beatrice Christopher Tarimo <span dir="ltr"><<a href="mailto:beatrice.tarimo@umb.no" target="_blank">beatrice.tarimo@umb.no</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div>
<div style="direction:ltr;font-size:10pt;font-family:Tahoma">Dear Johannes,<br>
<br>
I am sorry I could not provide you with feedback as promised in my last email. I have been experiencing problems running GRASS 7. I now have it running but I have not been able to install extensions/addons. It reports an error: "unable to load extensions".
 I am trying to figure out what I am not doing right and will provide you with feedback as soon as I manage to test r.fuzzy.system on GRASS 7.<br>
<br>
Thank you.<br>
<br>
With kind regards,<br>
Beatrice.<br>
<br>
<div style="font-size:16px;font-family:Times New Roman">
<hr>
<div style="direction:ltr"><font color="#000000" face="Tahoma"><b>From:</b> Beatrice Christopher Tarimo<br>
<b>Sent:</b> 16 August 2013 16:23<div><div class="h5"><br>
<b>To:</b> Johannes Radinger<br>
<b>Subject:</b> RE: FW: [GRASS-user] r.fuzzy.system: specifying raster file?<br>
</div></div></font><br>
</div><div><div class="h5">
<div></div>
<div>
<div style="direction:ltr;font-size:10pt;font-family:Tahoma">Hi Johannes,<br>
<br>
Thank you for your email and this information.<br>
<br>
I have been running GRASS 6.4.2 and GRASS 6.4.3RC2. I will try with GRASS 7.0 and will provide you with feedback as soon as possible, hopefully before next week.<br>
<br>
Thank you very much for your help.<br>
<br>
Best regards,<br>
Beatrice.<br>
<div style="font-size:16px;font-family:Times New Roman">
<hr>
<div style="direction:ltr"><font color="#000000" face="Tahoma"><b>From:</b> Johannes Radinger [<a href="mailto:johannesradinger@gmail.com" target="_blank">johannesradinger@gmail.com</a>]<br>
<b>Sent:</b> 16 August 2013 15:20<br>
<b>To:</b> Beatrice Christopher Tarimo<br>
<b>Subject:</b> Re: FW: [GRASS-user] r.fuzzy.system: specifying raster file?<br>
</font><br>
</div>
<div></div>
<div>
<div dir="ltr">Hi again...
<div><br>
</div>
<div>which version of GRASS are you using at the moment? I know that I had some problems with the 6.X version, thus all my work is done with GRASS 7.0. So maybe you can try it with GRASS 7.0 and see if that already solves your problem.</div>

<div><br>
</div>
<div>Anyway I can have a look at your minimal example you provided next week on my GRASS 7 machine.</div>
<div><br>
</div>
<div>Best regards,</div>
<div>Johannes</div>
</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On Fri, Aug 16, 2013 at 11:12 AM, Johannes Radinger <span dir="ltr">
<<a href="mailto:johannesradinger@gmail.com" target="_blank">johannesradinger@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">As my server with GRASS is down at the moment I can't check your example. Hopefully I can manage it by next week. I hope thats not too late.
<div><br>
</div>
<div>Best regards,</div>
<div>Johannes</div>
</div>
<div>
<div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On Fri, Aug 16, 2013 at 10:34 AM, Beatrice Christopher Tarimo
<span dir="ltr"><<a href="mailto:beatrice.tarimo@umb.no" target="_blank">beatrice.tarimo@umb.no</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<div style="direction:ltr;font-size:10pt;font-family:Tahoma">Dear Johannes,<br>
<br>
I am sorry for any inconvenience this email might cause but I wish to ask if you managed to have some time to look into the error with regards to r.fuzzy.system as per our previous communication.<br>
<br>
Thank you,<br>
Beatrice.<br>
<br>
<div style="font-size:16px;font-family:Times New Roman">
<hr>
<div style="direction:ltr"><font color="#000000" face="Tahoma"><b>From:</b> Beatrice Christopher Tarimo<br>
<b>Sent:</b> 31 July 2013 22:10<br>
<b>To:</b> Johannes Radinger<br>
<b>Subject:</b> RE: FW: [GRASS-user] r.fuzzy.system: specifying raster file?<br>
</font><br>
</div>
<div>
<div>
<div></div>
<div>
<div style="direction:ltr;font-size:10pt;font-family:Tahoma">Hi Johannes,<br>
<br>
Thank you for your email. Please allow me to wait until around this date.<br>
<br>
Thank you so very much for your help.<br>
<br>
Best regards,<br>
Beatrice.<br>
<br>
<div style="font-size:16px;font-family:Times New Roman">
<hr>
<div style="direction:ltr"><font color="#000000" face="Tahoma"><b>From:</b> Johannes Radinger [<a href="mailto:johannesradinger@gmail.com" target="_blank">johannesradinger@gmail.com</a>]<br>
<b>Sent:</b> 31 July 2013 14:44<br>
<b>To:</b> Beatrice Christopher Tarimo<br>
<b>Subject:</b> Re: FW: [GRASS-user] r.fuzzy.system: specifying raster file?<br>
</font><br>
</div>
<div></div>
<div>
<div dir="ltr">Thank you Beatrice for your working example. At the moment I have no time for testing my self and will be away for a conference next week. So most probably I can look into your data earliest on the 12 of august. If you your request is more urgent
 you can try to post the working example for the NC dataset to the GRASS user mailing list. Maybe someone else has also experience with r.fuzzy and can try your example.
<div><br>
</div>
<div>best regards</div>
<div>Johannes</div>
</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On Tue, Jul 30, 2013 at 7:59 AM, Beatrice Christopher Tarimo
<span dir="ltr"><<a href="mailto:beatrice.tarimo@umb.no" target="_blank">beatrice.tarimo@umb.no</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<div style="direction:ltr;font-size:10pt;font-family:Tahoma">
<div style="direction:ltr;font-size:10pt;font-family:Tahoma">Hi Johannes,<br>
<br>
Thank you very much for your help.<br>
<br>
The problem still persist. I did work in one mapset with all the input maps in this mapset, simple map names and only two input maps. The raster maps "B3/B4/B7" were imported by r.in.gdal and "ndii" is an index of these other maps computed by r.mapcalc. My
 .map file is similar to the one I sent to you with relevant input map names and fuzzy sets definitions.<br>
<br>
These are the maps in my mapset:<br>
<br>
g.list rast                                                                     <br>
----------------------------------------------<br>
raster files available in mapset <Landsat>:<br>
B3   B4   B7   ndii <br>
----------------------------------------------<br>
(Mon Jul 29 23:25:45 2013) Command finished (0 sec)<br>
<br>
<br>
Error message from r.fuzzy.system:
<div><br>
<br>
Illegal filename. Character <<br>
> not allowed.<br>
</div>
ERROR: Raster map <B4<br>
> not found<br>
<br>
Same error message for a different input map
<div><br>
<br>
Illegal filename. Character <<br>
> not allowed.<br>
</div>
ERROR: Raster map <ndii<br>
> not found<br>
<br>
I am attaching very simplified .map and .rul files that use GRASS North Carolina dataset in the landsat mapset. I use file names as they are here but I tried with simple map names and got the same error message.<br>
<br>
                                                     <br>
r.fuzzy.system maps=D:\Beatrice\GRASS\grassdata\nc_spm_08\landsat\Maps.map.txt rules=D:\Beatrice\GRASS\grassdata\nc_spm_08\landsat\Rules.rul.txt family=Zadeh imp=minimum res=100 output=test1
<div><br>
Illegal filename. Character <<br>
> not allowed.<br>
</div>
ERROR: Raster map <lsat5_1987_40<br>
> not found<br>
<br>
Thank you very much for your help,<br>
<br>
Best regards,<br>
Beatrice.<br>
<br>
<div style="font-size:16px;font-family:Times New Roman">
<hr>
<div style="direction:ltr"><font color="#000000" face="Tahoma"><b>From:</b> Johannes Radinger [<a href="mailto:johannesradinger@gmail.com" target="_blank">johannesradinger@gmail.com</a>]<br>
<b>Sent:</b> 29 July 2013 09:15
<div>
<div><br>
<b>To:</b> Beatrice Christopher Tarimo<br>
<b>Subject:</b> Re: FW: [GRASS-user] r.fuzzy.system: specifying raster file?<br>
</div>
</div>
</font><br>
</div>
<div>
<div>
<div></div>
<div>
<div dir="ltr">Hi,
<div><br>
</div>
<div>thank you for the information. From a first view, I don't see any major errors in you files. </div>
<div><br>
</div>
<div>However, to trace your problem I'd suggest to work only in one mapset and have all maps that are specified in the map-file in that mapset. Than you can also skip the trailing "@PERMANENT". Furthermore I'd suggest to use only three or even only two maps
 for testing your fuzzy-approach and maybe rename the maps for the testing to very simple names without any special characters (e.g. "test1", "test2"). Maybe this already indicates where the error is located. </div>

<div>Otherwise you could also try to create a minimum test example with one of the standard locations (e.g. the GRASS North carlolina dataset) to see if the problem also occurs there (which might than be a problem with the module itsel). Such an minimum testing
 example can also be useful for other GRASS users to reproduce the error and help tracing the problem.</div>
<div>So overall, my tip is to simplify your fuzzy procedure stepwise to better identify your problem.</div>
<div><br>
</div>
<div>Best regards,</div>
<div>Johannes</div>
</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On Sun, Jul 28, 2013 at 10:04 PM, Beatrice Christopher Tarimo
<span dir="ltr"><<a href="mailto:beatrice.tarimo@umb.no" target="_blank">beatrice.tarimo@umb.no</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<div style="direction:ltr;font-size:10pt;font-family:Tahoma">Hi Johannes,<br>
<br>
Thank you very much for your reply. Please find attached my .map file. Below is the result of g.list of my mapset:<br>
<br>
(Sun Jul 28 21:33:34 2013)                                                      <br>
g.list rast                                                                     <br>
----------------------------------------------<br>
raster files available in mapset <user1>:<br>
diff            ndii            ndii2_abs       ndii3           sum<br>
index           ndii2           ndii2asciirast  ndvi2<br>
raster files available in mapset <PERMANENT>:<br>
L5171065_<a href="tel:06520110726" value="+496520110726" target="_blank">06520110726</a>_B20  L5171065_<a href="tel:06520110726" value="+496520110726" target="_blank">06520110726</a>_B50  clusters<br>
L5171065_<a href="tel:06520110726" value="+496520110726" target="_blank">06520110726</a>_B30  L5171065_<a href="tel:06520110726" value="+496520110726" target="_blank">06520110726</a>_B60  ndvi<br>
L5171065_<a href="tel:06520110726" value="+496520110726" target="_blank">06520110726</a>_B40  L5171065_<a href="tel:06520110726" value="+496520110726" target="_blank">06520110726</a>_B70<br>
----------------------------------------------<br>
(Sun Jul 28 21:33:34 2013) Command finished (0 sec)       <br>
<br>
No. I am not working in the PERMANENT mapset but I have some of my data in the PERMANENT mapset. I have tried with data stored in a different mapset, I have also to work in the PERMANENT mapset, I get the same error. I have also tried with mapsets (and datasets)
 coming with GRASS to check if the problem is my mapsets (or my datasets) but r.fuzzy.system returns the same error.<br>
<br>
Thank you.<br>
Best regards,<br>
Beatrice. <br>
<div style="font-size:16px;font-family:Times New Roman">
<hr>
<div style="direction:ltr"><font color="#000000" face="Tahoma"><b>From:</b> Johannes Radinger [<a href="mailto:johannesradinger@gmail.com" target="_blank">johannesradinger@gmail.com</a>]<br>
<b>Sent:</b> 26 July 2013 09:12<br>
<b>To:</b> Beatrice Christopher Tarimo<br>
<b>Subject:</b> Re: FW: [GRASS-user] r.fuzzy.system: specifying raster file?<br>
</font><br>
</div>
<div>
<div>
<div></div>
<div>
<div dir="ltr">Hi Beatrice,
<div><br>
</div>
<div>have you checked if there are any trailing spaces after your map name in the .map file?</div>
<div>Maybe you can post the .map file as it is and the result of g.list of your mapset.</div>
<div>Are you working in the PERMANENT mapset?</div>
<div><br>
</div>
<div>Best regards,</div>
<div>Johannes</div>
</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On Thu, Jul 25, 2013 at 9:52 PM, Beatrice Christopher Tarimo
<span dir="ltr"><<a href="mailto:beatrice.tarimo@umb.no" target="_blank">beatrice.tarimo@umb.no</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Dear Johannes Radinger,<br>
<br>
I am writing to request your help on the problem explained below with regards to r.fuzzy.system in GRASS GIS. I posted this on GRASS-user forum and also wrote to the person who wrote the first post on this error but have not received any replies as yet. Could
 you please help me?<br>
<br>
I am sorry for any inconvenience.<br>
<br>
Thank you and best regards,<br>
Beatrice.<br>
<br>
________________________________________<br>
From: <a href="mailto:neteler.osgeo@gmail.com" target="_blank">neteler.osgeo@gmail.com</a> [<a href="mailto:neteler.osgeo@gmail.com" target="_blank">neteler.osgeo@gmail.com</a>] on behalf of Markus Neteler [<a href="mailto:neteler@osgeo.org" target="_blank">neteler@osgeo.org</a>]<br>

Sent: 25 July 2013 15:04<br>
To: Beatrice Christopher Tarimo<br>
<div>Subject: Re: [GRASS-user] r.fuzzy.system: specifying raster file?<br>
<br>
</div>
Hi Beatrice,<br>
<br>
perhaps you could contact Johannes Radinger<br>
(<a href="mailto:johannesradinger@gmail.com" target="_blank">johannesradinger@gmail.com</a>) for this, since he already used the module.<br>
Please let me then know of manual improvements to be done.<br>
<br>
Best<br>
Markus<br>
<br>
On Thu, Jul 18, 2013 at 8:56 PM, Beatrice <<a href="mailto:beatrice.tarimo@umb.no" target="_blank">beatrice.tarimo@umb.no</a>> wrote:<br>
> Hi,<br>
><br>
> I am experiencing a similar problem. I have followed the steps as in the<br>
> example, making sure all the maps are in the search path but r.fuzzy.system<br>
> keeps reporting an error regardless of the map specified:<br>
><br>
> My input map definition in the .map file:<br>
><br>
> %elevation<br>
> $nlow{left; -3,-2; linear; 0; 1}<br>
> $scar{both; -3,-2,0,2; linear; 0; 1}<br>
> $nhigh{right;0,2; linear; 0; 1}<br>
><br>
> Reported Error:<br>
><br>
> "Illegal filename. Character <<br>
>> not allowed.<br>
> ERROR: Raster map<br>
> <elevation<br>
> not found&quot;<br>
><br>
> I have also tried to specify the mapset using &quot;@&quot; as explained in<br>
> the example, still the same error regardless of the map (and respective<br>
> mapset)<br>
><br>
> My input map definition in the .map file:<br>
><br>
> %elevation@PERMANENT<br>
> $nlow{left; -3,-2; linear; 0; 1}<br>
> $scar{both; -3,-2,0,2; linear; 0; 1}<br>
> $nhigh{right;0,2; linear; 0; 1}<br>
><br>
> Reported Error:<br>
><br>
> &quot;Illegal filename. Character &lt;<br>
>> not allowed.<br>
> ERROR: Raster map<br>
> <elevation@PERMANENT<br>
> not found"<br>
><br>
> I will be grateful for any advice in finding out the source of this error<br>
> and how to rectify it.<br>
><br>
> Beatrice.<br>
><br>
><br>
<span><font color="#888888">><br>
> --<br>
> View this message in context: <a href="http://osgeo-org.1560.x6.nabble.com/r-fuzzy-system-specifying-raster-file-tp5057685p5067435.html" target="_blank">
http://osgeo-org.1560.x6.nabble.com/r-fuzzy-system-specifying-raster-file-tp5057685p5067435.html</a><br>
</font></span>
<div>> Sent from the Grass - Users mailing list archive at Nabble.com.<br>
</div>
<div>
<div>> _______________________________________________<br>
> grass-user mailing list<br>
> <a href="mailto:grass-user@lists.osgeo.org" target="_blank">grass-user@lists.osgeo.org</a><br>
> <a href="http://lists.osgeo.org/mailman/listinfo/grass-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/grass-user</a><br>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</div>
</div>
</div></div></div>
</div>
</div>

</blockquote></div><br></div></div>