[GRASS-user] Importing USGS' wrs2_descending Shapefile

Markus Metz markus.metz.giswork at gmail.com
Fri Mar 6 01:28:29 PST 2015


On Fri, Mar 6, 2015 at 8:55 AM, Moritz Lennert
<mlennert at club.worldonline.be> wrote:
> On 06/03/15 08:44, Nikos Alexandris wrote:
>>
>> ..
>>
>>>> Markus M:
>>
>>
>>>> So, I guess I'll forget the idea to fully automatise the process of
>>>> Landsat
>>>> border trimming? Can't we just have all of the Path-Row tiles ready
>>>> in a
>>>> compressed GRASS format? Some sort of packed ASCII file which can be
>>>> easily
>>>> imported?  No other ideas?
>>>
>>>
>>> I think you can trim the borders using the Landsat raster data
>>> themselves: according to the metadata, valid numbers are > 0. If the
>>> sum of all bands is zero, the pixel is outside.
>
>
> If valid numbers > 0, why does the sum of all bands have to be zero ?
> Normally, all bands are aligned, so in my understanding any 0 can be set to
> NULL, or ?

I guess yes, but when developing the script it might be a good idea to
test if the bands are really aligned and if one band is zero, all
others should also be zero. Just to be safe.

Markus M
>
> Moritz


More information about the grass-user mailing list