I am trying to downgrade the resolution of high-resolution precipitation product (DayMet) to low resolution using the solution posted here: https://gis.stackexchange.com/a/323143/33177

However, I am getting the following error:

Layer error: Image.reduceResolution: The input to reduceResolution does not have a valid default projection. Use reproject() first to set the base projection.

I have checked both the images have default projection. Here is the code


1 Answer 1


Try to specify the scale when reprojecting.

var precipref_proj = precipref.reproject(dmProjection, null, 30).reduceResolution(...)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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