#GRASS IRC Log - 2009-11-29

For logs after Feb 3, 2007, all times are GMT-8. Prior logs are GMT-9.
Back to Logs
01:05:22 CIA-64: neteler * r39852 /grass/branches/releasebranch_6_4/scripts/v.what.vect/ ( description.html v.what.vect ): works also with polygon maps
01:06:07 CIA-64: neteler * r39853 /grass/branches/develbranch_6/scripts/v.what.vect/ ( description.html v.what.vect ): works also with polygon maps
01:07:16 sigq: grassfeed: Changeset [39853]: works also with polygon maps <https://trac.osgeo.org/grass/changeset/39853> || Changeset [39852]: works also with polygon maps <https://trac.osgeo.org/grass/changeset/39852>
01:07:20 CIA-64: neteler * r39854 /grass/trunk/scripts/v.what.vect/ ( v.what.vect.html v.what.vect.py ): works also with polygon maps
01:08:53 sigq: grassfeed: Changeset [39854]: works also with polygon maps <https://trac.osgeo.org/grass/changeset/39854>
10:03:34 lee54: is anyone on willing to help me with grass + modis sst? i can handle the gdal part, but am lost with the grass portion, as i'm completely new to grass = )
10:15:35 lee54: attach irc://irc.freenode.net/#gdal
10:58:42 lee54: can anyone help with grass scripting please = )
11:14:17 lee54: dudes seriously, this is driving me nuts! = ) lol.. i'll gladly order something from amazon for anyone willing to help and have it shipped to you!
12:49:46 lee54: anyone online = )
12:51:18 epifanio: lee54: can you point hus to the "grass portion" you refers to ?
12:51:42 lee54: sure note: http://grass.osgeo.org/wiki/MODIS#Set_colors
12:51:48 sigq: Title: MODIS - GRASS-Wiki ( at grass.osgeo.org )
12:52:08 lee54: key is the image is already converted to geotiff using gdal and i just need to assign the temps to the values in the geotiff like he has there
12:52:48 lee54: for example the image i tested in gdal without using grass is here: http://buddy.homelinux.com/wn/test/200911291433.png it will take a really long time to load since it is on my home workstation, but note how the color ramp is totally off
12:53:49 lee54: the only thing i need to do is init the "processing" portion of his page above with grass using the text only version of grass via command line for automation.. so far in using test scripts i get either invalid location or command not found due to improper environment variables i guess
12:59:12 lee54: any thoughts?
13:09:59 epifanio: lee54: so the problem is to create the location ?
13:11:14 lee54: heck of it is i'm not really sure as i've never used grass, but i made a sample script based off the wiki it seems the text version of grass must be initiated.. basicaly just need to load the geotiff process the colors and spit it out
13:11:34 lee54: grass version is 62 if that helps, latest available on debian
13:11:55 lee54: i'm trying to do the math in gdal via gdaldem at the moment but is not working
13:12:21 lee54: i woulnd't think it would be that rough to do a simple batch process via grass, but it seems to be lol
13:12:34 lee54: <~~ noob
13:17:31 epifanio: hum, sorry enfglesgh is not my native language :-/, have you tried the wiki instruction and them works from command line but if you used the same instruction inside a shell scripts them do not works .. is this right?
13:19:00 epifanio: or : have you problems also using the wiki command-line instructions from a grass shell ( without any scripts ) ?
13:19:05 lee54: i read the shell scripts that said to first export the script then run grass from the command line using the data directory i.e. grass62 /location/of/data within which i had the geotiff and i received bad location
13:19:33 lee54: i just found another batch script by andrew long am going to try now
13:20:06 lee54: fyi http://wgbis.ces.iisc.ernet.in/grass/faq/batch-grass6.sh
13:20:13 lee54: or guess is r. nuske
13:20:18 epifanio: try to start grass and create a location using the wizard, just chose createlocation from epsg coide and use the 4326
13:20:20 epifanio: ?
13:20:29 lee54: needs to all be command line
13:20:37 lee54: so can automate via cron etc
13:20:55 epifanio: you need to create that location only the fist time
13:21:02 epifanio: *first
13:21:14 lee54: oh
13:21:21 lee54: well that is likely the problem then lol
13:21:34 lee54: well the location is world since it is modis sst
13:21:37 epifanio: you can save it in a zip file ( it is just few kbyte ) and re-use it whent it needs
13:21:52 lee54: lemme startx on other box moment
13:23:08 lee54: ok ipficanio in case i haven't said it yet thank you for helping me thus far.. when i open grass is it possible to open the geotiff / start with or do i need to do something else
13:28:22 lee54: looks like the issue might be in debian as i get *proj exited abnormally
13:30:45 epifanio: lee54: just to test your installation, try to create a location using the gui wizard and select create form epsg 4326
13:31:02 lee54: yah just did that with the nc test data, loaded fine
13:31:42 epifanio: ok, so create a new location epsg:4326 and use "r.in.gdal" to load in your gtiff file
13:31:46 lee54: now just need to crate a new project
13:35:34 epifanio: to create a new location you need to restart grass form the shell, i don't know if you need an old debian distro for some reason, but i suggest you to upgrade your debian machine, on sid there is a debian.gis repository that has grass64
13:36:35 lee54: this box has latest debian distro
13:36:49 lee54: restarting grass now
13:37:03 lee54: quit
13:38:45 epifanio: well maybe it is a stable lenny distro ? here on debian sid i've grass64 in the repository
13:40:01 lee54: bad thying about my debina box is it doesn't work with input director so i have to have sep keyboard and mouse and my desk isn't very big lol
13:40:28 lee54: is lenny stable
14:00:59 lee54: well i import the thing ok then can't find it lol
14:04:54 epifanio: in the r.in.gdal instruction you need to use the flag : -o -e ( ovverride projection settings and extend location to the dataset )
14:05:49 epifanio: then to see if your map is imported do : g.region rast=map_name -ap ; d.mon x0 ; d.rast map_name
14:09:32 lee54: ok just did both of those without errors, so where's the mzap LOL ( if you remember the old wendy's commercial 'where's the beef' lol
14:10:13 lee54: oh i see... the ";" returns "is not a valid option d.mon not a valid option etc
14:10:43 epifanio: are single commands, using ; you can type oll in one line
14:11:04 epifanio: just change the map name
14:11:36 lee54: yah typed exacly for each ";" go not a valid flag
14:12:33 lee54: tried just the g.regoin rast=map_name said not found when output wast specified exactly as input
14:13:06 epifanio: map_name sgoul'd be the name you gived to tour map
14:13:19 epifanio: *shoul'd be
14:13:39 epifanio: the same name you used in "r.in.gdal"
14:14:14 lee54: yah i saved the inport text and doublechecked... output=modis
14:14:51 epifanio: so you need to run : g.region rast=modis -ap
14:14:57 epifanio: what it print out ?
14:15:33 lee54: yah not found
14:15:43 lee54: i.e. 'raster map <modis> not found
14:16:22 epifanio: well .. so you haven named it "modis" or r.in.gdal doesn't import it
14:16:24 epifanio: try :
14:16:28 epifanio: g.list rast
14:16:36 epifanio: and see what it print out
14:16:42 lee54: just restarted grass and noticed it created the directories
14:17:07 lee54: so going to import again
14:19:11 lee54: g.list rast now says exists
14:20:28 epifanio: ok, so now run : g.region rast=mapname -ap
14:21:04 lee54: yah got throught he first 2 of your 3, it op0ens a window and won't let me do the last one lol
14:21:16 epifanio: it should print out the resolution, size and extent for your map
14:21:17 lee54: must still be running
14:21:46 epifanio: hit ctr+c if you have a freezed shall
14:22:03 lee54: yah rows 4320 colsw 8640 truecolor etc
14:22:24 epifanio: and type the same commands followed by the "&" character
14:23:00 epifanio: after g.region you need to open a monitor "d.mon x0" and display the map : "d.rast mapname"
14:23:30 epifanio: what's the image size ?
14:24:27 lee54: 8640 x 4320
14:24:56 epifanio: in mb ?
14:25:25 epifanio: however, does the command works ?
14:25:31 epifanio: d.rast
14:25:56 lee54: 36mb
14:26:12 lee54: the d.mon x0 opens a window then in the console "run" is greyed out
14:26:24 lee54: so can't do the last d.rast modis
14:26:31 epifanio: ok so close the X window
14:26:45 epifanio: and retype the command using : d.mon x0 &
14:27:07 epifanio: then in the shell hit return, it will accept new commands
14:27:08 lee54: & not a valid option
14:28:11 epifanio: from a grass shall type : d.mon x0 &
14:28:23 lee54: ok was using the output window that worked
14:28:46 lee54: ok now it is loaded = )
14:28:53 epifanio: now ever in the shall, type : d.rast mapname
14:29:01 epifanio: ok, so you can see something ?
14:29:05 lee54: yah
14:29:07 epifanio: ok
14:29:25 epifanio: remember, to follow the wiki page you linked first
14:29:27 lee54: my mistake was not understanding you meant a bash/shell instead of whatever you call the grass output window, my apologies
14:30:03 lee54: i guess now the question is how to save this locatino as default, working on the colors now
14:30:22 lee54: then make it work from cli only
14:30:45 lee54: then of course when we are finished select an item of your choice from amazon for me to order for you = )
14:30:58 epifanio: each time you need to run a command on a raster image, like use r.mapcalc, runs the command g.region rast=mapname -ap
14:31:25 epifanio: -a align the grass region to the map-pixel
14:31:55 lee54: makes sense tyvm
14:32:03 epifanio: lee54: np, i'm glad you can use grass :- )
14:32:15 lee54: heh.. almost there
14:33:18 epifanio: try to buy the grass book on the springer book seller it is really a great book to start with grass, however each commands in grass is explained with example in the grass hep manual
14:33:43 epifanio: *help
14:34:23 lee54: sounds good.. working through the wiki now and trying to fix errors
14:42:17 td123: anyone know how I can associate traffic speed points on a map to streets? ( specific segments )
15:20:32 CIA-64: huhabla * r39855 /grass/trunk/lib/gis/parser_wps.c: documentation update
15:20:34 sigq: grassfeed: Changeset [39855]: documentation update <https://trac.osgeo.org/grass/changeset/39855>
16:25:08 CIA-64: marisn * r39856 /grass/branches/develbranch_6/gui/tcltk/gis.m/mapcanvas.tcl: Do not fail to start gis.m in XY location due to missing proj info
16:25:35 sigq: grassfeed: Changeset [39856]: Do not fail to start gis.m in XY location due to missing proj info <https://trac.osgeo.org/grass/changeset/39856>
21:00:02 CIA-64: cmbarton * r39857 /grass/branches/develbranch_6/gui/wxpython/gui_modules/goutput.py: Fix bug that hits first time users of GRASS lacking a .grasswx6 file.
21:01:37 sigq: grassfeed: Changeset [39857]: Fix bug that hits first time users of GRASS lacking a .grasswx6 file. <https://trac.osgeo.org/grass/changeset/39857>
21:05:01 CIA-64: cmbarton * r39858 /grass/branches/develbranch_6/gui/wxpython/gui_modules/preferences.py: Bug fix for users who start grass for the first time without .grasswx6 file
21:07:21 CIA-64: cmbarton * r39859 /grass/trunk/gui/wxpython/gui_modules/ ( goutput.py preferences.py ): Fix bug that hits first time users of GRASS lacking a .grasswx6 file. Backport from develbranch_6 r39857 & r39858