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.band1.t<-t(CIR.envi.band1.s)image(CIR.envi.band1.t,main="")mtext("Raw
 Matrix ENVI Image for Band1", side=3,line=2, font=3,cex=1.25)Pujan

> From: [EMAIL PROTECTED]> To: [EMAIL PROTECTED]; R-sig-Geo@stat.math.ethz.ch> 
> Date: Tue, 29 Jul 2008 14:24:04 -0400> Subject: Re: [R-sig-Geo] ENVI data and 
> R> > This code might help:> > 
> ############################################################################> 
> ####> 
> ############################################################################> 
> ####> ## Read in envi file> cir.image <- "C:/YOUR_ENVI_FILE"> CIR.envi = 
> read.ENVI(cir.image, headerfile=paste(cir.image,".hdr", sep="")) > > 
> ############################################################################> 
> ####> 
> ############################################################################> 
> ####> ## Show image> CIR.envi.band1 <- CIR.envi[,,1]> image(CIR.envi.band1, 
> main="")> mtext("Raw Matrix ENVI Image for Band 1", side=3,line = 2, font=3, 
> cex=1.25)> > 
> ############################################################################> 
> ####> 
> ############################################################################!
 > ####> > Andrew Niccolai> Doctoral Candidate> Yale School of Forestry> > > > 
 > -----Original Message-----> From: [EMAIL PROTECTED]> [mailto:[EMAIL 
 > PROTECTED] On Behalf Of Guy Serbin> Sent: Tuesday, July 29, 2008 12:55 PM> 
 > To: R-sig-Geo@stat.math.ethz.ch> Subject: [R-sig-Geo] ENVI data and R> > 
 > 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 BARC-West> 10300 Baltimore Blvd> Beltsville, MD 20705-2350 
 > USA> +1(301)504-5250 [EMAIL PROTECTED]> > 
 > _______________________________________________> R-sig-Geo mailing list> 
 > R-sig-Geo@stat.math.ethz.ch> 
 > https://stat.ethz.ch/mailman/listinfo/r-sig-geo> > 
 > _______________________________________________> R-sig-Geo mailing list> 
 > [EMAIL PROTECTED]
 th.ethz.ch> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
_________________________________________________________________


enger2_072008
        [[alternative HTML version deleted]]

_______________________________________________
R-sig-Geo mailing list
R-sig-Geo@stat.math.ethz.ch
https://stat.ethz.ch/mailman/listinfo/r-sig-geo

Reply via email to