[GRASS-user] Re: Grass 6.4.2 on Ubuntu 11.10
Hi, As a follow-up on this issue, and as a person who never installed GRASS on Linux, I wanted to ask the Forum if there is a version of GRASS 6.x that will run on 32-bit system, which has a similar look to the most recent Unix interface. I installed 6.4.2 from the US Tier#2 web site of GRASS (the link gave the date of 2009) but I am sure that the interface looked archaic. It is important that the version is free of bugs since it will be used for a workshop designed for beginners. I will appreciate your suggestions. * I also installed GRASS 7 but there are issues with vector import and basic analyses. Bulent -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Grass-6-4-2-on-Ubuntu-11-10-tp4514292p4547522.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
Re: [GRASS-user] Re: Grass 6.4.2 on Ubuntu 11.10
On Mon, Mar 5, 2012 at 12:59 PM, barikan bulent.ari...@gmail.com wrote: Hi, As a follow-up on this issue, and as a person who never installed GRASS on Linux, I wanted to ask the Forum if there is a version of GRASS 6.x that will run on 32-bit system, which has a similar look to the most recent Unix interface. If you install a Linux distro package, it should come in either 64 or 32 bit depending on your system. Unfortunately some distros are quite lagging behind with the packaging. I installed 6.4.2 from the US Tier#2 web site of GRASS (the link gave the date of 2009) Can you please indicate the link? Anything which should be fixed? but I am sure that the interface looked archaic. Probably you did not start with -gui parameter and GRASS used an old (tcl) setting from a previous run of GRASS on that machine. Try (later it will remember): grass64 -gui It is important that the version is free of bugs since it will be used for a workshop designed for beginners. I will appreciate your suggestions. Say minimized number of bugs - bugfree software hardly exists. GRASS 6.4.2 should be very good for teaching, I used in happily in a course recently. * I also installed GRASS 7 but there are issues with vector import and basic analyses. Please indicate which issues you found (otherwise we cannot fix them). Markus ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] Replace 0 by NULL in categorial raster map
Hi, Original-Nachricht Datum: Fri, 02 Mar 2012 20:22:30 +0100 Von: Moritz Lennert mlenn...@club.worldonline.be An: Johannes Radinger jradin...@gmx.at CC: grass-user@lists.osgeo.org Betreff: Re: [GRASS-user] Replace 0 by NULL in categorial raster map On 02/03/12 15:56, Johannes Radinger wrote: Just for my personal interest two questions: 1) What if I want to replace the category 0 with NULL (not the values 0) Category 0 = value 0. sorry I meant the category named (with label) 0. Raster values in GRASS are called categorie values. Or maybe I don't understand what you mean ? 2) What would be the correct module if I want to assign another category than NULL to certain values? Is hat module r.category? And how can that be used in pyhton (how are the rules supplied)? Eg. assign all values greater than 0 to 1 all other values NULL. If you have a integer values (CELL), then r.reclass. As I have a CELL raster I'd like to use r.reclass. In my special case I want to assign a Category labeled 1 to all values 1 and want to replace all 0 by NULL. (No other values present only 0 an 1). For the NULL-task I use r.null, and for the 1-task r.reclass. But how can I simply use a rule in when calling r.reclass in a python script??? grass.run_command(r.reclass, input = in, output = out, rules = ???) /Johannes If you have floating point values, generally r.recode is more appropriate (or just multiply your floating point map by the appropriate number to make it integer). Moritz -- NEU: FreePhone 3-fach-Flat mit kostenlosem Smartphone! Jetzt informieren: http://mobile.1und1.de/?ac=OM.PW.PW003K20328T7073a ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] Replace 0 by NULL in categorial raster map
On 05/03/12 15:56, Johannes Radinger wrote: Hi, Original-Nachricht Datum: Fri, 02 Mar 2012 20:22:30 +0100 Von: Moritz Lennertmlenn...@club.worldonline.be An: Johannes Radingerjradin...@gmx.at CC: grass-user@lists.osgeo.org Betreff: Re: [GRASS-user] Replace 0 by NULL in categorial raster map On 02/03/12 15:56, Johannes Radinger wrote: Just for my personal interest two questions: 1) What if I want to replace the category 0 with NULL (not the values 0) Category 0 = value 0. sorry I meant the category named (with label) 0. In that case you have to first use your label as a new category value. You can do that in r.mapcalc with the @ operator: r.mapcalc labelmap = @categorymap But how can I simply use a rule in when calling r.reclass in a python script??? grass.run_command(r.reclass, input = in, output = out, rules = ???) http://lists.osgeo.org/pipermail/grass-user/2011-November/062803.html ;-) To make it easier, here's an example with r.colors that you can transform for r.reclass: colorrules = '0 255:255:255 \n 1 165:42:42' grass.write_command('r.colors', map=carte_diff, rules='-', stdin=colorrules, quiet=True) Moritz ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] Re: Grass 6.4.2 on Ubuntu 11.10
Thank you for your input. Yes, I misspoke: I should have said that I was looking for relatively bug-free version of GRASS for Linux. I must also mention that the version of Linux installed on computers is beyond my control since it is a lab maintained by others. The version the computers are running is Ubuntu 10.10 32 bit ( https://launchpad.net/+help-soyuz/ppa-sources-list.html ). The archaic looking GRASS 6.4 came from ( https://launchpad.net/~ubuntugis/+archive/ubuntugis-unstable ): they reached this link from the following address ( http://grass.fbk.eu/download/software.php#g64x ). I realize that this is a mirror site in Europe and I think that this last link has some problematic versions of GRASS. I had Windows version (6.4) installed from this address for my class last semester and there were a lot of problems with mapcalc, gregion, and v.in.ogr. I will try finding the link for GRASS 7, which had problems so that it can be fixed. As for Linux GRASS 6.4 issue: I only typed GRASS in Terminal and GUI came up however, I will try what you suggested (grass64 -gui). Meanwhile, can anyone suggest a link for GRASS 6.4 for the version of Ubuntu I have to work with? Thanks, Bulent On Mar 5, 2012, at 2:32 PM, Markus Neteler wrote: On Mon, Mar 5, 2012 at 12:59 PM, barikan bulent.ari...@gmail.com wrote: Hi, As a follow-up on this issue, and as a person who never installed GRASS on Linux, I wanted to ask the Forum if there is a version of GRASS 6.x that will run on 32-bit system, which has a similar look to the most recent Unix interface. If you install a Linux distro package, it should come in either 64 or 32 bit depending on your system. Unfortunately some distros are quite lagging behind with the packaging. I installed 6.4.2 from the US Tier#2 web site of GRASS (the link gave the date of 2009) Can you please indicate the link? Anything which should be fixed? but I am sure that the interface looked archaic. Probably you did not start with -gui parameter and GRASS used an old (tcl) setting from a previous run of GRASS on that machine. Try (later it will remember): grass64 -gui It is important that the version is free of bugs since it will be used for a workshop designed for beginners. I will appreciate your suggestions. Say minimized number of bugs - bugfree software hardly exists. GRASS 6.4.2 should be very good for teaching, I used in happily in a course recently. * I also installed GRASS 7 but there are issues with vector import and basic analyses. Please indicate which issues you found (otherwise we cannot fix them). Markus ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user