[GRASS-user] import .flt grid into grass
Hello, A while back I posted a question about exporting .flt grids from grass. I am still struggling with this, but now I have another question regarding these files. I have 100¹s of these files (from a time series of data) that a colleague produced for me in arcmap. I have tried to import them into GRASS (as I do not use or like arc ;-) but have not been able to do. Any suggestions on how this might be possible? Or is it not? I searched for answers on the web and list but I only came to some old posts where the links to the conversations were no longer available. Any ideas will be very welcome. Thank you. Raphael. ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] WARNING: Unable to open raster map...format field in header file invalid
I ended up reloading the rasters. It took some time and processing but well, it's done. Thanks for the suggestions. Raphael. _ Sent from my mobile device > On 13 Sep 2015, at 5:00 am, Markus Netelerwrote: > > On Fri, Sep 11, 2015 at 10:00 AM, Moritz Lennert > wrote: > ... >> You can also try copying the raster file to a different name with g.copy. > > Since they are raster maps, you may also try to "regenerate" them with > r.mapcalc: > > g.region raster=brokenmap > r.mapcalc "freshmap = brokenmap" > > I suppose that r.mapcalc will create the missing files for you. Not > sure of course but worth a try. > > If that works, in a simple loop all raster maps could be redone. > >> Another option would be to make your location (or an extract) available >> somewhere so that we can have a look. > > Yes. > > Markus ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] WARNING: Unable to open raster map...format field in header file invalid
Hi Markus, Yes…not sure where the double @ comes from – it just displays this in the error message… I looked at the files in the cellhd folder (which I assume are the header files) and they seem fine: proj: 3 zone: 0 north: 9:59:50.99856S south: 43:38:32.993713S east: 153:38:23.977878E west: 112:54:41.983744E cols: 48874 rows: 40374 e-w resol: 0:00:03 n-s resol: 0:00:03 format: -1 compressed: 1 This is strange…any other hints will be appreciated. Thank you for your help. Raphael. From: Markus Neteler> Date: Friday, 11 September 2015 4:58 pm To: Raphael Rossel > Cc: GRASS user list > Subject: Re: [GRASS-user] WARNING: Unable to open raster map...format field in header file invalid On Sep 11, 2015 5:58 AM, > wrote: > > Hello, > > Recently, some grass files that were on my computer were accidentally > deleted - I recovered them from backup but it seems that maybe not all. > When I open grass and load up a raster with d.rast the map does not appear > and I get the following error message: > > WARNING: Raster map : format field in header file invalid This double @ is a bit fishy. Can you check where it comes from? > WARNING: Unable to open raster map > ERROR: Unable to open raster map ... The header file is a text file. Is it there? Markus ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] WARNING: Unable to open raster map...format field in header file invalid
Hi Maria, thank you. Yes, the rasters are there - they are listed with g.listŠ. Projection is all ok too. MmmmŠ. On 11/09/2015 4:27 pm, "Kozlova Maria"wrote: >Hi, Rafael, > >The first point: >Typing the comnand: >d.rast map= >you don't load the file. You just display the already imported map from >existing mapset >So be sure you files are imported to the current mapset >You may check this by the command: >d.list rast (maybe some differences in syntax depending on grass version) > >Second: check the projection in your workspace and imported files > >Hope it helps > > > > >-- >Best regards, > >Maria V. Kozlova > > /\ > Information System Lab. (ISysLab) > State Oceanographic Institute, > Kropotkinsky per., 6, > MOSCOW, 119034, > RUSSIA > > tel.+7 499 246 6448 > fax.+7 499 246 7288 > mailto: k...@yandex.ru > \/ > > >11.09.2015, 06:58, "raphael.viscarra-ros...@csiro.au" > : >> Hello, >> >> Recently, some grass files that were on my computer were accidentally >> deleted - I recovered them from backup but it seems that maybe not all. >> When I open grass and load up a raster with d.rast the map does not >>appear >> and I get the following error message: >> >> WARNING: Raster map : format field in header file invalid >> WARNING: Unable to open raster map >> ERROR: Unable to open raster map >> >> Does anyone know what might be missing? And if there is a fix to this? >> It seems to have happened to all of the rasters that I have in that >> project! >> >> Thank you - Raphael. >> >> ___ >> 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] WARNING: Unable to open raster map...format field in header file invalid
Hello Moritz, Thank you for the suggestions. r.info returns the following WARNING: can't read range file for [toc10 in toc] ERROR: Unable to read range file The frange file I found seems to be there but it is not readable. I am beginning to thing that whatever I deleted was not recovered and that I will need to read the data back into grassŠ What a pain! Thank you all for your suggestions. On 11/09/2015 6:00 pm, "Moritz Lennert"wrote: >On 11/09/15 09:27, raphael.viscarra-ros...@csiro.au wrote: >> Hi Markus, >> YesŠnot sure where the double @ comes from it just displays this in >> the error messageŠ >> I looked at the files in the cellhd folder (which I assume are the >> header files) and they seem fine: >> proj: 3 >> zone: 0 >> north: 9:59:50.99856S >> south: 43:38:32.993713S >> east: 153:38:23.977878E >> west: 112:54:41.983744E >> cols: 48874 >> rows: 40374 >> e-w resol: 0:00:03 >> n-s resol: 0:00:03 >> format: -1 >> compressed: 1 > >This looks fine. > >The error message you cited was: > > >> WARNING: Raster map : format field in header file >invalid > >but the format field in the header looks ok (-1 => FP map). > >What does r.info tell you on the file ? > >What about launching 'd.mon wx0' + 'd.rast toc10' from the command line ? > >You can also try copying the raster file to a different name with g.copy. > >Another option would be to make your location (or an extract) available >somewhere so that we can have a look. > >Moritz > ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
[GRASS-user] WARNING: Unable to open raster map...format field in header file invalid
Hello, Recently, some grass files that were on my computer were accidentally deleted - I recovered them from backup but it seems that maybe not all. When I open grass and load up a raster with d.rast the map does not appear and I get the following error message: WARNING: Raster map: format field in header file invalid WARNING: Unable to open raster map ERROR: Unable to open raster map Does anyone know what might be missing? And if there is a fix to this? It seems to have happened to all of the rasters that I have in that project! Thank you - Raphael. ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
[GRASS-user] grass7 will not display raster
Hello Hamish, I installed GRASS 7 (following Markus' hint to install GEOS frwk also). GRASS7 and the GUI start and all seems fine until I try to display a raster map – it does not display. I thought that it might be because the mapset was created in an older version of GRASS (6.4.2) but I started a new project and imported a raster into a new map set in G7 – still not displaying. I can draw a histogram of the raster data but I cannot view the map. When I start GRASS7, I get the message below, but I do not know what it means. I use a Mac. Will appreciate any help with this. Thank you. Launching wxpython GUI in the background, please wait... GRASS 7.0.0svn (rain):~ objc[15362]: Class TSSandboxPrefs is implemented in both /Library/Frameworks/TSLicense.framework/Versions/A/TSLicense and /Library/QuickTime/Flip4Mac WMV Import.component/Contents/MacOS/Flip4Mac WMV Import. One of the two will be used. Which one is undefined. objc[15362]: Class TSSandboxPrefs is implemented in both /Library/Frameworks/TSLicense.framework/Versions/A/TSLicense and /Library/QuickTime/Flip4Mac WMV Advanced.component/Contents/MacOS/Flip4Mac WMV Advanced. One of the two will be used. Which one is undefined. GRASS 7.0.0svn (rain):~ Raphael. From: Hamish hamish.webm...@gmail.commailto:hamish.webm...@gmail.com Date: Wednesday, 30 July 2014 5:09 pm To: Viscarra Rossel, Raphael (LW, Black Mountain) raphael.viscarra-ros...@csiro.aumailto:raphael.viscarra-ros...@csiro.au Cc: grass-user@lists.osgeo.orgmailto:grass-user@lists.osgeo.org grass-user@lists.osgeo.orgmailto:grass-user@lists.osgeo.org Subject: Re: [GRASS-user] create a common colour scale Raphael wrote: thank you for the response and the hints. no worries They are very useful as i cannot get GRASS7 to work. what's the trouble? maybe we can help. regards, Hamish ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] create a common colour scale
Hello Hamish, thank you for the response and the hints. They are very useful as i cannot get GRASS7 to work. Best wishes, Raphael. On 29 Jul 2014, at 2:52 pm, Hamish hamish.webm...@gmail.com wrote: Raphael wrote: I wonder if anyone knows how to create a common colour scale for different raster maps? I want to display all six maps on the same page with the single colour scale but I cannot find how to do this in GRASS. More specifically, I have six raster maps of rainfall for different time periods (each has a different range of values) and I would like to display them all with the same colour scale. The colour scale needs to be constructed using the min and max values of the set of six maps (and not just individual maps. For only 6 maps I wouldn't bother with scripting a mix,max variable, just run r.info in a loop and copy out the min,max by hand. for MAP in `g.mlist rast pattern=rain*` ; do r.info -r $MAP done then make a dummy map with r.mapcalc with overall min and max range. min=1.2345 max=9.8765 r.mapcalc color_map = if(row 10, $min, $max) and then apply it with: for MAP in `g.mlist rast pattern=rain*` ; do r.colors $MAP rast=color_map done Or run r.colors with the rules= option to set up some color rules by hand, then apply to all in a loop. But what I usually do these days in GRASS 6 is to use the r.stack addon module to temporarily consider all the maps together, which allows for the nice 'r.colors -e' equalized histogram color scaling. You can copy the color map to a small dummy raster with the r.colors rast= option then delete the stacked raster map if you want to save space, then apply it to all maps as in the Bourne shell loop above. regards, Hamish ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] problems with installation of grass 7
Hello Markus, Thank you for the response. That fixed that. Now, I have another message (below). The gui starts ok though and I can open a project and map set. However, when I add my raster map to display, it does not display at all. I can see the histogram of the data but not the map. Is the message I get is this – related to the problem I am having?: Launching wxpython GUI in the background, please wait... GRASS 7.0.0svn (Aus1km):~ objc[15362]: Class TSSandboxPrefs is implemented in both /Library/Frameworks/TSLicense.framework/Versions/A/TSLicense and /Library/QuickTime/Flip4Mac WMV Import.component/Contents/MacOS/Flip4Mac WMV Import. One of the two will be used. Which one is undefined. objc[15362]: Class TSSandboxPrefs is implemented in both /Library/Frameworks/TSLicense.framework/Versions/A/TSLicense and /Library/QuickTime/Flip4Mac WMV Advanced.component/Contents/MacOS/Flip4Mac WMV Advanced. One of the two will be used. Which one is undefined. GRASS 7.0.0svn (Aus1km):~ Thank you. Raphael. From: Markus Neteler nete...@osgeo.orgmailto:nete...@osgeo.org Date: Wednesday, 23 July 2014 4:19 pm To: Viscarra Rossel, Raphael (LW, Black Mountain) raphael.viscarra-ros...@csiro.aumailto:raphael.viscarra-ros...@csiro.au Cc: grass-user@lists.osgeo.orgmailto:grass-user@lists.osgeo.org grass-user@lists.osgeo.orgmailto:grass-user@lists.osgeo.org Subject: Re: [GRASS-user] problems with installation of grass 7 Hi, you need to install the GEOS framework as well or the version of it which had been used to prepare the GRASS binaries. Markus On Jul 23, 2014 7:01 AM, raphael.viscarra-ros...@csiro.aumailto:raphael.viscarra-ros...@csiro.au wrote: Hello, I downloaded grass 7.0(beta) from http://grass.osgeo.org/download/software/mac-osx/ and all the framework packages too. Installed them but I cannot get the grass7 guy to run. Errors are below. Launching wxpython GUI in the background, please wait... GRASS 7.0.0svn (Meander):~ GRASS 7.0.0svn (Meander):~ Unable to import pyGRASS: dlopen(/Applications/GRASS/GRASS-7.0.app/Contents/MacOS/lib/libgrass_raster.7.0.0svn.dylib, 10): Symbol not found: _GEOSDelaunayTriangulation Referenced from: /Library/Frameworks/SQLite3.framework/Versions/B/SQLite3 Expected in: /Library/Frameworks/GEOS.framework/Versions/3/GEOS in /Library/Frameworks/SQLite3.framework/Versions/B/SQLite3 Some functionality will be not accessible Traceback (most recent call last): File /Applications/GRASS/GRASS-7.0.app/Contents/MacOS/gui/wxpython/wxgui.py, line 34, in module from lmgr.frame import GMFrame File /Applications/GRASS/GRASS-7.0.app/Contents/MacOS/gui/wxpython/lmgr/frame.py, line 50, in module from lmgr.layertreeimport LayerTree, LMIcons File /Applications/GRASS/GRASS-7.0.app/Contents/MacOS/gui/wxpython/lmgr/layertree.py, line 37, in module from mapdisp.frameimport MapFrame File /Applications/GRASS/GRASS-7.0.app/Contents/MacOS/gui/wxpython/mapdisp/frame.py, line 35, in module from vdigit.toolbarsimport VDigitToolbar File /Applications/GRASS/GRASS-7.0.app/Contents/MacOS/gui/wxpython/vdigit/toolbars.py, line 30, in module from iclass.digit import IClassVDigit File /Applications/GRASS/GRASS-7.0.app/Contents/MacOS/gui/wxpython/iclass/digit.py, line 23, in module from vdigit.wxdisplay import DisplayDriver, TYPE_AREA ImportError: cannot import name TYPE_AREA I could not find resolution to this problem on the web. Has anyone come across this and overcome it? Thank you Raphael ___ grass-user mailing list grass-user@lists.osgeo.orgmailto: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] create a common colour scale
Thank you Daniel. I installed grass 7 but my rasters will not display. Strange. Will wait to see if others with macs have encountered this problem. Until then your solution sounds good and will give it a gob tomorrow. Best wishes, Raphael. Sent from my mobile device On 23 Jul 2014, at 10:04 pm, Daniel Victoria daniel.victo...@gmail.commailto:daniel.victo...@gmail.com wrote: Hi Raphael, I do recommend upgrading and going the way Anna mentioned, especially if you are dealing with a large number of maps. But if that is not an option here are the steps I'd take: 1) run r.infohttp://r.info -r on each map to get the min/max range 2) user r.colors with one of the maps and the rule option to set you color table to that map. Your rules might look something like this min_value red (max - min)/2 yellow max_value blue end -- by substituting the min / max in the above you get a colortable going from red to blue with yellow in the middle 3) copy the color table you just set to the other maps using r.color rast option. Take a look at r.color man page for more info http://grass.osgeo.org/grass64/manuals/r.colors.html Daniel On Tue, Jul 22, 2014 at 11:46 PM, raphael.viscarra-ros...@csiro.aumailto:raphael.viscarra-ros...@csiro.au wrote: Thank you Daniel and Anna for the suggestions. Daniel, I wonder how I might display the ‘common’ colour legend when visualising the maps? When the maps are visualised, the colour legend changes to the min max of the current map displayed. Anna, I use GRASS 6.4.2 – so I guess I should upgrade… Thank you again. Raphael. __ Raphael VISCARRA ROSSEL | Principal Research Scientist | CSIRO Land and Water | Bruce E. Butler Laboratory, Clunies Ross St, Black Mountain, Acton ACT 2601 | PO BOX 1666 Canberra ACT 2600 | t. +61 2 6246 5945tel:%2B61%202%206246%205945 | m. +61 467 769 364tel:%2B61%20467%20769%20364 | Chair International Union of Soil Science Working Group on Proximal Soil Sensing | www.researcherid.com/rid/B-4061-2011http://www.researcherid.com/rid/B-4061-2011 | scholar.google.com.au/citations?hl=enuser=KpJdvKEJhttp://scholar.google.com.au/citations?hl=enuser=KpJdvKEJ From: Anna Petrášová kratocha...@gmail.commailto:kratocha...@gmail.com Date: Wednesday, 23 July 2014 12:15 pm To: Daniel Victoria daniel.victo...@gmail.commailto:daniel.victo...@gmail.com Cc: Viscarra Rossel, Raphael (LW, Black Mountain) raphael.viscarra-ros...@csiro.aumailto:raphael.viscarra-ros...@csiro.au, grass grass-user@lists.osgeo.orgmailto:grass-user@lists.osgeo.org Subject: Re: [GRASS-user] create a common colour scale Hi, in case you use GRASS 7, r.colors accepts multiple maps or a file with the map names. So this should do it: r.colors map=precip1,precip2,precip3 color=precipitation Also, have a look at temporal modules (GRASS 7 only). You can register the series of maps as a dataset (t.create, t.register) and then you can easily get the min, max values for the entire series and there is also t.rast.colors. Anna On Tue, Jul 22, 2014 at 9:41 PM, Daniel Victoria daniel.victo...@gmail.commailto:daniel.victo...@gmail.com wrote: Hi Raphael, This is what I did some time ago when I had the same problem 1) Find out the overall minimun and maximum precipitation over all maps. 2) Use r.colors with the rules option to compose a colortable that cover my entire precip range. 3) Apply the same colortable to all maps 4) plot and be happy Hope it helps Daniel On Tue, Jul 22, 2014 at 10:01 PM, raphael.viscarra-ros...@csiro.aumailto:raphael.viscarra-ros...@csiro.au wrote: Hello I wonder if anyone knows how to create a common colour scale for different raster maps? I want to display all six maps on the same page with the single colour scale but I cannot find how to do this in GRASS. More specifically, I have six raster maps of rainfall for different time periods (each has a different range of values) and I would like to display them all with the same colour scale. The colour scale needs to be constructed using the min and max values of the set of six maps (and not just individual maps. Will appreciate any input please. Thank you, Raphael. __ Raphael VISCARRA ROSSEL | Principal Research Scientist | CSIRO Land and Water | Bruce E. Butler Laboratory, Clunies Ross St, Black Mountain, Acton ACT 2601 | PO BOX 1666 Canberra ACT 2600 | t. +61 2 6246 5945tel:%2B61%202%206246%205945 | m. +61 467 769 364tel:%2B61%20467%20769%20364 | Chair International Union of Soil Science Working Group on Proximal Soil Sensing | www.researcherid.com/rid/B-4061-2011http://www.researcherid.com/rid/B-4061-2011 | scholar.google.com.au/citations?hl=enuser=KpJdvKEJhttp://scholar.google.com.au/citations?hl=enuser=KpJdvKEJ ___ grass-user mailing list grass-user@lists.osgeo.orgmailto:grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] problems with installation of grass 7
Hello, I have installed GRASS 7 (thank you Markus for the hint to install GEOS frwk also) – GRASS7 and the GUI start and all seems fine until I try to display a raster map – it does not display. I thought that it might be because the mapset was created in an older version of GRASS (6.4.2) but I started a new project and imported a raster into a new mapset – still not displaying. I can draw a histogram of the raster data but I cannot view the map. I am use a Mac and I wonder if anyone using a Mac has encountered the same problem? And if they could overcome it? When I start GRASS7, I get the message below, but I do not know what it means. Could it be related to the display problem? Will appreciate any help with this. Thank you. Raphael. Launching wxpython GUI in the background, please wait... GRASS 7.0.0svn (Aus1km):~ objc[15362]: Class TSSandboxPrefs is implemented in both /Library/Frameworks/TSLicense.framework/Versions/A/TSLicense and /Library/QuickTime/Flip4Mac WMV Import.component/Contents/MacOS/Flip4Mac WMV Import. One of the two will be used. Which one is undefined. objc[15362]: Class TSSandboxPrefs is implemented in both /Library/Frameworks/TSLicense.framework/Versions/A/TSLicense and /Library/QuickTime/Flip4Mac WMV Advanced.component/Contents/MacOS/Flip4Mac WMV Advanced. One of the two will be used. Which one is undefined. GRASS 7.0.0svn (Aus1km):~ From: Markus Neteler nete...@osgeo.orgmailto:nete...@osgeo.org Date: Wednesday, 23 July 2014 4:19 pm To: Viscarra Rossel, Raphael (LW, Black Mountain) raphael.viscarra-ros...@csiro.aumailto:raphael.viscarra-ros...@csiro.au Cc: grass-user@lists.osgeo.orgmailto:grass-user@lists.osgeo.org grass-user@lists.osgeo.orgmailto:grass-user@lists.osgeo.org Subject: Re: [GRASS-user] problems with installation of grass 7 Hi, you need to install the GEOS framework as well or the version of it which had been used to prepare the GRASS binaries. Markus On Jul 23, 2014 7:01 AM, raphael.viscarra-ros...@csiro.aumailto:raphael.viscarra-ros...@csiro.au wrote: Hello, I downloaded grass 7.0(beta) from http://grass.osgeo.org/download/software/mac-osx/ and all the framework packages too. Installed them but I cannot get the grass7 guy to run. Errors are below. Launching wxpython GUI in the background, please wait... GRASS 7.0.0svn (Meander):~ GRASS 7.0.0svn (Meander):~ Unable to import pyGRASS: dlopen(/Applications/GRASS/GRASS-7.0.app/Contents/MacOS/lib/libgrass_raster.7.0.0svn.dylib, 10): Symbol not found: _GEOSDelaunayTriangulation Referenced from: /Library/Frameworks/SQLite3.framework/Versions/B/SQLite3 Expected in: /Library/Frameworks/GEOS.framework/Versions/3/GEOS in /Library/Frameworks/SQLite3.framework/Versions/B/SQLite3 Some functionality will be not accessible Traceback (most recent call last): File /Applications/GRASS/GRASS-7.0.app/Contents/MacOS/gui/wxpython/wxgui.py, line 34, in module from lmgr.frame import GMFrame File /Applications/GRASS/GRASS-7.0.app/Contents/MacOS/gui/wxpython/lmgr/frame.py, line 50, in module from lmgr.layertreeimport LayerTree, LMIcons File /Applications/GRASS/GRASS-7.0.app/Contents/MacOS/gui/wxpython/lmgr/layertree.py, line 37, in module from mapdisp.frameimport MapFrame File /Applications/GRASS/GRASS-7.0.app/Contents/MacOS/gui/wxpython/mapdisp/frame.py, line 35, in module from vdigit.toolbarsimport VDigitToolbar File /Applications/GRASS/GRASS-7.0.app/Contents/MacOS/gui/wxpython/vdigit/toolbars.py, line 30, in module from iclass.digit import IClassVDigit File /Applications/GRASS/GRASS-7.0.app/Contents/MacOS/gui/wxpython/iclass/digit.py, line 23, in module from vdigit.wxdisplay import DisplayDriver, TYPE_AREA ImportError: cannot import name TYPE_AREA I could not find resolution to this problem on the web. Has anyone come across this and overcome it? Thank you Raphael ___ grass-user mailing list grass-user@lists.osgeo.orgmailto: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
[GRASS-user] problems with installation of grass 7
Hello, I downloaded grass 7.0(beta) from http://grass.osgeo.org/download/software/mac-osx/ and all the framework packages too. Installed them but I cannot get the grass7 guy to run. Errors are below. Launching wxpython GUI in the background, please wait... GRASS 7.0.0svn (Meander):~ GRASS 7.0.0svn (Meander):~ Unable to import pyGRASS: dlopen(/Applications/GRASS/GRASS-7.0.app/Contents/MacOS/lib/libgrass_raster.7.0.0svn.dylib, 10): Symbol not found: _GEOSDelaunayTriangulation Referenced from: /Library/Frameworks/SQLite3.framework/Versions/B/SQLite3 Expected in: /Library/Frameworks/GEOS.framework/Versions/3/GEOS in /Library/Frameworks/SQLite3.framework/Versions/B/SQLite3 Some functionality will be not accessible Traceback (most recent call last): File /Applications/GRASS/GRASS-7.0.app/Contents/MacOS/gui/wxpython/wxgui.py, line 34, in module from lmgr.frame import GMFrame File /Applications/GRASS/GRASS-7.0.app/Contents/MacOS/gui/wxpython/lmgr/frame.py, line 50, in module from lmgr.layertreeimport LayerTree, LMIcons File /Applications/GRASS/GRASS-7.0.app/Contents/MacOS/gui/wxpython/lmgr/layertree.py, line 37, in module from mapdisp.frameimport MapFrame File /Applications/GRASS/GRASS-7.0.app/Contents/MacOS/gui/wxpython/mapdisp/frame.py, line 35, in module from vdigit.toolbarsimport VDigitToolbar File /Applications/GRASS/GRASS-7.0.app/Contents/MacOS/gui/wxpython/vdigit/toolbars.py, line 30, in module from iclass.digit import IClassVDigit File /Applications/GRASS/GRASS-7.0.app/Contents/MacOS/gui/wxpython/iclass/digit.py, line 23, in module from vdigit.wxdisplay import DisplayDriver, TYPE_AREA ImportError: cannot import name TYPE_AREA I could not find resolution to this problem on the web. Has anyone come across this and overcome it? Thank you Raphael ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
[GRASS-user] How to extract multiple raster values to points
Hello, I wonder if there is a way to extract/sample (eg using nearest neighbour) the values from multiple rasters that correspond to a set of to vector points into a table. I could find a way to do this for one raster, but not for multiple rasters. Has anyone done this in GRASS? Thank you, Raphael. ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] error message from GRASS 7 on mac os
Hello thank you for the responses and hints...however, I am confusedhow do I use CallAfter? I did install PILL yes, but no fix. R. Message: 1 Date: Sat, 17 Mar 2012 15:23:45 +0100 From: Anna Kratochv?lov? kratocha...@gmail.com Subject: Re: [GRASS-user] error message from GRASS 7 on mac os To: Markus Neteler nete...@osgeo.org Cc: grass-user@lists.osgeo.org, raphael.viscarra-ros...@csiro.au Message-ID: CAE0EDEo4=t1qco8strgbquqp7r00l4e+yj_r7qlnmanzk5t...@mail.gmail.com Content-Type: text/plain; charset=ISO-8859-1 On Sat, Mar 17, 2012 at 7:48 AM, Markus Neteler nete...@osgeo.org wrote: On Sat, Mar 17, 2012 at 6:04 AM, ?raphael.viscarra-ros...@csiro.au wrote: Hi, sorry for the omission of a descriptive subject line in my previous message. (Please also remove irrelevant pieces from the message, especially when receiving in digest mode, thanks) I have recently upgraded to GRASS 7 (from 6.4) in my mac running snow leopard 10.6.8. All frameworks updated. ?The software starts fine...and so far appears to work OK but for some error messages in the terminal window: Launching wxpython GUI in the background, please wait... GRASS 7.0.svn (proj1):~ Fri Mar 16 08:48:08 raw.local pythonw2.6[618] Error: CGContextRestoreGState: invalid context 0x0 Fri Mar 16 08:48:08 raw2-bu.local pythonw2.6[618] Error: CGContextRestoreGState: invalid context 0x0 Fri Mar 16 08:48:08 raw2-bu.local pythonw2.6[618] Error: CGContextRestoreGState: invalid context 0x0 Fri Mar 16 08:48:08 raw2-bu.local pythonw2.6[618] Error: CGContextRestoreGState: invalid context 0x0 Fri Mar 16 08:48:08 raw2-bu.local pythonw2.6[618] Error: CGContextRestoreGState: invalid context 0x0 Also, previews in cartographic composer that need python imaging library is not working - related to the above? I searched for other's experience with this and found some, but not solutions. Any help to fix this will be apprecaited. @devs: I wonder if the hint in http://trac.wxwidgets.org/ticket/4272 would help which suggests the usage of wx.CallAfter (http://wiki.wxpython.org/CallAfter) Hi, I added CallAfter as suggested (r51089), let's see if it helps. Anna Markus ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user -- Message: 2 Date: Sat, 17 Mar 2012 15:26:21 +0100 From: Anna Kratochv?lov? kratocha...@gmail.com Subject: Re: [GRASS-user] error message from GRASS 7 on mac os To: William Kyngesburye kyngch...@kyngchaos.com Cc: grass-user@lists.osgeo.org, raphael.viscarra-ros...@csiro.au raphael.viscarra-ros...@csiro.au Message-ID: CAE0EDEq7boPz5c2AcrL4L7Lm=ZLwYD_uUfMkZj=zaonboht...@mail.gmail.com Content-Type: text/plain; charset=ISO-8859-1 Hi, On Sat, Mar 17, 2012 at 3:06 PM, William Kyngesburye wokl...@kyngchaos.com wrote: On Mar 17, 2012, at 12:04 AM, raphael.viscarra-ros...@csiro.au raphael.viscarra-ros...@csiro.au wrote: Also, previews in cartographic composer that need python imaging library is not working - related to the above? Did you install PIL? ?It's a separate package to install (I have one on my Python page). ?I didn't realize PIL was used in the GUI now. ?I'll add it to the list of requirements. PIL is required because wxPython is not able to display PostScript file which is the product of underlying module ps.map. Anna - William Kyngesburye kyngchaos*at*kyngchaos*dot*com http://www.kyngchaos.com/ First Pogril: Why is life like sticking your head in a bucket filled with hyena offal? Second Pogril: I don't know. ?Why IS life like sticking your head in a bucket filled with hyena offal? First Pogril: I don't know either. ?Wretched, isn't it? -HitchHiker's Guide to the Galaxy ___ 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
[GRASS-user] error message from GRASS 7 on mac os
Hi, sorry for the omission of a descriptive subject line in my previous message. I have recently upgraded to GRASS 7 (from 6.4) in my mac running snow leopard 10.6.8. All frameworks updated. The software starts fine...and so far appears to work OK but for some error messages in the terminal window: Launching wxpython GUI in the background, please wait... GRASS 7.0.svn (proj1):~ Fri Mar 16 08:48:08 raw.local pythonw2.6[618] Error: CGContextRestoreGState: invalid context 0x0 Fri Mar 16 08:48:08 raw2-bu.local pythonw2.6[618] Error: CGContextRestoreGState: invalid context 0x0 Fri Mar 16 08:48:08 raw2-bu.local pythonw2.6[618] Error: CGContextRestoreGState: invalid context 0x0 Fri Mar 16 08:48:08 raw2-bu.local pythonw2.6[618] Error: CGContextRestoreGState: invalid context 0x0 Fri Mar 16 08:48:08 raw2-bu.local pythonw2.6[618] Error: CGContextRestoreGState: invalid context 0x0 Also, previews in cartographic composer that need python imaging library is not working - related to the above? I searched for other's experience with this and found some, but not solutions. Any help to fix this will be apprecaited. Thank you, Raphael. From: grass-user-boun...@lists.osgeo.org [grass-user-boun...@lists.osgeo.org] On Behalf Of grass-user-requ...@lists.osgeo.org [grass-user-requ...@lists.osgeo.org] Sent: Friday, 16 March 2012 4:15 PM To: grass-user@lists.osgeo.org Subject: grass-user Digest, Vol 71, Issue 32 Send grass-user mailing list submissions to grass-user@lists.osgeo.org To subscribe or unsubscribe via the World Wide Web, visit http://lists.osgeo.org/mailman/listinfo/grass-user or, via email, send a message with subject or body 'help' to grass-user-requ...@lists.osgeo.org You can reach the person managing the list at grass-user-ow...@lists.osgeo.org When replying, please edit your Subject line so it is more specific than Re: Contents of grass-user digest... Today's Topics: 1. Re: grass prompt when changing locations (Rich Shepard) 2. v.in.ogr from PostGIS - how to avoid primary key to become cat (Patrick S.) 3. Re: windows format for temporary file path (Richard Edmonds) 4. Re: windows format for temporary file path (Martin Landa) 5. Re: Strange r.slope.aspect output of Aster dem (leonidas) 6. Re: grass-user Digest, Vol 71, Issue 31 (raphael.viscarra-ros...@csiro.au) 7. Re: windows format for temporary file path (Glynn Clements) -- Message: 1 Date: Thu, 15 Mar 2012 09:29:03 -0700 (PDT) From: Rich Shepard rshep...@appl-ecosys.com Subject: Re: [GRASS-user] grass prompt when changing locations To: grass-us...@lists.osgeo.org grass-us...@lists.osgeo.org Message-ID: alpine.lnx.2.00.1203150928430.30...@salmo.appl-ecosys.com Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed On Thu, 15 Mar 2012, Tyler Smith wrote: Absolutely, I'm planning to do that shortly (and will announce it on this list). Probably this weekend - I just need to tidy it up a bit and open the bitbucket repository. Tyler, Thanks. Rich -- Message: 2 Date: Thu, 15 Mar 2012 18:38:55 +0100 From: Patrick S. patrick_...@gmx.ch Subject: [GRASS-user] v.in.ogr from PostGIS - how to avoid primary key to become cat To: grass mailing list grass-user@lists.osgeo.org Message-ID: 4f62292f.7070...@gmx.ch Content-Type: text/plain; charset=ISO-8859-1; format=flowed Dear list, sorry for writing several times in such a short time, but every start is a little hard When importing from PostGIS, v.in.ogr will remove the column with the primary key and use the objects as cat. Is there a way to avoid this behaviour, e.g a flag? I just copied the table now in SQL, and imported the copy, but I guess that is not really the best way to handle this. During my search I found a post to the mailing-list from 2008 on this issue, but no answer to that one. patrick -- Message: 3 Date: Fri, 16 Mar 2012 09:20:14 +1300 From: Richard Edmonds richard.edmo...@lasra.co.nz Subject: Re: [GRASS-user] windows format for temporary file path To: Glynn Clements gl...@gclements.plus.com Cc: grass-user@lists.osgeo.org Message-ID: 4f624efe.7060...@lasra.co.nz Content-Type: text/plain; charset=ISO-8859-1; format=flowed On 16/03/2012 3:13 a.m., Glynn Clements wrote: It's possible that it's being used where it isn't appropriate (i.e. where an absolute path is appropriate), but it's also possible that you're passing an absolute path where a simple filename (or even a map name) is actually required. Ah that makes sense, I was trying to use it to generate, then remove a temporary layer for use in the v.to.rast command. Apologies for not posting the command which generated the error. I have changed my bash script with the following which now generates only a name rather than a path and at least
[GRASS-user] Re: grass-user Digest, Vol 71, Issue 31
Hi, I have recently upgraded to GRASS 7 (from 6.4) in my mac running snow leopard 10.6.8. All frameworks updated. The software starts fine but for some error messages in the terminal window: Launching wxpython GUI in the background, please wait... GRASS 7.0.svn (proj1):~ Fri Mar 16 08:48:08 raw.local pythonw2.6[618] Error: CGContextRestoreGState: invalid context 0x0 Fri Mar 16 08:48:08 raw2-bu.local pythonw2.6[618] Error: CGContextRestoreGState: invalid context 0x0 Fri Mar 16 08:48:08 raw2-bu.local pythonw2.6[618] Error: CGContextRestoreGState: invalid context 0x0 Fri Mar 16 08:48:08 raw2-bu.local pythonw2.6[618] Error: CGContextRestoreGState: invalid context 0x0 Fri Mar 16 08:48:08 raw2-bu.local pythonw2.6[618] Error: CGContextRestoreGState: invalid context 0x0 I searched for other's experience with this and found some, but not solutions. Any thoughts on how to fix this will be apprecaited. Thank you, Raphael. On 16/03/12 3:00 AM, grass-user-requ...@lists.osgeo.orgmailto:grass-user-requ...@lists.osgeo.org grass-user-requ...@lists.osgeo.orgmailto:grass-user-requ...@lists.osgeo.org wrote: Send grass-user mailing list submissions to grass-user@lists.osgeo.orgmailto:grass-user@lists.osgeo.org To subscribe or unsubscribe via the World Wide Web, visit http://lists.osgeo.org/mailman/listinfo/grass-user or, via email, send a message with subject or body 'help' to grass-user-requ...@lists.osgeo.orgmailto:grass-user-requ...@lists.osgeo.org You can reach the person managing the list at grass-user-ow...@lists.osgeo.orgmailto:grass-user-ow...@lists.osgeo.org When replying, please edit your Subject line so it is more specific than Re: Contents of grass-user digest... Today's Topics: 1. Re: I do not understand how region/projection/coordinate system are intertwined (Glynn Clements) 2. Re: grass prompt when changing locations (Glynn Clements) 3. Re: Why Does Re-projection Increase Disk Space Used? [UPDATE] (Glynn Clements) 4. Re: Why Does Re-projection Increase Disk Space Used? [UPDATE] (Rich Shepard) 5. Re: grass prompt when changing locations (Tyler Smith) 6. Re: grass prompt when changing locations (Rich Shepard) 7. Re: grass prompt when changing locations (Tyler Smith) -- Message: 1 Date: Thu, 15 Mar 2012 14:22:01 + From: Glynn Clements gl...@gclements.plus.commailto:gl...@gclements.plus.com Subject: Re: [GRASS-user] I do not understand how region/projection/coordinate system are intertwined To: Fridtjof Schiefenh ? vel der_...@gmx.demailto:der_...@gmx.de Cc: grass-user@lists.osgeo.orgmailto:grass-user@lists.osgeo.org Message-ID: 20321.64265.761937.829...@cerise.gclements.plus.commailto:20321.64265.761937.829...@cerise.gclements.plus.com Content-Type: text/plain; charset=iso-8859-1 Fridtjof Schiefenh?vel wrote: it seems I can't solve this problem: -create a location with a mercator projection (i want to have degrees as the coordinate system) That's a contradiction. Only lat/lon locations use degrees as the coordinate system. A Mercator projection (whether normal Mercator, transverse, or oblique) has coordinates in distance units (usually either metres or feet). A Mercator projection /can't/ have coordinates in degrees, as coordinates have to be linear while Mercator has one coordinate vary non-linearly with the angle from the tangent circle. -- Glynn Clements gl...@gclements.plus.commailto:gl...@gclements.plus.com -- Message: 2 Date: Thu, 15 Mar 2012 14:40:34 + From: Glynn Clements gl...@gclements.plus.commailto:gl...@gclements.plus.com Subject: Re: [GRASS-user] grass prompt when changing locations To: Tyler Smith tyler.sm...@mail.mcgill.camailto:tyler.sm...@mail.mcgill.ca Cc: grass-us...@lists.osgeo.orgmailto:grass-us...@lists.osgeo.org Message-ID: 20321.65378.978043.32...@cerise.gclements.plus.commailto:20321.65378.978043.32...@cerise.gclements.plus.com Content-Type: text/plain; charset=us-ascii Tyler Smith wrote: my prompt looks like this: GRASS 6.4.1 (dem):~ The reference to the location '(dem)' stays, even after changing to another location. How do I make Grass update this? The new environment variables are stored in the $LOCATION_NAME/$MAPSET/.bashrc file (if you're using bash). But this file is not 'source'ed when changing mapsets. So you need to do: eval `g.gisenv` source $GISDBASE/$LOCATION_NAME/$MAPSET/.bashrc or manually reset the prompt: export PS1=GRASS-6.4.2 ($LOCATION_NAME) \w There is no .bashrc file in the mapset directory, so I take it I would have to set that up for each mapset in each location? It's created when you start a GRASS session. There's no point in creating it manually, as it will never be read, and will be overwritten the next time you start a GRASS session in that directory. Creating the .bashrc file in the mapset directory is something of a hack. The startup script sets HOME
[GRASS-user] xy to lat long
Hello i have imported the etopo dem (geotifff) into grass. It appears to be in XY and i would like to convert these to lat longs. Any hints on how to do this? Best wishes Raphael. ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user