Oft-trim-mask.bash

From Open Foris Wiki

Jump to: navigation, search

This script makes a 0/1 mask of a 6 or 7 band (Landsat) image


Usage: oft-trim-mask.bash <image>


  • detects the margins and Landsat 7 missing scanlines, and trims the edges
  • accepts 6 or 7 band image
  • all values <= 0 are considered nodata
  • Note: the output of oft-trim-mask.bash can be furhter used for oft-combine-images.bash

Example:

  • Get Example data set
  • For this exercise following tools are used: oft-trim-mask.bash
  • Open your working directory using
cd /home/...
  • Let's run oft-trim-mask.bash using landsat_t2.tif. Automatically processed output: landsat_t2_mask.tif:
oft-trim-mask.bash landsat_t2.tif
  • Verify in QGIS your our result if the mask pixel values are 1 or 0.


Original image landsat_t2.tif with visible gaps in QGIS Output landsat_t2_mask.tif using the Pseudo-colour colour map in QGIS



Back to Open Foris Toolkit Main Page

Back to Tools & Exercises



Personal tools