Re: [R-sig-Geo] ENVI data and R

2008-07-29 Thread Matt Oliver
Try memory.limit(size = 4000) On Tue, Jul 29, 2008 at 4:38 PM, Guy Serbin <[EMAIL PROTECTED]> wrote: > My machine currently has 4 GB on it, but a lot of that's getting eaten > by video memory and the other programs I have in memory. Also, some > of my image cubes are 12 GB in size, so I'd nee

Re: [R-sig-Geo] ENVI data and R

2008-07-29 Thread Matt Oliver
Try memory.limit(size = 4000) On Tue, Jul 29, 2008 at 4:38 PM, Guy Serbin <[EMAIL PROTECTED]> wrote: > My machine currently has 4 GB on it, but a lot of that's getting eaten > by video memory and the other programs I have in memory. Also, some > of my image cubes are 12 GB in size, so I'd nee

Re: [R-sig-Geo] ENVI data and R

2008-07-29 Thread Guy Serbin
My machine currently has 4 GB on it, but a lot of that's getting eaten by video memory and the other programs I have in memory. Also, some of my image cubes are 12 GB in size, so I'd need to find a workaround anyways. However, since what my colleagues and I are interested in are pixel-by-pixel sp

Re: [R-sig-Geo] ENVI data and R

2008-07-29 Thread Roger Bivand
On Tue, 29 Jul 2008, Guy Serbin wrote: Thank you all for the help- I successfully read an image into R using these methods. I did, however, encounter some problems when loading a hyperspectral image cube into R as it was unable to allocate the 2.9 GB of volatile memory that it needed. Buy mor

Re: [R-sig-Geo] ENVI data and R

2008-07-29 Thread Guy Serbin
Thank you all for the help- I successfully read an image into R using these methods. I did, however, encounter some problems when loading a hyperspectral image cube into R as it was unable to allocate the 2.9 GB of volatile memory that it needed. Is there a way to improve memory management by R,

Re: [R-sig-Geo] ENVI data and R

2008-07-29 Thread PUJAN RAJ REGMI
This might help to mange the orientation of image: # To read ENVI formatcir.image<-("YOUR_ENVI_FILE")CIR.envi<-read.ENVI(cir.image,headerfile=paste(cir.image,".hdr",sep=""))# To Show imageCIR.envi.band1<-CIR.envi[,,1]CIR.envi.band1.s<-CIR.envi.band1[order(nrow(CIR.envi.band1):1),]CIR.envi.ban

Re: [R-sig-Geo] R Raster to ArcGIS

2008-07-29 Thread Roger Bivand
On Tue, 29 Jul 2008, Guy Serbin wrote: Hi list, I'm going to borrow what I just learned from my other thread. I'd export your raster data as an ENVI file, which ArcGIS should be able to read with the ENVI Reader for ArcGIS installed. 1. Go to www.ittvis.com and download the appropriate versio

Re: [R-sig-Geo] R Raster to ArcGIS

2008-07-29 Thread Guy Serbin
Hi list, I'm going to borrow what I just learned from my other thread. I'd export your raster data as an ENVI file, which ArcGIS should be able to read with the ENVI Reader for ArcGIS installed. 1. Go to www.ittvis.com and download the appropriate version of the ENVI Reader for ArcGIS (1.1 for A

Re: [R-sig-Geo] R Raster to ArcGIS

2008-07-29 Thread Ashton Shortridge
Hi Matt (and list), ArcGIS still (as far as I know) doesn't work with rectangular cells. This isn't a problem with the AsciitoGrid function, but I think is more fundamentally a problem with Arc's raster data structure. The trick to getting around this may be to convert your matrix to a point o

Re: [R-sig-Geo] ENVI data and R

2008-07-29 Thread Andrew Niccolai
This code might help: ## Read in envi file cir.image <- "C:/YOUR_ENVI_FILE" CIR.envi = read.ENVI(cir.image, headerfile=paste(cir.image

[R-sig-Geo] R Raster to ArcGIS

2008-07-29 Thread Matt . Farnsworth
Dear list, I'm trying to bring an ASCII raster file into ArcGIS that resulted from calling the R function Tsp(), which is in the "fields" library, followed by the use of the function predict.surface() to generate the matrix of predicted values. These functions use many of the same inputs as the

Re: [R-sig-Geo] ENVI data and R

2008-07-29 Thread Thomas Adams
Guy, I don't know the answer to your question. However, depending on what you are trying to do, might it be possible to use GRASS GIS in place of what you are doing with IDL in ENVI? GRASS plays quite nicely with R. You probably can read ENVI image data into R, but you may need to go through

[R-sig-Geo] ENVI data and R

2008-07-29 Thread Guy Serbin
Hi, I was wondering if anyone knows how to either call up R functions from within IDL, or conversely read ENVI image data into R. If you have any advice I'd greatly appreciate it. Thanks, Guy Serbin -- Guy Serbin, Ph.D. Research Soil Scientist Hydrology and Remote Sensing Lab Bldg 007 Rm 104 B