Skip to content

can't use SavatskyGolayFilter in python #12

@YANQIN2021

Description

@YANQIN2021

Hi,
I use oeel.ImageCollection.SavatskyGolayFilter in python and define distanceFunction like example, but I get an error like below Fig
微信图片_20230215085554
.
here is my code:
days = 60
millis = ee.Number(days1000606024)

maxDiffFilter = ee.Filter.maxDifference(
difference= millis,
leftField='system:time_start',
rightField= 'system:time_start'
)

def distanceFunction(infromedImage, estimationImage):
return ee.Image.constant(ee.Number(infromedImage.get('system:time_start'))
.subtract(ee.Number(estimationImage.get('system:time_start'))))

order = 3
smoothed = oeel.ImageCollection.SavatskyGolayFilter(test,maxDiffFilter,distanceFunction)

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