giosans / multiregional-landslide-detection-article

code repository for the article "Multi-Regional Landslide Detection using Combined Unsupervised and Supervised and Machine Learning"
GNU General Public License v3.0
6 stars 3 forks source link

dem_alos.reproject is not a function #3

Open erin-ntnu opened 2 years ago

erin-ntnu commented 2 years ago

Hi again!

While running the pre-processing GEE script - I get the error 'dem_alos.reproject is not a function. I know that the reason is that the dem_alos is an image collection, not an image - and the reproject function only works for an image.

I did a workaround when I was applying this code for one single point - by uploading my own single dem image and using that. But now I am trying to make it work for multiple points over a large area, and now I do need to use an image collection for the dem.

I think that a possible solution could be to clip the dem image collection to the bounds of each output before reprojecting it. I'm trying to figure out how and if that will work, but would appreciate any suggestions.

giosans commented 2 years ago

Hey, Indeed the collection is available from ee.ImageCollection("JAXA/ALOS/AW3D30/V3_2") . A workaround would be creating an image collection from Tiffs stored in your gs, as shown in manual. Am not good enough in ee to suggest solutions to your problem, I apologize. Try posting your question on SO.