Re: [R-sig-Geo] get the neighbors from a specified node in an nb object

2010-03-04 Thread Jonathan Thayn
u, 4 Mar 2010, Jonathan Thayn wrote: > >> I'm sure there is a simple way to do this but I can't seem to find it. I >> have an nb object and a list of the landcover types associated with each >> node in the neighborhood. I want to create a table showing how many

[R-sig-Geo] get the neighbors from a specified node in an nb object

2010-03-04 Thread Jonathan Thayn
I'm sure there is a simple way to do this but I can't seem to find it. I have an nb object and a list of the landcover types associated with each node in the neighborhood. I want to create a table showing how many times each landcover class borders every other landcover class, like in the examp

Re: [R-sig-Geo] NDVI time-series filter

2010-02-03 Thread Jonathan Thayn
e- >> From: r-sig-geo-boun...@stat.math.ethz.ch [mailto:r-sig-geo- >> boun...@stat.math.ethz.ch] On Behalf Of Jonathan Thayn >> Sent: Friday, January 29, 2010 5:02 PM >> To: r-sig-geo@stat.math.ethz.ch >> Subject: [R-sig-Geo] NDVI time-series filter >> >>

[R-sig-Geo] NDVI time-series filter

2010-01-29 Thread Jonathan Thayn
I need to smooth a collection of annual NDVI time-series data for a fairly large image. Right now I am using an interruptive method that compares the difference between each point and the mean of its two neighbors. This process repeats until a threshold is reached. It works well, but it takes a

Re: [R-sig-Geo] reading select values from a binary file

2009-12-16 Thread Jonathan Thayn
I tried using the seek() function, but it did not work as I thought it would. Perhaps I have done something wrong: > writeBin(1:20,"desktop/test.bip",size=2,endian="big") > cc <- file("desktop/test.bip","rb") > readBin(cc,"integer",n=1,size=2,endian="big") [1] 1 > seek(cc,13) [1] 2 > readBin(cc,

[R-sig-Geo] reading select values from a binary file

2009-12-09 Thread Jonathan Thayn
Hopefully there is a simple solution to this problem. I process really large satellite images in R and, in order to not offend the memory-limitation demi-gods, I open each row of the imagery one at a time, process it, write the results, and then open the next line. I use readBin() to open each l