Neutrino Physics Hitoshi Murayama (Berkeley+IPMU) NNN 2007, Hamamatsu Oct 3, 2007.
Handling Landsat Images with Matlab Malinda Siriwardana, Prof. Yuji Murayama University of Tsukuba...
-
Upload
ezra-chapman -
Category
Documents
-
view
218 -
download
0
Transcript of Handling Landsat Images with Matlab Malinda Siriwardana, Prof. Yuji Murayama University of Tsukuba...
![Page 1: Handling Landsat Images with Matlab Malinda Siriwardana, Prof. Yuji Murayama University of Tsukuba Graduate School of Life and Environmental Science 132.](https://reader035.fdocuments.us/reader035/viewer/2022062315/5697bfe21a28abf838cb45d6/html5/thumbnails/1.jpg)
Handling Landsat Images with Matlab
Malinda Siriwardana, Prof. Yuji MurayamaUniversity of Tsukuba
Graduate School of Life and Environmental Science
132 -GIS Seminar – 2015.10.22Division of Spatial Information Science
![Page 2: Handling Landsat Images with Matlab Malinda Siriwardana, Prof. Yuji Murayama University of Tsukuba Graduate School of Life and Environmental Science 132.](https://reader035.fdocuments.us/reader035/viewer/2022062315/5697bfe21a28abf838cb45d6/html5/thumbnails/2.jpg)
Introduction• What is Landsat ?
–
![Page 3: Handling Landsat Images with Matlab Malinda Siriwardana, Prof. Yuji Murayama University of Tsukuba Graduate School of Life and Environmental Science 132.](https://reader035.fdocuments.us/reader035/viewer/2022062315/5697bfe21a28abf838cb45d6/html5/thumbnails/3.jpg)
Introduction• Where can I download?
![Page 4: Handling Landsat Images with Matlab Malinda Siriwardana, Prof. Yuji Murayama University of Tsukuba Graduate School of Life and Environmental Science 132.](https://reader035.fdocuments.us/reader035/viewer/2022062315/5697bfe21a28abf838cb45d6/html5/thumbnails/4.jpg)
Seen Selection – Path and Row
![Page 5: Handling Landsat Images with Matlab Malinda Siriwardana, Prof. Yuji Murayama University of Tsukuba Graduate School of Life and Environmental Science 132.](https://reader035.fdocuments.us/reader035/viewer/2022062315/5697bfe21a28abf838cb45d6/html5/thumbnails/5.jpg)
Seen Selection
![Page 6: Handling Landsat Images with Matlab Malinda Siriwardana, Prof. Yuji Murayama University of Tsukuba Graduate School of Life and Environmental Science 132.](https://reader035.fdocuments.us/reader035/viewer/2022062315/5697bfe21a28abf838cb45d6/html5/thumbnails/6.jpg)
Matlab• Components
![Page 7: Handling Landsat Images with Matlab Malinda Siriwardana, Prof. Yuji Murayama University of Tsukuba Graduate School of Life and Environmental Science 132.](https://reader035.fdocuments.us/reader035/viewer/2022062315/5697bfe21a28abf838cb45d6/html5/thumbnails/7.jpg)
Matlab – Image processing toolbox
![Page 8: Handling Landsat Images with Matlab Malinda Siriwardana, Prof. Yuji Murayama University of Tsukuba Graduate School of Life and Environmental Science 132.](https://reader035.fdocuments.us/reader035/viewer/2022062315/5697bfe21a28abf838cb45d6/html5/thumbnails/8.jpg)
Matlab – Mapping toolbox
![Page 9: Handling Landsat Images with Matlab Malinda Siriwardana, Prof. Yuji Murayama University of Tsukuba Graduate School of Life and Environmental Science 132.](https://reader035.fdocuments.us/reader035/viewer/2022062315/5697bfe21a28abf838cb45d6/html5/thumbnails/9.jpg)
Matlab – Mapping toolbox
![Page 10: Handling Landsat Images with Matlab Malinda Siriwardana, Prof. Yuji Murayama University of Tsukuba Graduate School of Life and Environmental Science 132.](https://reader035.fdocuments.us/reader035/viewer/2022062315/5697bfe21a28abf838cb45d6/html5/thumbnails/10.jpg)
File formats and data products supported by Mapping Toolbox
• Raster file formats, such as GeoTIFF, USGS DEM, DEM, DTED, Arc ASCII Grid, GTOPO30, ETOPO, and worldfile
• Vector file formats, such as ESRI® shapefiles, KML, GPX, VMAP0, and GSHHS• Selected data products, such as AVHRR and EGM96
Relevant data formats supported by MATLAB include:• Image file formats, such as TIFF, JPEG, PNG, and JPEG2000• Scientific data formats, such as NetCDF, HDF5, HDF4, HDF-EOS, and
multiband files (BIP, BIL, BSQ)• Network data access through OPeNDAP URL address
Relevant image file formats supported by Image Processing Toolbox include:• NITF and HDR
![Page 11: Handling Landsat Images with Matlab Malinda Siriwardana, Prof. Yuji Murayama University of Tsukuba Graduate School of Life and Environmental Science 132.](https://reader035.fdocuments.us/reader035/viewer/2022062315/5697bfe21a28abf838cb45d6/html5/thumbnails/11.jpg)
Read an image with Matlab
• Bands ?• R, G, B?• Let’s read an image
A = imread(‘img_name’);
![Page 12: Handling Landsat Images with Matlab Malinda Siriwardana, Prof. Yuji Murayama University of Tsukuba Graduate School of Life and Environmental Science 132.](https://reader035.fdocuments.us/reader035/viewer/2022062315/5697bfe21a28abf838cb45d6/html5/thumbnails/12.jpg)
True color image and band separation• imread(‘img_name’)• R = A(:,:,1);• G = A(:,:,2);• B = A(:,:,3);• Y = zeros(size(R));• X = cat(3,R,G,B);• imshow(X)
• Rsum = sum(sum(R));– 1.153476040000000e+09
• Gsum = sum(sum(G));– 1.093311338000000e+09
• Bsum = sum(sum(B));– 1.037606082000000e+09
Red Sensor Green Sensor
Blue Sensor
Y
![Page 13: Handling Landsat Images with Matlab Malinda Siriwardana, Prof. Yuji Murayama University of Tsukuba Graduate School of Life and Environmental Science 132.](https://reader035.fdocuments.us/reader035/viewer/2022062315/5697bfe21a28abf838cb45d6/html5/thumbnails/13.jpg)
False Color images
RGB RBG GRB
GBR BRG BGR
![Page 14: Handling Landsat Images with Matlab Malinda Siriwardana, Prof. Yuji Murayama University of Tsukuba Graduate School of Life and Environmental Science 132.](https://reader035.fdocuments.us/reader035/viewer/2022062315/5697bfe21a28abf838cb45d6/html5/thumbnails/14.jpg)
Read Landsat Images• L1 = imread(‘LXX***###****###***##’);• L1= imread(‘LE71410552003047SGS00_B1.TIF’)
![Page 15: Handling Landsat Images with Matlab Malinda Siriwardana, Prof. Yuji Murayama University of Tsukuba Graduate School of Life and Environmental Science 132.](https://reader035.fdocuments.us/reader035/viewer/2022062315/5697bfe21a28abf838cb45d6/html5/thumbnails/15.jpg)
Read Landsat images
![Page 16: Handling Landsat Images with Matlab Malinda Siriwardana, Prof. Yuji Murayama University of Tsukuba Graduate School of Life and Environmental Science 132.](https://reader035.fdocuments.us/reader035/viewer/2022062315/5697bfe21a28abf838cb45d6/html5/thumbnails/16.jpg)
What’s inside?
![Page 17: Handling Landsat Images with Matlab Malinda Siriwardana, Prof. Yuji Murayama University of Tsukuba Graduate School of Life and Environmental Science 132.](https://reader035.fdocuments.us/reader035/viewer/2022062315/5697bfe21a28abf838cb45d6/html5/thumbnails/17.jpg)
More about Landsat files
Imfinfo(‘landsat_img’)
![Page 18: Handling Landsat Images with Matlab Malinda Siriwardana, Prof. Yuji Murayama University of Tsukuba Graduate School of Life and Environmental Science 132.](https://reader035.fdocuments.us/reader035/viewer/2022062315/5697bfe21a28abf838cb45d6/html5/thumbnails/18.jpg)
More about Landsat files
• MTL_parser.m – Written in Nov 2012 by Evan Miles, Scott Polar
Research Institute, University of Cambridge• Generate metadata in a structure• MTL file - LE71410552003047SGS00_MTL.txt• Usege: MTL_parser(‘Landsat_img’);
![Page 19: Handling Landsat Images with Matlab Malinda Siriwardana, Prof. Yuji Murayama University of Tsukuba Graduate School of Life and Environmental Science 132.](https://reader035.fdocuments.us/reader035/viewer/2022062315/5697bfe21a28abf838cb45d6/html5/thumbnails/19.jpg)
More about Landsat files
![Page 20: Handling Landsat Images with Matlab Malinda Siriwardana, Prof. Yuji Murayama University of Tsukuba Graduate School of Life and Environmental Science 132.](https://reader035.fdocuments.us/reader035/viewer/2022062315/5697bfe21a28abf838cb45d6/html5/thumbnails/20.jpg)
Intersect extractor • Clip Landsat images (each band) according to a
given project size.• Input - folder name - containing all valid
Landsat images within the project region• Global project parameters need to be set• Total number of Landsat scenes used – 12684
![Page 21: Handling Landsat Images with Matlab Malinda Siriwardana, Prof. Yuji Murayama University of Tsukuba Graduate School of Life and Environmental Science 132.](https://reader035.fdocuments.us/reader035/viewer/2022062315/5697bfe21a28abf838cb45d6/html5/thumbnails/21.jpg)
Project_Landsat Intersect extractor Path Raw140 053140 054140 055140 056141 053141 054141 055141 056142 053142 054142 055
![Page 22: Handling Landsat Images with Matlab Malinda Siriwardana, Prof. Yuji Murayama University of Tsukuba Graduate School of Life and Environmental Science 132.](https://reader035.fdocuments.us/reader035/viewer/2022062315/5697bfe21a28abf838cb45d6/html5/thumbnails/22.jpg)
Project_Landsat Intersect extractor
• On each clipped image other algorithms can be preformed– Cloud removal (Fmask), TOA correction etc.
• Reproduce Tiff metadata and export.
![Page 23: Handling Landsat Images with Matlab Malinda Siriwardana, Prof. Yuji Murayama University of Tsukuba Graduate School of Life and Environmental Science 132.](https://reader035.fdocuments.us/reader035/viewer/2022062315/5697bfe21a28abf838cb45d6/html5/thumbnails/23.jpg)
Mosaic Creator
![Page 24: Handling Landsat Images with Matlab Malinda Siriwardana, Prof. Yuji Murayama University of Tsukuba Graduate School of Life and Environmental Science 132.](https://reader035.fdocuments.us/reader035/viewer/2022062315/5697bfe21a28abf838cb45d6/html5/thumbnails/24.jpg)
Mosaic Creator• All clipped images are added together
![Page 25: Handling Landsat Images with Matlab Malinda Siriwardana, Prof. Yuji Murayama University of Tsukuba Graduate School of Life and Environmental Science 132.](https://reader035.fdocuments.us/reader035/viewer/2022062315/5697bfe21a28abf838cb45d6/html5/thumbnails/25.jpg)
Scripts so far …
![Page 26: Handling Landsat Images with Matlab Malinda Siriwardana, Prof. Yuji Murayama University of Tsukuba Graduate School of Life and Environmental Science 132.](https://reader035.fdocuments.us/reader035/viewer/2022062315/5697bfe21a28abf838cb45d6/html5/thumbnails/26.jpg)
Scripts so far …
![Page 27: Handling Landsat Images with Matlab Malinda Siriwardana, Prof. Yuji Murayama University of Tsukuba Graduate School of Life and Environmental Science 132.](https://reader035.fdocuments.us/reader035/viewer/2022062315/5697bfe21a28abf838cb45d6/html5/thumbnails/27.jpg)
Thank you!!!