Re: [GRASS-user] Datum not recognized by GRASS

2010-07-02 Thread Markus Neteler
Hi Anders,

(please keep it on the list)

unfortunately you need a recompiled version. I wonder if anyone is
creating weekly binary snapshots of GRASS 6.4 for Mac OS X...

Otherwise
- you could recompile yourself (far from impossible, I am geographer :-) )
- you could amend the metadata with the gdaltools
   gdal_translate -a_srs ... oldfile.tif newfile.tif

(see also
  http://gfoss.blogspot.com/2008/06/gdal-raster-data-tips-and-tricks.html
  - Fixing broken projection/datum info for raster data
)

cheers
Markus

2010/7/2 Anders Gonçalves da Silva ander...@gmail.com:
 Hi Markus and Paul.

 Thank you for the help. I am not positive, though, how to actually go about
 correcting this on my own version of GRASS.
...
Mac OS X
...
___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


[GRASS-user] Tip on how to change colors and font of GRASS modules

2010-07-02 Thread Pedro Roma
This is a follow-up from a discussion at GRASS-GUI


 I would  like to know, where is defined (colors/fonts bla bla bla) for Map
Display Window frames , Layer Manager and GRASS's modules. I mean, in which
*.py files or which objects


Thanks
Pedro
___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


Re: [GRASS-user] Using pipes in python scripts

2010-07-02 Thread Glynn Clements

Ned Horning wrote:

 I'm making progress translating my shell script to Python but ran into 
 another stumbling block. I would like to convert the following shell 
 script command to the python scrip:
 --
 v.out.ascii $randomName fs=' ' | r.what  input=$resampName $pointTableName
 --
 
 I tried various combinations of grass.pipe_command and 
 grass.feed_command but haven't been able to get it to work.

Using pipe_command() and feed_command() will give you two pipes (one
each), but you only want one. Use start_command():

outf = file(pointTableName, 'w')
p1 = grass.pipe_command('v.out.ascii',
input = randomName,
fs = ' ')
p2 = grass.start_command('r.what',
input = resampName,
stdin = p1.stdout,
stdout = outf)
outf.close()
p1.stdout.close()
p1.wait()
p2.wait()

start_command() is the most general function; all of the others
(except exec_command()) end up invoking start_command().

-- 
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] Latest Landsat image

2010-07-02 Thread Edward Tomlinson
Hi all,

I am trying to get the latest Landsat7 image from path 91 row 81. It is on
the day# 4 cycle which was the 13/6/2010 and 29/06/2010. However the latest
they have on glovis is the 11/5/2010.

Just wondering if there was another way that i could get it, or how long it
usually takes to be processed and available?

Kind regards,
Ed
___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


[GRASS-user] r.what error

2010-07-02 Thread Leonardo Hardtke

Self updating
by doing
g.region rast=cleanNDVI_..
r.what . on the terminal gives the correct result...
but... wyh g.gui does it good without g.region???
Thanks
Leonardo Hardtke

___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


Re: [GRASS-user] r.what error

2010-07-02 Thread Martin Landa
Hi,

2010/7/2 Leonardo Hardtke leohard...@gmail.com:
 Self updating
 by doing
 g.region rast=cleanNDVI_..
 r.what . on the terminal gives the correct result...
 but... wyh g.gui does it good without g.region???

r.what called from wxGUI uses display region (what you see in the map
canvas) instead of g.region (computational region).

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] error in r.what?

2010-07-02 Thread Martin Landa
Hi,

2010/7/2 Leonardo Hardtke leohard...@gmail.com
 I'm having problems with r.what in a SCRIPT.
 As you can see in the screenshot, r.what gives VERY diferent results in 
 terminal and in g.gui (correct!). Any idea? I am doing something wrong!?

hm, that's strange. Can you fill bug report for this issue?

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