File:Landsat corr.png

From AWF-Wiki
Jump to: navigation, search
Full resolution(800 × 800 pixels, file size: 78 KB, MIME type: image/png)

Correlation of LANDSAT bands 4 and 5, based on the input data provided for the exercises of the lecture "Remote sensing image processing with open source GIS". A link to the data will be provided as soon as it is downloadable.

R Code:

library(rgdal)
 
# load maps 
band.blue <- readGDAL('sub_L71195024_02420050623_B20.TIF')
band.green <- readGDAL('sub_L71195024_02420050623_B30.TIF')
band.red <- readGDAL('sub_L71195024_02420050623_B40.TIF')
band.nir <- readGDAL('sub_L71195024_02420050623_B50.TIF')

bands <- data.frame(band.2=band.blue@data$band1, 
	band.3=band.green@data$band1,
	band.4=band.red@data$band1,band.5=band.nir@data$band1)

png('landsat_corr.png', width=800, height=800,
    pointsize=20)
plot(bands$band.4, bands$band.5, xlab='Band 4 (red) brightness', 
     ylab='Band 5 (near infrared) brightness', 
     main='Correlation between LANDSAT bands 4 and 5')
dev.off()

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current16:14, 25 June 2013Thumbnail for version as of 16:14, 25 June 2013800 × 800 (78 KB)Lburgr (Talk | contribs)Correlation of LANDSAT bands 4 and 5, based on the input data provided for the exercises of the lecture "Remote sensing image processing with open source GIS". A link to the data will be provided as soon as it is downloadable. Code: library(rgdal) ...

The following page links to this file:

Personal tools
Namespaces

Variants
Actions
Navigation
Development
Toolbox