0

According to the docs, ee.data.listImages() takes optional parameters for filtering the assets using image properties. However, I can't seem to get the image filtering to work... I want this code to filter the assets (original size=2) to return just one.

var path = "projects/ee-caseyengstrom/assets/testFolder/"
var assetList = ee.data.listImages(path)
print(assetList['images']) 

var filteredList= ee.data.listImages(path,{
  properties:["num_prop<2", "str_prop=='a'"],
  filter: "properties.num_prop<2"
})
print(filteredList['images']) // not working; should return list of size 1

https://code.earthengine.google.com/84195ab6054c77dabb35f813ac60130f

1 Answer 1

1

listImages operates on collections, not folders. Under the covers, it's just calling listAssets.

listAssets works on collections and folders, but doesn't support filtering on folders.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.