File:Landsat corr.png

From AWF-Wiki
(Difference between revisions)
Jump to: navigation, search
 
Line 2: Line 2:
 
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.
 
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:
+
R Code:
library(rgdal)
+
library(rgdal)
+
 
 
  # load maps  
 
  # load maps  
 
  band.blue <- readGDAL('sub_L71195024_02420050623_B20.TIF')
 
  band.blue <- readGDAL('sub_L71195024_02420050623_B20.TIF')

Latest revision as of 16:20, 25 June 2013

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