[GRASS-user] Re: [GRASS-dev] Seeking old version grass_src421v21.tar.gz
Tom, the 4.2 version we have: http://grass.osgeo.org/grass42/source/ That's the last CERL; my 4.2.1 was published later... The PDFs could be interesting! Thanks Markus On Tue, May 5, 2009 at 2:00 AM, Thomas Adams thomas.ad...@noaa.gov wrote: Markus, I have grass42src.tar.Z; will that do? I have the pdf manuals from that time, too… Tom Markus Neteler wrote: Hi, for historical reasons (think copyright, nostalgia, ...) I am seeking the good old GRASS 4.2.1 source code which I unfortunately removed in 2002 due to disk space limitations. Anyone having a copy? Any 4.2.1 subversion is fine. thanks Markus ___ grass-dev mailing list grass-...@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-dev -- Thomas E Adams National Weather Service Ohio River Forecast Center 1901 South State Route 134 Wilmington, OH 45177 EMAIL: thomas.ad...@noaa.gov VOICE: 937-383-0528 FAX: 937-383-0033 ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] v.whar.vect does not respond
Nikos wrote: + exec v.distance from=burned_area_sample_1_points to=sample_1_grid column=gridcell to_column=cat upload=to_attr dmax=0.0 from_layer=1 to_layer=1 100% 100% 100% ## Here it waits... waits... maybe just wait? I am _sure_ it did not take too long some last time when I tried this with the same map(s) ## Hamish: ok so v.distance is taking a very long time. can you try with v.what.vect --vebose ? that should give some more messages from v.distance instead of just 100% 100% 100%. # almost the same as above # executing the script with -x v.what.vect test_1 col=gridcell qvect=sample_1_grid qcol=cat --v + [ -z /usr/local/grass-6.5.svn ] + [ test_1 != @ARGS_PARSED@ ] + exec g.parser /usr/local/grass-6.5.svn/scripts/v.what.vect test_1 col=gridcell qvect=sample_1_grid qcol=cat --v + [ -z /usr/local/grass-6.5.svn ] + [ @ARGS_PARSED@ != @ARGS_PARSED@ ] + exec v.distance from=test_1 to=sample_1_grid column=gridcell to_column=cat upload=to_attr dmax=0.0 from_layer=1 to_layer=1 Finding nearest lines... 100% 100% Finding nearest areas... 100% # not much... also, you can turn on the debug messages: g.gisenv set=DEBUG=1 ok, DEBUG=2 did the trick and shows lots of update messages: ---%--- D2/2: SQL: update test_1 set gridcell = 1276 where cat = 194 ... D2/2: SQL: update test_1 set gridcell = 1277 where cat = 205 D2/2: SQL: update test_1 set gridcell = 1277 where cat = 206 D2/2: SQL: update test_1 set gridcell = 1277 where cat = 207 ---%--- Seems to work fine but slow(er)!? # off-topic: DEBUG=3 creates some impressive visual effect where, at some points, you see the output scrolling from top to bottom :-) # Thanks, Nikos I see one in v.distance G_debug(3, SQL: %s, db_get_string(stmt)); maybe more DB troubles? ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] passing output from GRASS to R.
Thanks for both, Markus and Roger Bivand. Cheers milton 2009/5/5 Roger Bivand roger.biv...@nhh.no From spgrass6 0.6-*, and after installing the R XML package (off CRAN but installs automatically from Prof. Ripley's extra Windows repository if you are on Windows), you can use: rasterfiles - execGRASS(g.mlist, parameters=list(type=rast, pattern=*ele*), intern=TRUE) (here from spearfish, which has *ele* rasters in PERMANENT). Do: parseGRASS(g.mlist) to see the flags and parameters. As Markus pointed out, intern=TRUE is the key argument, to get the output of the GRASS command back into the R workspace. There are issues with regard to quoting between platforms for a few GRASS commands, but most things now work. I tried this on MSYS Windows native 6.4.0 RC4. Roger Milton Cezar Ribeiro wrote: Hi Markus, Under windows I needed only small changes rasterfiles - read.table(textConnection(system(g.mlist.exe rast pattern=*output*, intern = TRUE))) Thanks a lot, milton 2009/5/4 Markus Neteler nete...@osgeo.org On Mon, May 4, 2009 at 8:57 PM, Milton Cezar Ribeiro miltinho.astrona...@gmail.com wrote: Dear all, I am running R inside GRASS 6.4 and I can see a list of all my raster files when I type (from the R session) system(g.list rast) But I would like to pass the list of rasters to a vector object in R. I tryed innocently this, but not worked: my.rast.list-system(g.list rast) Try this: rasterfiles - read.table(textConnection(system(g.mlist rast,intern = TRUE))) str(rasterfiles) 'data.frame': 42 obs. of 1 variable: $ V1: Factor w/ 42 levels aspect,basin_50K,..: 31 1 2 3 4 5 6 7 8 9 ... rasterfiles V1 1myfacility 2aspect 3 basin_50K 4 boundary_county_500m ... I also would like to define a pattern of raster names to the g.list command, like only return that raster names that have _output_ on the name. So: rasterfiles - read.table(textConnection(system(g.mlist rast pattern=*_output_*,intern = TRUE))) str(rasterfiles) By the way, I am running GRASS inside MSYS, under windows. Please report if above works (as it does on Linux). Markus ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user - Roger Bivand Economic Geography Section Department of Economics Norwegian School of Economics and Business Administration Helleveien 30 N-5045 Bergen, Norway -- View this message in context: http://n2.nabble.com/passing-output-from-GRASS-to-R.-tp2788835p2791576.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 ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] Creating LiDAR first pulse vector map
Jack, usually lidar data I have seen so far, have also information on pulse other then X Y Z Intensity Maybe you could check if you have couples of points with really close coordinates and different Z. If it is, I guess your file is listing one point for each returned pulse... and in this case you should make some scripting to extract the first and last pulse... Maxi Jack Lonsdale wrote: I am still fighting with the LiDAR tools, but I feel like I am close... I thought I had sorted the v.lidar.growing problem as it appears to run when using sqlite backend. But the resulting output was only a small portion of the output? For v.lidar.growing, is there any special way to create the first pulse vector map? I feel this may be where my problem comes from. (Currently I was just using the raw data from the lidar text file which includes X Y Z and intensity readings for all points.) Thanks -- Dr. Eng. Massimiliano Cannata Responsabile Area Geomatica Istituto Scienze della Terra Scuola Universitaria Professionale della Svizzera Italiana Via Trevano, c.p. 72 CH-6952 Canobbio-Lugano Tel: +41 (0)58 666 62 14 Fax +41 (0)58 666 62 09 ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] python commands on grass.
Hi, 2009/5/5 Milton Cezar Ribeiro miltinho.astrona...@gmail.com: is there a way of I know the commands available on python grass library? grass.py is located in lib/python e.g. https://svn.osgeo.org/grass/grass/trunk/lib/python/ It's best documentation :-) Meanwhile, I can run g.list with the command bellow, but I can't deal with the name of each of my raster map. In fact I receive the same output as in gis.m console, but I would like only receive a list of maps as output. rasterfiles = grass.read_command('g.list',type='rast') use grass.mlist_grouped(type = 'rast') 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
Re: [GRASS-user] python commands on grass.
Try using help() from within the python shell. python import grass help(grass) -Jamie On Tue, May 5, 2009 at 11:52 AM, Milton Cezar Ribeiro miltinho.astrona...@gmail.com wrote: Dear all, is there a way of I know the commands available on python grass library? Checking the codes available at https://svn.osgeo.org/grass/grass/trunk/script (thanks Martin) I saw the following commands: grass.read_command grass.parse_key_val grass.run_command grass.message grass.fatal By the way, how can I know the methods / parameters for each command? Meanwhile, I can run g.list with the command bellow, but I can't deal with the name of each of my raster map. In fact I receive the same output as in gis.m console, but I would like only receive a list of maps as output. rasterfiles = grass.read_command('g.list',type='rast') Cheers milton ___ 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] Re: [GRASS-dev] Seeking old version
Markus, for what its worth, I have a CDROM snapshot (?) dating from 1998, featuring: --- So, what is new in GRASS 4.2.1 (22. September 1998) and what is the difference to BAYLOR´s version? The major point is a lot of bugfixing. There is still no floating point in raster files, but we all hope for GRASS 5.0 in summer 1998. The difference between my package and the original Baylors GRASS 4.2 are - elimination of errors in several modules (read history file) - changed r.le 2.1 to version 2.2 - cleaning the package structure - addition of lots of modules (see below in src.alpha). - tcltkgrass - the new graphical user interface is added -- Does this help ? Snailmail ? Those were the days, Peter -- Dr. Peter Löwe peter.lo...@gmx.de Neu: GMX FreeDSL Komplettanschluss mit DSL 6.000 Flatrate + Telefonanschluss für nur 17,95 Euro/mtl.!* http://dslspecial.gmx.de/freedsl-surfflat/?ac=OM.AD.PD003K11308T4569a ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] Re: [GRASS-dev] Seeking old version
Peter, wow, excellent! I'll contact you offlist for the transfer. thanks a lot for searching. Markus PS: Got GRASS 3.0 offered on a 9mm/9inch tape. Does anyone in US have such a device still working? On Tue, May 5, 2009 at 11:00 PM, peter.lo...@gmx.de wrote: Markus, for what its worth, I have a CDROM snapshot (?) dating from 1998, featuring: --- So, what is new in GRASS 4.2.1 (22. September 1998) and what is the difference to BAYLOR´s version? The major point is a lot of bugfixing. There is still no floating point in raster files, but we all hope for GRASS 5.0 in summer 1998. The difference between my package and the original Baylors GRASS 4.2 are - elimination of errors in several modules (read history file) - changed r.le 2.1 to version 2.2 - cleaning the package structure - addition of lots of modules (see below in src.alpha). - tcltkgrass - the new graphical user interface is added -- Does this help ? Snailmail ? Those were the days, Peter -- Dr. Peter Löwe peter.lo...@gmx.de Neu: GMX FreeDSL Komplettanschluss mit DSL 6.000 Flatrate + Telefonanschluss für nur 17,95 Euro/mtl.!* http://dslspecial.gmx.de/freedsl-surfflat/?ac=OM.AD.PD003K11308T4569a ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user