Giter VIP home page Giter VIP logo

landsat-level-1-mtl-c2toc1's Introduction

Landsat-MTL-C2toC1

Landsat data provided by the USGS are distributed as a single file in an archived and zipped ".TAR" format. These files must be extracted and uncompressed before you can use them.

In ENVI 5, open the metadata file (MTL.txt)  through File> Open as> Landsat> GeoTIFF with Metadata to import Landsat Collection 1 Level 1 image with all bands in the correct order.

At the end of 2020, USGS released Landsat Collection 2. There are enhancements and changes between Collection 1 and Collection 2 Level-1 metadata, the current highest version of ENVI (ENVI 5.6) has not yet supported the reading of Landsat Collection 2 MTL files.

Modifying the MTL file in batches manually is time-consuming, here is a script to realize it.

📢 File list

  • A source code based on python 3.6;
  • An executable file for more convenient use bundled by package PyInstaller;
  • Sample files in inputs folder and outputs folders.

📢 How to use

Put the MTL files of Collection 2 format into the inputs folder in the same directory. After the script runs, the converted MTL file of Collection 1 format will be generated in the outputs folder in the same directory.

Note: There is no GROUP of PRODUCT_PARAMETERS in the sample MTL files, so "Can't find PRODUCT_PARAMETERS" will be printed. This error has no effect on the result.

landsat-level-1-mtl-c2toc1's People

Contributors

momosea avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.