Skip to content

Exclude Landsat 7 striping fix. #3

@clarype

Description

@clarype

I've noticed a potential issue with the method designed to remove striping from Landsat 7 images. It appears that the ee.Filter.gt('SCENE_CENTER_TIME', '2003-06-01T00:00') condition is preventing the function from returning an adjusted collection. The main concern is that SCENE_CENTER_TIME only provides the time of day without any year date information, making it inappropriate for filtering by specific dates.

Ideally, we'd like to preserve the earlier images from Landsat 7, before the onset of striping issues. However, I am currently unable to find a property that explicitly dates each image. The closest available identifier is the LANDSAT_PRODUCT_ID, which is a string. To extract the date from this ID, we would need to parse the string for each image which seems cumbersome in its implementation using inequities methods.

To the point, the easiest and fastest way would be to just exclude all of Landsat 7 by dropping the the 'ee.filter.and' and the 'ee.Filter.gt('SCENE_CENTER_TIME', '2003-06-01T00:00')'

From :
if 'slcOff' in self.exclude: if self.exclude['slcOff'] is True: collection = collection.filter(ee.Filter.And( ee.Filter.eq('SPACECRAFT_ID', 'LANDSAT_7'), ee.Filter.gt('SCENE_CENTER_TIME', '2003-06-01T00:00') ).Not())
To:
if 'slcOff' in self.exclude: if self.exclude['slcOff'] is True: collection = collection.filter(ee.Filter.eq('SPACECRAFT_ID', 'LANDSAT_7')).Not())

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions