[GRASS-user] Help on Define a color table
Greetings I haver searched among color tables and I didn't find any example like this: I want to define a color table where: all negative values are blue all zeros are green all positive values are red. Can anyone give me a tip on this? Thanks ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
[GRASS-user] Re: [GRASS-dev] Grass Python question: do not print warnings
Hi MArtin It worked I just have one final question: I pretend to apply your suggestion to proj_image = grass.read_command('g.proj', flags = 'jf', georef = src_file) to this. If I get a piece of text in proj_image (like the geoprojection information of the src_file, will the stderr=nulldev eliminate the output of this function? Thanks Franz ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
[GRASS-user] Where can I find some PPT presentations of GRASS
Greetings I need to do a presentation of GRASS GIS on a class and, I need some inspiration. Where can I find a GRASS GIS presentation (power Point) where i can get some ideas? Thanks Franz ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
[GRASS-user] Avoiding using specific-machine language in winGRASS
Greetings I have built a winGRASSS installer and, when I run it in a Windows defined Italian language (in this case) some words are automatically translated into Italian. How can I avoid this? I mean, to only use english? Franz ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] Reclass: Atributte a string
Hello Glynn Thanks for the reply. About using r.categories, can I apply it to a raster map and then export it as a normal raster? Thanks Franz On Fri, Nov 12, 2010 at 6:18 AM, Glynn Clements gl...@gclements.plus.comwrote: Franz Schiller wrote: I'm doing a reclass of rasters based on a rule file. In this file I'm doing a correspondence between values (1,2... 100) to other integer values. Is it possible to do this but instead to done this to Numbers do this to Strings just like 1 = Agriculture 2,3,4= Forest You can associate category labels with each category using r.categories. You can't reclass to a string. -- Glynn Clements gl...@gclements.plus.com ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
[GRASS-user] Reclass: Atributte a string
Greetings I'm doing a reclass of rasters based on a rule file. In this file I'm doing a correspondence between values (1,2... 100) to other integer values. Is it possible to do this but instead to done this to Numbers do this to Strings just like 1 = Agriculture 2,3,4= Forest ? Thanks Franz ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
[GRASS-user] Error while converting reclassed raster to vector
Greetings I'm converting a reclasses raster (produced with r.reclass) to a vector (areas, not lines neither points) but I got this weird error: ERROR: G_realloc: unable to allocate 24632000 bytes at areas.c:678 What does this mean? Thanks Franz ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] Error while converting reclassed raster to vector
Hi Martin I have done exacly that (the g.region stuff) I believe my region is not so big. Resolution:300 rows:5381 cols:4481 Any more tips on this? Franz On Tue, Nov 9, 2010 at 11:01 AM, Martin Landa landa.mar...@gmail.comwrote: Hi, 2010/11/9 Franz Schiller franzschiller1...@gmail.com: I'm converting a reclasses raster (produced with r.reclass) to a vector (areas, not lines neither points) but I got this weird error: ERROR: G_realloc: unable to allocate 24632000 bytes at areas.c:678 What does this mean? you are allocate 24Gb of memory, check out your computational region g.region rast=raster_map r.to.vect ... Martin -- Martin Landa landa.martin gmail.com * http://geo.fsv.cvut.cz/~landa ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
[GRASS-user] Error when running SVN6.4.0.1 from 23/10
Hi there I had in my OSGEO4W GRASSSVN6.4.0.1 from early September (after the release of 6.4.0) and it was running OK.I also was able to compile i.landsat.toar and .acca. I decided to upgrade with SVN from 23/10 and I compiled it was all OK. I opened and I realized that the GUI was changed (I wasn't expecting this)...But, ok.. Irunned my scripts and I got an error while running i.landsat.acca saying that, to run it, I needed to recompile GRASS. Than I decided to recompile acca I and I got this error: ERROR: Incompatible library version for module. You need to rebuild GRASS or untangle multiple installations. WHat does this mean? What do I have to do? This wasn't nice but I just wnat to fix this Thanks ~Franz ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] Error when running SVN6.4.0.1 from 23/10
I decided to upgrade with SVN from 23/10 and I compiled it was all OK. I opened and I realized that the GUI was changed (I wasn't expecting this)...But, some development could be expected ;-) You are absolutely right.. but it was a massive implementation as far as I can see :) ERROR: Incompatible library version for module. You need to rebuild GRASS or untangle multiple installations. WHat does this mean? What do I have to do? http://grass.osgeo.org/wiki/Error_incompatible_library_version_for_module Uhm in my case I'm buidling it in OSGEO4W without using SVN (using weekly snapshots). Do i just need to do? make distclean and then run the mswindows.sh that is distributed (as usual)? PS- About the r44109. Can I already download some files? (about the use of \ in file paths in Python-WinGRASS. Something that I really need Thanks Franz Martin -- Martin Landa landa.martin gmail.com * http://geo.fsv.cvut.cz/~landa ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
[GRASS-user] List of illegal characters for filenames
Hi I want to know if there is a GRASS GIS wiki with a list of illegal characters to be used in raster/vector names? Is there? Thanks Franz ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] Question about r.in.xyz
Hi Hamish that's simply a function of what's present in your input data. for floating point values it will just be the next highest integer beyond the maximum data value and can be ignored. Uhm but it has to do with the number of categores? It's used for Histogram only? see also the output of r.univar and the display histogram tool. Ok r.univar is ok (I guess). - and in the r.info v2 I get a command slightly different from the one I typed: r.in.xyz input=C:\Test_areas\graphbased\saidav2 \ output=v...@permanent method=mean type=FCELL fs= \ x=1 y=2 z=3 zscale=1.0 percent=100 Why? But it didn't change my dataset right? Franz ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
[GRASS-user] Question about r.in.xyz
Hello there I have a simple question related with r.in.xyz: When I import a ASCII file I do this: r.in.xyz input=C:\Test_areas\graphbased\filev2 output=v...@permanent But in the metadata I get the following: - number of categories: 255 = Why is this? I haven't set anything - and in the r.info v2 I get a command slightly different from the one I typed: r.in.xyz input=C:\Test_areas\graphbased\saidav2 output=v...@permanent method=mean type=FCELL fs= x=1 y=2 z=3 zscale=1.0 percent=100 Why? Sorry for bothering you with this but, this is relevant for my work Thanks Franz ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
[GRASS-user] Compiling a C function in Windows (using OSGEO4w)
Greetings I'm used to Ubuntu-GRASS compilation and use but now I need to compile a function (image processing) for winGRASS with OSGEO4W and I just want to confirm how to do it. in Ubuntu I do: cd general source folder sudo make -C module MODULE_TOPDIR=path to installed GRASS is it similar with msys? Thanks Franz ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
[GRASS-user] 3D display warnings in MSWIndows
Greetings I have installed a weekly snapshot from grass-6.4.svn_src_snapshot_2010_07_24 in Windows and everytime I start GRASS session (for instance with a raster display (d.rast)) I get a bunch of warnings: 3D view mode not available Reason: No module named grass6_wxnviz Note that the 3D view mode is currently not working under MS Windows (hopefully this will be fixed soon). Please keep an eye out for updated versions of GRASS. Vector digitizer not available Reason: No module named grass6_wxvdigit Note that the vector digitizer is currently not working under MS Windows (hopefully this will be fixed soon). Please keep an eye out for updated versions of GRASS. How can I turn this thing oFF? Thanks ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] Changing menudata.xml to include an direct processing
Hi Martin, it's not possible in GRASS6.4.0RC6. It still opens the module-panel and parameterizes it. has anyone ever tried to have a module that runs, from the menu, without opening module-panel? Thanks Best regards, Franz On Fri, Jun 18, 2010 at 1:35 PM, Martin Landa landa.mar...@gmail.comwrote: Hi, 2010/6/9 Franz Schiller franzschiller1...@gmail.com: Greetings I'm making some addaptions in menudata.xml in order to have a few functions available more rapidly (for me). I wanted to have a menu-item (I know how to add it) that runs directly without opening any panel. This would mean that all parameterization would be in the xml. Is this possible? yes, it's possible in 6.5+. In 6.4 it will be probably not working. menuitem labelInfo elevation map/label helpShow menudata of elevation raster map/help handlerOnMenuCmd/handler commandr.info map=elevation/command /menuitem Martin -- Martin Landa landa.martin gmail.com * http://gama.fsv.cvut.cz/~landa ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
[GRASS-user] Changing menudata.xml to include an direct processing
Greetings I'm making some addaptions in menudata.xml in order to have a few functions available more rapidly (for me). I wanted to have a menu-item (I know how to add it) that runs directly without opening any panel. This would mean that all parameterization would be in the xml. Is this possible? Thank you Franz ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
[GRASS-user] Changing menudata.xml to include an direct processing
Greetings I'm making some addaptions in menudata.xml in order to have a few functions available more rapidly (for me). I wanted to have a menu-item (I know how to add it) that runs directly without opening any panel. This would mean that all parameterization would be in the xml. Is this possible? ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
[GRASS-user] Vector convertion from boundaries/centroids to Points
Hi all I have a few boundaries with centroids and I want to extract a Point vector with boundaries position/and other attributes. How can I do this? Thanks Best regards Franz ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
[GRASS-user] Extract a pixel+neighbor pixels from a raster
Greetings I need to extract an exact pixel and its neighbor a create a raster only with those values. Is it possible (in an easy way? :D) THanks Franz ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
[GRASS-user] GRASS rasterformat supported by GDAL
Greetings As far as I know GDAL supports GRASS raster format. So, I wanted to get some information regarding a specific Raster using GDALINFO so I decided to test it with nc_spm_08/landsat dataset. But I really don't know in which sub-folder I shoudl run gdalinfo lsat7_2000_10 file. And another thing: I'm testing another tool that, it supposes to support GRASS but I need to send them a sample of GRASS raster file. Which file, from which sub-folder, I should send to them? Thanks Franz ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] Export/define region with Map Scale
Greetings Hamish yes. the ps.map module knows its output plots will be on paper, and it knows how big that piece of paper is. therefore it can correctly calculate and use the scale for PostScript (and so PDF format too) hardcopies. Ok. So I just need to define the scale-output . Seems reasonably and easy :) 2- Is it possible to set region using this map scale definition in order to have by default this setting? not directly, but you could write a script wrapping g.region and d.info which after calibration could keep you somewhat close to your desired scale. That's probably more trouble than it's worth though. yes. It seems to. It seems easier to define Scale only in the output Thanks Franz Hamish ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
[GRASS-user] Export/define region with Map Scale
Greetings At GIS Map Display window it's possible to define map scale in the bottom bar. I would like to know is: 1- Is it possible to export and plot maps (rasters/vectorials) with this map scale definition? 2- Is it possible to set region using this map scale definition in order to have by default this setting? Thanks Best Regfards Franz ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
[GRASS-user] GRASS scripts manual tab
Greetings all I've been browsing around the Scripts and, for example i.tasscap /i.oif, has a fine and nice manual tab associated with the function (with pictures, text bla bla bla). How can I do this manual pages to be associated with my own scripts? Best regards Franz ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] GRASS scripts manual tab
Thank Glynn But if I just write a script a put it in /Scripts/ I will have to create a HTML page and put it in $GISBASE/docs/html/scriptname.html in order to have a manual right? Regarding Built Scripts using GRASS makefiles, the structure would be something like this? MODULE_TOPDIR = ../.. PGM = SCRIPT NAME include $(MODULE_TOPDIR)/include/Make/Script.make default: script ? Thanks you all On Thu, Jan 28, 2010 at 1:19 PM, Glynn Clements gl...@gclements.plus.comwrote: Franz Schiller wrote: I've been browsing around the Scripts and, for example i.tasscap /i.oif, has a fine and nice manual tab associated with the function (with pictures, text bla bla bla). How can I do this manual pages to be associated with my own scripts? It should appear automatically if there is a manual page at $GISBASE/docs/html/scriptname.html If scripts are built using the GRASS Makefiles, the manual page will be generated by merging the description.html file with the module and option descriptions at the top of the script. -- Glynn Clements gl...@gclements.plus.com ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] Wiki with supported EO formats
Uhm. Didn't found those :S :S But, I suppose GRASS also supports IKONOS, KOMPSAT or Geo-Eye and others that are not listed there. Do anyone has a clue if it supports those satellite images? On Mon, Jan 18, 2010 at 10:33 PM, Hamish hamis...@yahoo.com wrote: Franz Schiller wrote: I've been browsing in GRASS wiki for a while searching for a list of supported instruments/satellites images in GRASS. Is there one or where can I get that information in order to submit it to the Wiki? ? http://grass.osgeo.org/wiki/Global_datasets http://gdal.org/formats_list.html ? Hamish ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
[GRASS-user] Wiki with supported EO formats
Greetings All I've been browsing in GRASS wiki for a while searching for a list of supported instruments/satellites images in GRASS. Is there one or where can I get that information in order to submit it to the Wiki? Thanks Franz ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
[GRASS-user] active window Definition
Hey all While I was reading G_window_rows definition at GRASS6 programmers manual, I found this definition: Number of rows in active window. What does active window means? Because I can read number of rows/columns from raster header. I'm not real sure of what is active window. Thanks Franz ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
[GRASS-user] Error while using Wxpython vector digitizer
Greetings and happy new year I want to create a vector file similar to another one that exists. To test this I decided to use brid...@permanent . After I do DISPLAY MAP in map display I select Digitize from Map Display toolbar. Then, wxDigitizer toolbar appears. (so far, so good) Then, I select New Vectorfile. A menu asking for output file name appears and I enter new_input and after I press OK an ERROR WINDOW appears stating: *Unable to initialize display driver of vector digitizer. see 'Command output' for details.* *Details: 'Non type' object has no attribute 'Open Map' ( ).* At command output window the following text appears: *New vector map new_in...@permanent created* *Traceback (most recent call last):* * File /usr/local/grass-6.4.0svn/etc/wxpython/gui_modules/v* *digit.py line 233, in __init__* * mapwindow)* * File /usr/local/grass-6.4.0svn/etc/wxpython/vdigit/grass6* *_wxdigit.py, line 334, in __init__* * this = _grass6_wxdigit.new_Digit(*args)* *TypeError: in method 'new_Digit', argument 2 of type * *'wxWindow'* * * Ok, could anyone explain me what is wrong and what can I do to fix it/solve it? Thank you Best wishes, Franz ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
[GRASS-user] i.ortho.photo
Greetings A few weeks ago I sent an email to users mailing list asking about i.ortho.photo and why it isn't available at WinGRASS and if it was available at GRASS in LINUX OS. Unfortunely when I run I got this error: Exception in thread Thread-19 Traceback (most recent call last): File /usr/lib64/python2.4/threading.py, linhe 442, in __bootstrap sel.run() File usr/local/grass6.4.0RC5/etc/wxpython/gui_modules/g cmd.py line 530, in run stderr=subprocess.PIPE) File /usr/lib64/python2.4/subprocess.py, line 550, in __init__ erread,errwrite) File /usr/lib64/python2.4/subprocess.py, line 993, in _execute_child raise child_exception TypeError: execv() arg 2 must contain only strings Traceback (most recent call last): File /usr/local/grass-6.4.0RC5/etc/wxpython/wxgui.py, line 1035, in OnXTerm p=gcmd.Command(cmdlist) File /usr/local/grass-6.4.0RC5/etc/wxpython/gui_modules g cmd.py, line 347, in __init__ Debug.msg (3, Command(): cmd='%s', wait=%s, returncode=%d, alive=%s % \ TypeError : sequence item 2: expected string, list found Question: Is this function available at GRASS 6.4 without problems or it might be some problem from my installation? Thanks Franz ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] Questions related with wxpython modules in Windows
Hello Martin and everyone I've just installed GRASS 6.4 on a LINUX machine, because I wanted to test Vector digitzer from in wxpython, and I get this warning at console: WARNING: Vector digitizer is not available (No module named grass6_wxvdigit). According to your previous message it should be working but neither digitizer option (in map display) and Start editing button (from layer manager) on selected vector map is working. Although, v.digit, from tcltk is still working Question: Am I the only one that can operate Vector_Digitizing_Tool in wxpython? * * *Thanks* * * *Best regards* * * *Franz* On Thu, Dec 3, 2009 at 10:31 AM, Martin Landa landa.mar...@gmail.comwrote: Hi, 2009/12/3 Franz Schiller franzschiller1...@gmail.com: [...] Are these options blocked only in Windows or also in Linux? Thanks for your help No, wxGUI vector digitizer should work on Linux and Mac OS X. Martin PS: Please keep discussion on ML. -- Martin Landa landa.martin gmail.com * http://gama.fsv.cvut.cz/~landa ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Fwd: [GRASS-user] Questions related with wxpython modules in Windows
Greetings all After a few emails with Martin let me summarize this (and now for all grass user community): - v.digit is working in TCLtk in windows - digitizer is working in Wxpython in Linux and OS Mac - digitizer is not working in wxpython in windows (the option to start editing is not avaiable) and when I select digitizer (in map window combobox) a error window appeared saying Unable to start vector digitizer. The vdigit python extension was not found or loaded properly, Swithcing back to 2D display Module. Details: No module named grass6_wxvdigit. But when I write v.digit in wxpyhon (in Windows) I get the tcltk vector digitizer. Just confirm me that this is an adequate sum of the digitizer situation for windows users Thanks Martin for your help Franz ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
[GRASS-user] Questions related with wxpython modules in Windows
Greetings All I'm reading http://grass.osgeo.org/wiki/WxPython-based_GUI_for_GRASS website and I got a few questions about digitizers implementation in GRASS: 1- i.ortho.photo == in my wxpython this option is in grey and I cannot run it. Is not working in WinGRASS? 2- Is it expected to have a vector digitizer and raster digitizer modules working in 6.4 version for Windows? Thanks Bye, Franz ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
[GRASS-user] NVIZ use in wxpython GRASS6.4
Good evening everyone Maybe this sound like a (another!) newbie question but when I try to visualize data in 3D, in wxpython Map Display, I get a window saying: - Unable to switch to 3D display mode - The NVIZ python extension was not found or loaded properly. - Switching back to 2d display mode. Details: No module named grass6_wxnviz But at File/NVIZ (requires tcl/tk) a menu is opened requesting elevation, raster colors, points and vectors and when I run the following is displayed in output command window: nviz elevation=elevation_sh...@permanent,elevat...@permanent (Wed Dec 02 15:04:49 2009) Command terminated (0 sec) But nothing happened... Question: Since it says that it requires tcl/tk shouldn't it open a tcl/tk window? Or am I wrong? Thank you very much in advance Best regards, Franz Shciller ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
[GRASS-user] getting pixel value by clicking
Hallo I'm a new user and I'm testing usability of GRASS 6.4. I'm using wxPython version. In GRASS GIS map display, using a Landsat image (provided as an example) I'm trying to know what is a pixel value by just clicking in it and I can't get that information. In the bottom bar I can see the Coordinates, nÂș cols/rows but not the pixel value. Is it possible to know? Thank you Franz Schiller ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user