> 
> 	My first question is can I get data from r.stats to output to an
> array in unix shell?  and if so how.... 

I'm not sure what you mean with outputting r.stats data to an array - 
UNIX shell scripting is not actually famous for dealing with arrays...
please be a bit more specific if you can!

> 
> 	My second question is a little more simple.  When using r.mapcalc,
> I tried a simple multiplication and addition in unix shell like this:
> 
> echo "testmapcalc = map1 * 10 + map2" | r.mapcalc
> 
> Now the question is how do I get categories with no cells in them to show up
> as zero when doing a r.stats testmapcalc???
> 

Hmm, you may have hit a weak spot here - I'm afraid the only way is to 
write a script that checks the output from r.stats on non-occurring 
attribute values.

Not much help, I guess, but have a nice day anyway

Philip Verhagen
-- 


			S t i c h t i n g  R A A P


		Regionaal Archeologisch Archiverings Projekt

adress: 	Plantage Muidergracht 14
	        1018 TV Amsterdam
	       	THE NETHERLANDS
phone:          (31) 20 525 5835
fax:		(31) 20 525 5834
e-mail:		motte@xs4all.nl

