Re: [R] Image RGB calculation

2010-04-16 Thread ole_roessler
Thanks a lot, i will try this out! Ole -- View this message in context: http://n4.nabble.com/Image-RGB-calculation-tp1989864p2013203.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https://stat.ethz.

[R] Image RGB calculation

2010-04-16 Thread ole_roessler
Dear all, I need to read an image (mostly jpg) and split the channel of this image to an colour channel calculation like this: sqrt(R²+G²+B²) Do you have an idea what package I need to use for it, and is it possible? Thanky a lot Ole -- View this message in context: http://n4.nabble.com/Im

[R] Sum(..) in apply()

2009-02-04 Thread ole_roessler
Dear, I have a set of ascii-grids. For each gridcell I want to count all values that lie between 15 and 6. Therefore I combined the ascii-grids in an array and used result<- apply(temp,2,sum((temp <=15)&(temp > 6)), na.rm=TRUE) But, this doesn`t work. It seems that the combination apply with

[R] spatial subset of ncdf

2008-11-24 Thread ole_roessler
dear I was lokking for a solution or an example on the internet for quite a time but since haven´t found an answer yet, I'd like to ask a maybe to simple question: I have a large ncdf-file with five dimension. temperature (t2m), the variable against, lat, lon and time. (height is included as wel