Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a bunch of Landsat 5 scenes that I want to mosaic together.

However Landsat 5 scenes have a zigzag pattern on the left and right edges as well as some bad data values along these edges.

Is there a program that can automatically trim the edges of the Landsat 5 scenes so that all the edges are nice and straight?

share|improve this question

You can download the scene boundaries here;

You could use these as they are or generate an "inside" buffer shapefile to ensure that you trim all bad data in all bands.

Create a separate file for each scene (use split by attributes tool if there are many images to be processed).

Then clip the rasters (CLIP tool in ArcGIS)

share|improve this answer
Thanks, I will try this and see if it works. – ljbade Oct 3 '12 at 14:14

The manual way to do this is to use the official WRS-2 path/row scene boundaries

To answer, however, your question directly about an automatic way to trim Landsat TM5 (or any other Landsat product I guess) edges, there is i.landsat.trim, a GRASS-GIS module.

See also:

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.