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.
So there were three problems:
···
On Mon, Aug 19, 2013 at 2:11 PM, Beatrice Christopher Tarimo <beatrice.tarimo@umb.no> wrote:
Dear Johannes,
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.
Thank you.
With kind regards,
Beatrice.
From: Beatrice Christopher Tarimo
Sent: 16 August 2013 16:23
To: Johannes Radinger
Subject: RE: FW: [GRASS-user] r.fuzzy.system: specifying raster file?
Hi Johannes,
Thank you for your email and this information.
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.
Thank you very much for your help.
Best regards,
Beatrice.
From: Johannes Radinger [johannesradinger@gmail.com]
Sent: 16 August 2013 15:20
To: Beatrice Christopher Tarimo
Subject: Re: FW: [GRASS-user] r.fuzzy.system: specifying raster file?
Hi again…
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.
Anyway I can have a look at your minimal example you provided next week on my GRASS 7 machine.
Best regards,
Johannes
On Fri, Aug 16, 2013 at 11:12 AM, Johannes Radinger <johannesradinger@gmail.com> wrote:
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.
Best regards,
Johannes
On Fri, Aug 16, 2013 at 10:34 AM, Beatrice Christopher Tarimo <beatrice.tarimo@umb.no> wrote:
Dear Johannes,
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.
Thank you,
Beatrice.
From: Beatrice Christopher Tarimo
Sent: 31 July 2013 22:10
To: Johannes Radinger
Subject: RE: FW: [GRASS-user] r.fuzzy.system: specifying raster file?
Hi Johannes,
Thank you for your email. Please allow me to wait until around this date.
Thank you so very much for your help.
Best regards,
Beatrice.
From: Johannes Radinger [johannesradinger@gmail.com]
Sent: 31 July 2013 14:44
To: Beatrice Christopher Tarimo
Subject: Re: FW: [GRASS-user] r.fuzzy.system: specifying raster file?
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.
best regards
Johannes
On Tue, Jul 30, 2013 at 7:59 AM, Beatrice Christopher Tarimo <beatrice.tarimo@umb.no> wrote:
Hi Johannes,
Thank you very much for your help.
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.
These are the maps in my mapset:
g.list rast
raster files available in mapset :
B3 B4 B7 ndii
(Mon Jul 29 23:25:45 2013) Command finished (0 sec)
Error message from r.fuzzy.system:
Illegal filename. Character <
not allowed.
ERROR: Raster map <B4
not found
Same error message for a different input map
Illegal filename. Character <
not allowed.
ERROR: Raster map <ndii
not found
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.
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
Illegal filename. Character <
not allowed.
ERROR: Raster map <lsat5_1987_40
not found
Thank you very much for your help,
Best regards,
Beatrice.
From: Johannes Radinger [johannesradinger@gmail.com]
Sent: 29 July 2013 09:15
To: Beatrice Christopher Tarimo
Subject: Re: FW: [GRASS-user] r.fuzzy.system: specifying raster file?
Hi,
thank you for the information. From a first view, I don’t see any major errors in you files.
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.
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.
So overall, my tip is to simplify your fuzzy procedure stepwise to better identify your problem.
Best regards,
Johannes
On Sun, Jul 28, 2013 at 10:04 PM, Beatrice Christopher Tarimo <beatrice.tarimo@umb.no> wrote:
Hi Johannes,
Thank you very much for your reply. Please find attached my .map file. Below is the result of g.list of my mapset:
(Sun Jul 28 21:33:34 2013)
g.list rast
raster files available in mapset :
diff ndii ndii2_abs ndii3 sum
index ndii2 ndii2asciirast ndvi2
raster files available in mapset :
L5171065_06520110726_B20 L5171065_06520110726_B50 clusters
L5171065_06520110726_B30 L5171065_06520110726_B60 ndvi
L5171065_06520110726_B40 L5171065_06520110726_B70
(Sun Jul 28 21:33:34 2013) Command finished (0 sec)
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.
Thank you.
Best regards,
Beatrice.
From: Johannes Radinger [johannesradinger@gmail.com]
Sent: 26 July 2013 09:12
To: Beatrice Christopher Tarimo
Subject: Re: FW: [GRASS-user] r.fuzzy.system: specifying raster file?
Hi Beatrice,
have you checked if there are any trailing spaces after your map name in the .map file?
Maybe you can post the .map file as it is and the result of g.list of your mapset.
Are you working in the PERMANENT mapset?
Best regards,
Johannes
On Thu, Jul 25, 2013 at 9:52 PM, Beatrice Christopher Tarimo <beatrice.tarimo@umb.no> wrote:
Dear Johannes Radinger,
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?
I am sorry for any inconvenience.
Thank you and best regards,
Beatrice.
From: neteler.osgeo@gmail.com [neteler.osgeo@gmail.com] on behalf of Markus Neteler [neteler@osgeo.org]
Sent: 25 July 2013 15:04
To: Beatrice Christopher Tarimo
Subject: Re: [GRASS-user] r.fuzzy.system: specifying raster file?
Hi Beatrice,
perhaps you could contact Johannes Radinger
(johannesradinger@gmail.com) for this, since he already used the module.
Please let me then know of manual improvements to be done.
Best
Markus
On Thu, Jul 18, 2013 at 8:56 PM, Beatrice <beatrice.tarimo@umb.no> wrote:
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@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@PERMANENT
not found"
I will be grateful for any advice in finding out the source of this error
and how to rectify it.
Beatrice.
–
View this message in context: http://osgeo-org.1560.x6.nabble.com/r-fuzzy-system-specifying-raster-file-tp5057685p5067435.html
Sent from the Grass - Users mailing list archive at Nabble.com.
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user