[GRASS-user] <i.landsat.trim> -- script to trim Landsat images, make footprints and all-coverage mask
    Alexander Muriy 
    amuriy at gmail.com
       
    Mon Sep  3 01:55:56 PDT 2012
    
    
  
Hello, comrades.
I wrote shell script <i.landsat.trim>, that trims the "fringe" from the
borders of Landsat images, for each band separately or with the MASK where
coverage exists for all bands. Optionally saves vector footprints of
trimmed rasters and MASK. Works with Landsat 5, Landsat 7 (SLC-on).
Link:
https://raw.github.com/amuriy/GRASS-scripts/72f039073ff55b006b7aecbaa7870fac193dd9b3/i.landsat.trim
Usage:
 i.landsat.trim [-maf] [input=string] [input_base=string]
   [input_prefix=string] output_prefix=string [rast_buffer=value]
   [gener_thresh=value] [--verbose] [--quiet]
Flags:
  -m   Trim raster(s) with the MASK where coverage exists for all bands
  -a   Process all bands
  -f   Save vector footprint(s) of trimmed raster bands or coverage MASK
 --v   Verbose module output
 --q   Quiet module output
Parameters:
          input   Name of input raster band(s)
                   Example: L5170028_02820070521_B10
     input_base   Base name of input raster bands
                   Example: L5170028_02820070521
   input_prefix   Prefix name of input raster bands
                   Example: 'B.' for B.1, B.2, ...
  output_prefix   Prefix for output raster maps
                   Example: 'trim' generates B.1.trim, B.2.trim, ...
    rast_buffer   Distance for raster buffering (in meters)
                  default: 300
   gener_thresh   Threshold for generalizing of vector footprints or
coverage MASK (in meters)
                  default: 3000
Picture with example attached.
--------------------------------------------------------------------
It was made "just for fun", but I hope it would be useful for somebody :)
Best regards,
Alexander
--------------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20120903/2770e9fc/attachment.html>
    
    
More information about the grass-user
mailing list