Hi Markus,

Here is a copy to the list for g.extension installer in GRASS 7.0.

Best regards,
Beatrice.

________________________________
From: Beatrice Christopher Tarimo
Sent: 19 August 2013 23:49
To: [email protected]
Cc: [email protected]
Subject: RE: FW: r.fuzzy.system: specifying raster file?

Dear Johannes,
Dear Markus,

Thank you so very much for your kind support.

I am very sorry for problems 1) and 2). (That was really bad). They happened 
when I was editing my .map and .rul files to provide a meaningful but simple 
example.

Yes, I am working on Windows. I now understand, thank you. I had noted earlier 
that when I load an existing .map or .rul text file in the "or enter values 
interactively" sections of respective tabs (i.e Required and Optional), 
formatting of the existing .map or .rul text file changes, but I did not 
understand it was the source of the error. r.fuzzy.system is now working!

I have also successfully tested r.fuzzy.system on GRASS 7.0. I think the error 
with addons happens when using the menu option (Settings - Addons extensions 
....). Running g.extensions from the command console does not report successful 
installation but provide a Traceback which in the end reports

File "C:\Program Files (x86)\GRASS GIS
7.0.svn\Python27\lib\zipfile.py", line 807, in
_RealGetContents
    raise BadZipfile, "File is not a zip file"
zipfile.BadZipfile: File is not a zip file

Afterwards, the Addons of interest is/are available e.g when called from the 
command console.

Again, thank you very much for your help.

Kind regards,
Beatrice.


________________________________
From: Johannes Radinger [via OSGeo.org] [[email protected]]
Sent: 19 August 2013 17:56
To: Beatrice Christopher Tarimo
Subject: Re: FW: r.fuzzy.system: specifying raster file?

Hi Beatrice,

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:

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)

2) you did not include the shape factor (e.g. "linear") in the definiton of 
your output classes

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)...


/Johannes




On Mon, Aug 19, 2013 at 2:11 PM, Beatrice Christopher Tarimo <[hidden 
email]<UrlBlockedError.aspx>> 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 [[hidden email]<UrlBlockedError.aspx>]
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 <[hidden 
email]<UrlBlockedError.aspx>> 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 <[hidden 
email]<UrlBlockedError.aspx>> 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 [[hidden email]<UrlBlockedError.aspx>]
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 <[hidden 
email]<UrlBlockedError.aspx>> 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 <Landsat>:
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 [[hidden email]<UrlBlockedError.aspx>]
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 <[hidden 
email]<UrlBlockedError.aspx>> 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 <user1>:
diff            ndii            ndii2_abs       ndii3           sum
index           ndii2           ndii2asciirast  ndvi2
raster files available in mapset <PERMANENT>:
L5171065_<a href="tel:06520110726" value="+496520110726" 
target="_blank">06520110726_B20  L5171065_<a href="tel:06520110726" 
value="+496520110726" target="_blank">06520110726_B50  clusters
L5171065_<a href="tel:06520110726" value="+496520110726" 
target="_blank">06520110726_B30  L5171065_<a href="tel:06520110726" 
value="+496520110726" target="_blank">06520110726_B60  ndvi
L5171065_<a href="tel:06520110726" value="+496520110726" 
target="_blank">06520110726_B40  L5171065_<a href="tel:06520110726" 
value="+496520110726" target="_blank">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 [[hidden email]<UrlBlockedError.aspx>]
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 <[hidden 
email]<UrlBlockedError.aspx>> 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: [hidden email]<UrlBlockedError.aspx> [[hidden 
email]<UrlBlockedError.aspx>] on behalf of Markus Neteler [[hidden 
email]<UrlBlockedError.aspx>]
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
([hidden email]<UrlBlockedError.aspx>) 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 <[hidden 
email]<UrlBlockedError.aspx>> 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&quot;
>
> I have also tried to specify the mapset using &quot;@&quot; 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:
>
> &quot;Illegal filename. Character &lt;
>> 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
> [hidden email]<UrlBlockedError.aspx>
> http://lists.osgeo.org/mailman/listinfo/grass-user







_______________________________________________
grass-user mailing list
[hidden email]<UrlBlockedError.aspx>
http://lists.osgeo.org/mailman/listinfo/grass-user


________________________________
If you reply to this email, your message will be added to the discussion below:
http://osgeo-org.1560.x6.nabble.com/r-fuzzy-system-specifying-raster-file-tp5057685p5073184.html
To unsubscribe from r.fuzzy.system: specifying raster file?, click 
here<http://osgeo-org.1560.x6.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=5057685&code=YmVhdHJpY2UudGFyaW1vQHVtYi5ub3w1MDU3Njg1fC04MjEzMzYxOTY=>.
NAML<http://osgeo-org.1560.x6.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
_______________________________________________
grass-user mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-user

Reply via email to