LANDSAT MSS/TM/ETM+ metadata (.MTL) Parser

版本 1.0.0.0 (2.7 KB) 作者: Evan
Reads field-value pairs from the MTL text file, and returns a structure with the scene metadata.
790.0 次下载
更新时间 2012/11/16

查看许可证

MTL parser for LANDSAT datasets (MSS, TM, ETM+)

Written in Nov 2012 by Evan Miles, Scott Polar Research Institute, University of Cambridge

Extended from ETM+ MTL parser written by Seongsu Jeong, Geomatics and Remote Sensing Laboratory (GRSLAB), Yonsei University

MAIN FUNCTIONALITY:
Reads the information from MTL text file, which is provided with LANDSAT data.

USAGE:
MTL=MTL_parser(filename) - for a single MTL file
MTL_list=MTL_parser(filename_list) - for multiple MTL files. The list should be in a matrix form which each of its row vector is a string of a MTL filename
MTL_list=MTL_parser() - Searches all MTL files in current directory and parses them all.

NOTIFICATION FOR THE OUTPUT VARIABLE:
The values which surrounded "double quotation mark" was treated as a string, along with the information related to the time and date. Other variables were considered as a double-precision floating point variables.

UPDATED FEATURES:
15-NOV-2012: Implemented recursive structure generator to interpret nested groups with arbitrary names, removing necessity for identifying MTL-specific names.
08-MAR-2011: Capable of dealing with void input. When this case occurs, this module searches all MTL files based on its filename and list them up. After then, this function reads all detedted MTL files and returns the result as a structure array in column vector form.

LAST MODIFICATION: 15-NOV-2012

引用格式

Evan (2024). LANDSAT MSS/TM/ETM+ metadata (.MTL) Parser (https://www.mathworks.com/matlabcentral/fileexchange/39073-landsat-mss-tm-etm-metadata-mtl-parser), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R2011b
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 String Parsing 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.0.0.0