[GRASS-user] Installing Add-ons on a Mac
Hello, as it is not posssible at the moment to install add-on modules on a mac via the g.extension (on GRASS GIS 6.5SVN and 7SVN) I'd like to ask you if there is any other way? Maybe you can explain me step by step how to install an add-on without g.extension on my mac. I'd like to install the r.stream.* packages and the r.fuzzy.system. Please help me as I need both packages for my work. Thank you Johannes ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
[GRASS-user] open map
Hello there! I'm a beginner in GRASS GIS 6.40RC4 and have problems to open a specific map from Central America. Therefore I first created a new location, where I need my map. Then I downloaded a map (in a zip format and I unzipped it. There was one folder with different types of data. Some with the ending 'bil' and some with 'hdr') from the internet on http://www.iscgm.org. As I tried to open it in this new location in GRASS it didn't work. What do I have to do to open a map? Is the generating of a new location necessary or can I just open a map without that? Thanks a lot and have a nice day. Bye! Anja_Eva -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/open-map-tp6192258p6192258.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] open map
Is it in the same projection as the location? Have you imported it into GRASS with r.in.gdal or v.in.ogr? ... On Mon, Mar 21, 2011 at 8:42 AM, Anja_Eva bad...@student.ethz.ch wrote: Hello there! I'm a beginner in GRASS GIS 6.40RC4 and have problems to open a specific map from Central America. Therefore I first created a new location, where I need my map. Then I downloaded a map (in a zip format and I unzipped it. There was one folder with different types of data. Some with the ending 'bil' and some with 'hdr') from the internet on http://www.iscgm.org. As I tried to open it in this new location in GRASS it didn't work. What do I have to do to open a map? Is the generating of a new location necessary or can I just open a map without that? Thanks a lot and have a nice day. Bye! Anja_Eva -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/open-map-tp6192258p6192258.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 -- Stephen Sefick | Auburn University | | Biological Sciences | | 331 Funchess Hall | | Auburn, Alabama | | 36849 | |___| | sas0...@auburn.edu | | http://www.auburn.edu/~sas0025 | |___| Let's not spend our time and resources thinking about things that are so little or so large that all they really do for us is puff us up and make us feel like gods. We are mammals, and have not exhausted the annoying little problems of being mammals. -K. Mullis A big computer, a complex algorithm and a long time does not equal science. -Robert Gentleman ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
[GRASS-user] Re: [Qgis-user] GRASS plugin
I'm willing to help maintain this plugin but as I'm not a coder it will be limited to keeping the modules' UI up to date. On Mon, 21 Mar 2011 14:40:09 +0100, Paolo Cavallini cavall...@faunalia.it wrote: Hi all. The GRASS plugin does not have a maintainer since long. We at Faunalia have done some smaller fixes, and financed, together with others, some more bugfixing, through[0]. This situation is not ideal: without regular maintenance, bugs creep in, and eventually major problems come out. Currently we have several serious issues on vectors in Windows. It is therefore important that someone fixes this, in order GRASS will remain fully usable from QGIS, on all operating systems. I'm therefore asking all the serious GRASS-QGIS users to step up and give a hand, with either developer time or money. You are free not to do it, but if you do it the future of this important tool will be bright and reliable. All the best. ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] Installing Add-ons on a Mac
Way back before g.extension, I wasn't satisified with GEM, and there wasn't much interest in fixing it up, so I added 'modbuild' to the Mac package. It's still there, though it's not obvious (it's breifly mentioned in one of the readmes). Find it in /Library/GRASS/6.4. Copy it to your home folder (to avoid permissions problems) and follow the instructions in the readme in that folder. One additional thing you need to do, discovered recently, is copy all the static *.a libraries from the GRASS application (/Applications/GRASS-6.4.app/Contents/MacOS/lib) to the modbuild/Modules/lib folder. Note that installation of the module is not automatic. On Mar 21, 2011, at 2:36 AM, Johannes Radinger wrote: Hello, as it is not posssible at the moment to install add-on modules on a mac via the g.extension (on GRASS GIS 6.5SVN and 7SVN) I'd like to ask you if there is any other way? Maybe you can explain me step by step how to install an add-on without g.extension on my mac. I'd like to install the r.stream.* packages and the r.fuzzy.system. Please help me as I need both packages for my work. Thank you Johannes ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user - William Kyngesburye kyngchaos*at*kyngchaos*dot*com http://www.kyngchaos.com/ I ache, therefore I am. Or in my case - I am, therefore I ache. - Marvin ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
[GRASS-user] Re: open map
Hey! Is it in the same projection as the location? not exactly... I need a location around Belize in Central America and put in some coordinates which should covering the whole country. But the map from the internet is bigger I think. So I marked 'extend location extents based on new dataset'. Isn't that enough? ;-) Have you imported it into GRASS with r.in.gdal or v.in.ogr? ... Yeah I tried it, but it said: Projection of dataset does not appear to match current location. Then I marked 'extend location extents based on new dataset' It said that the .bil format was not supported, so I tried with .hdr. Is this right? It said raster map created but how do I really display the map? Thanks Anja_Eva -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/open-map-tp6192258p6192403.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: open map
GUI layer manager. However if the projection doesn't match the current mapset be careful. This could signal problems. On Mon, Mar 21, 2011 at 9:19 AM, Anja_Eva bad...@student.ethz.ch wrote: Hey! Is it in the same projection as the location? not exactly... I need a location around Belize in Central America and put in some coordinates which should covering the whole country. But the map from the internet is bigger I think. So I marked 'extend location extents based on new dataset'. Isn't that enough? ;-) Have you imported it into GRASS with r.in.gdal or v.in.ogr? ... Yeah I tried it, but it said: Projection of dataset does not appear to match current location. Then I marked 'extend location extents based on new dataset' It said that the .bil format was not supported, so I tried with .hdr. Is this right? It said raster map created but how do I really display the map? Thanks Anja_Eva -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/open-map-tp6192258p6192403.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 -- Stephen Sefick | Auburn University | | Biological Sciences | | 331 Funchess Hall | | Auburn, Alabama | | 36849 | |___| | sas0...@auburn.edu | | http://www.auburn.edu/~sas0025 | |___| Let's not spend our time and resources thinking about things that are so little or so large that all they really do for us is puff us up and make us feel like gods. We are mammals, and have not exhausted the annoying little problems of being mammals. -K. Mullis A big computer, a complex algorithm and a long time does not equal science. -Robert Gentleman ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
[GRASS-user] Report about categories not present in the map
Hi I want to report number of categories in the map: r.stats -c input=newyork however how to force GRASS to show categories with do not occur on current map but are in the sequence. For example the above show me: 1 54402 2 31411 3 100790 4 45571 5 189 6 25079 9 4417 10 285 but I need: 1 54402 2 31411 3 100790 4 45571 5 189 6 25079 7 0 8 0 9 4417 10 285 thanks Jarek ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
[GRASS-user] Calling GRASS scripts from GRASS C modules
Greetings I'm building a segmentation and statistical image analysis module (in C) and I want to call a grass script. Is it possible inside a GRASS C module? If so, How can I do that? (or can anyone give me an online example= Thanks Best regards, Monica ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
[GRASS-user] Controlling processing/progress status bar with GRASS Scripts
Greetings I have a Grass Script and I want to display its progress/process in Progress/process status bar. Is there any GRASS python functionalities to change progress status bar? Thanks Helena ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] Controlling processing/progress status bar with GRASS Scripts
Hi, 2011/3/21 Helena Herrera helenaherrera1...@gmail.com: I have a Grass Script and I want to display its progress/process in Progress/process status bar. Is there any GRASS python functionalities to change progress status bar? try grass.percent() [1] Martin [1] http://grass.osgeo.org/programming7/namespacepython_1_1core.html#a14ce86fd0c5c18da189e6e3d0cc10501 -- 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] Re: [Qgis-user] GRASS plugin
Il giorno lun, 21/03/2011 alle 14.49 +0100, jr.morre...@enoreth.net ha scritto: I'm willing to help maintain this plugin but as I'm not a coder it will be limited to keeping the modules' UI up to date. Thanks Jean-Roc. Anyone willing to help for core issues? All the best. -- http://www.faunalia.it/pc ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] GRASS plugin
On Mon, Mar 21, 2011 at 2:40 PM, Paolo Cavallini cavall...@faunalia.it wrote: I'm therefore asking all the serious GRASS-QGIS users to step up and give a hand, with either developer time or money. You are free not to do it, but if you do it the future of this important tool will be bright and reliable. To take a look ar open reports, check here: http://trac.osgeo.org/qgis/query?status=assignedstatus=newstatus=reopenedgroup=componentcomponent=GRASSorder=priority Markus ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] Calling GRASS scripts from GRASS C modules
On Mon, Mar 21, 2011 at 5:03 PM, Monica Buescu monicabuescu1...@gmail.com wrote: Greetings I'm building a segmentation and statistical image analysis module (in C) and I want to call a grass script. Is it possible inside a GRASS C module? If so, How can I do that? (or can anyone give me an online example= You can use the popen() function. See for example: http://trac.osgeo.org/grass/browser/grass/branches/releasebranch_6_4/raster/r.statistics/o_median.c#L22 Markus ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] Re: r.proj -Segmentation fault
On Fri, Mar 18, 2011 at 1:31 PM, TimNorwey timmy_wey...@live.at wrote: OK ... the locations are in there too. Perfect, like this testing is easy. I can download the file, without any problems. But I will attach it here again and hope that you can download it: http://osgeo-org.1803224.n2.nabble.com/file/n6184337/ReProjectWGS84toUTM15.zip GRASS 6.4.1svn (utm15):~/grassdata r.proj in=tif_test out=dem30_tif location=reproj_tif_84 mapset=reproj_tif_84 method=bilinear resolution=30 Input Projection Parameters: +proj=longlat +no_defs +a=6378137 +rf=298.257223563 +towgs84=0,0,0,0,0,0,0 Input Unit Factor: 1 Output Projection Parameters: +proj=utm +no_defs +zone=15 +a=6378137 +rf=298.257222101 +towgs84=0,0,0,0,0,0,0 Output Unit Factor: 1 Input: Cols: 180 (180) Rows: 180 (180) North: 30.10 (30.10) South: 30.05 (30.05) West: -90.60 (-90.60) East: -90.55 (-90.55) EW-res: 0.000278 NS-res: 0.000278 Output: Cols: 165 (166) Rows: 188 (189) North: 3332400.00 (3332400.00) South: 3326760.00 (3326730.00) West: 731280.00 (731250.00) East: 736230.00 (736230.00) EW-res: 30.00 NS-res: 30.00 Allocating memory and reading input map... 100% Projecting... 100% r.proj complete. No problems here... the resulting map looks fine. My system: uname -a Linux north 2.6.33.7-desktop-2mnb #1 SMP Mon Sep 20 18:19:20 UTC 2010 x86_64 x86_64 x86_64 GNU/Linux Someone on Mac needs to try.. Or Tim, you need to run it through a debugger, see http://grass.osgeo.org/wiki/GRASS_Debugging#Using_GDB and post the full backtrace to a Trac ticket for analysis. PS: I'll send the reprojected map to you. Markus ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] GRASS plugin
Hello, IMHO the WPS (web processing service) approach to use GRASS GIS within QGIS might be a better solution? All the location, projection and mapset overhead would be avoided and the integration into QGIS would be more intuitive. Additionally using the WPS approach will also make Sextante, ArcGIS and other geo processing capabilities available in QGIS. Also cloud geo processing will be available using this approach. I would suggest to largely improve the existing WPS plugin from Horst Düster (and partially me) to make QGIS to one of the best WPS clients available. Here an example of the capabilities of the current WPS QGIS - GRASS GIS 7 approach: http://www.youtube.com/watch?v=zCnax9w1bCs As far as i know the grass libraries are not designed to be used in long running persistent applications, so there will always be problems and a large effort migrating new GRASS GIS versions in QGIS. A WPS client would be completely independent from changes in GRASS GIS API or modules and will work with many other WPS backends. Just my 2C Sören 2011/3/21 Paolo Cavallini cavall...@faunalia.it: Hi all. The GRASS plugin does not have a maintainer since long. We at Faunalia have done some smaller fixes, and financed, together with others, some more bugfixing, through[0]. This situation is not ideal: without regular maintenance, bugs creep in, and eventually major problems come out. Currently we have several serious issues on vectors in Windows. It is therefore important that someone fixes this, in order GRASS will remain fully usable from QGIS, on all operating systems. I'm therefore asking all the serious GRASS-QGIS users to step up and give a hand, with either developer time or money. You are free not to do it, but if you do it the future of this important tool will be bright and reliable. All the best. -- http://www.faunalia.it/pc [0]http://www.qgis.org/wiki/Bugs ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] interpolating images with coastal areas
Hi Bulent, Yes, I think it is better to treat the sea area as NULL data. One way to interpolate the DEM is to use a mask corresponding to the land area, another way is to replace the values of the sea with null data in the DEM. Best, Edgar Pimiento From: Bulent Arikan bulent.ari...@gmail.com To: Edgar Pimiento e_pimie...@yahoo.com Sent: Mon, March 21, 2011 9:20:11 AM Subject: Re: [GRASS-user] interpolating images with coastal areas Hi Edgar, Thank you for the explanation and suggestion. If I understand you correctly, you suggest converting elevation values zero and below to NULL and use that 30m resolution imagery for interpolation. So, this map should be used as MASK. I hope I got it right? Best, Bulent On Sun, Mar 20, 2011 at 3:14 PM, Edgar Pimiento e_pimie...@yahoo.com wrote: Hi, The problem is probably the data for the sea of the ASTER images. In some cases I have seen negative values for sea areas and extremely high values, errors also, in mountainous areas. For interpolating I think it is better to treat the sea areas as no data values. Use the land area as mask in the interpolation. You can also check the ASTER elevation data comparing with the corrected version of 90-m SRTM from http://srtm.csi.cgiar.org/ Best, Edgar Pimiento Chamorro e_pimie...@yahoo.com From: Bulent Arikan bulent.ari...@gmail.com To: grass-user@lists.osgeo.org Sent: Mon, March 21, 2011 3:03:35 AM Subject: [GRASS-user] interpolating images with coastal areas Dear List, I am working on interpolating 30m ASTER DEMs to 10m resolution. I am using GRASS 6.4.1 svn on Mac OS 10.6.6. Since the imagery covers a large area, I crop the 30m DEM into individual tiles in order to make the project more manageable. The interpolation process (using v.surf.rst) has been working fine and the values in resultant 10m DEMs have been quite accurate, especially for inlands. However, I have some problems with interpolating tiles where coastline is present. In these tiles, the range of values in 10m DEMs go below zero. In some cases I have values such as -21 meters whereas the original –30m– tiles have only zero. Obviously, I am concerned about the accuracy of the end product. Do I get high negative values because of the cells with zero value? Should I zoom further in and avoid having zero-value cells? (which is a problem with coastlines where they are not straight) Does any one have a suggestion about how to deal with this problem? * I sample the original imagery at 50% in r.random, * I use the default parameter values in v.surf.rst (tension= 40.) and use the 30m DEM as MASKMAP, * I align region to resolution, using g.region. Thanks! -- BÜLENT -- BÜLENT ARIKAN, PhD Postdoctoral Scholar Center for Social Dynamics and Complexity School of Human Evolution and Social Change Arizona State University Tempe - AZ 85287-2402 ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] Calling GRASS scripts from GRASS C modules
Markus Neteler wrote: I'm building a segmentation and statistical image analysis module (in C) and I want to call a grass script. Is it possible inside a GRASS C module? If so, How can I do that? (or can anyone give me an online example= You can use the popen() function. See for example: http://trac.osgeo.org/grass/browser/grass/branches/releasebranch_6_4/raster/r.statistics/o_median.c#L22 Note that code which uses system() or popen() tends to be error-prone, particularly on Windows. I would strongly discourage anyone from using either system() or popen() in new code. Significant effort went into eliminating the use of these functions from 7.0, with good reason. G_spawn() and G_spawn_ex() provide a more robust interface, but require more code in the case where you need to communicate with the child process via a pipe (see lib/db/dbmi_client/start.c for an example). 7.0 has G_popen_{read,write}, which do most of the work for you, but these haven't been back-ported to 6.x yet. Alternatively, you can use a temporary file rather than a pipe for communicating with the child process. -- Glynn Clements gl...@gclements.plus.com ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user