parevalo / gee-ccdc-tools

Tools and Earth Engine apps to interact with the outputs from the CCDC algorithm

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

sensor argument in getLandsat() function does not work

ZZMitch opened this issue · comments

Hello,

The sensors argument in the getLandsat() function does not properly filter by Satellite (l4, l5, l7, l8). The function will output all sensors, even if all sensors are set to false.

Looking into the source code, this error is likely because the filterMetadata command below is looking for a 'SATELLITE' property. However, at least in Collection 2, there is no 'SATELLITE' property. The correct property instead appears to be 'SPACECRAFT_ID'.

A simple change of replacing 'SATELLITE' with 'SPACECRAFT_ID' should fix this issue.