Re: [GRASS-dev] Re: export question

2011-09-24 Thread Markus Neteler
On Fri, Sep 23, 2011 at 5:49 PM, sarthakahuja sarthakah...@gmail.com wrote:
 Is this possible using grass jni. I looked into its library but could not
 find functions for these commands

 http://sorokine.info/grass-jni/htmls/index.html

See http://sorokine.info/grass-jni/ - it is there only for historical reasons.

 If not, is there another way I could do this using java

Perhaps through jython in order to use the nice new Python bindings?
Of course also via the new vtk-grass-bridge with JAVA bindings.

See also
http://grass.osgeo.org/wiki/GRASS_and_Java

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


Re: [GRASS-dev] Re: export question

2011-09-10 Thread Glynn Clements

Hamish wrote:

 r.mapcalc map.red = r#map
 r.mapcalc map.green = g#map
 r.mapcalc map.blue = b#map

This:

r.mapcalc map.red = r#map ; map.green = g#map ; map.blue = b#map

is more efficient, as it only reads the input map once.

-- 
Glynn Clements gl...@gclements.plus.com
___
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev


Re: [GRASS-dev] Re: export question

2011-09-09 Thread Hamish
sarthakahuja wrote:
 thanks a lot, do you know how to get
 their red, green, blue values (0-255)

for the basic palette, try the r.colors.out in newer versions of
GRASS.


or create 3 new maps with r.mapcalc's # operator, then r.out.xyz
for those:

r.mapcalc map.red = r#map
r.mapcalc map.green = g#map
r.mapcalc map.blue = b#map


Hamish

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