Open-ET/openet-ssebop

Error 400 when requesting https://earthengine.googleapis.com/v1alpha/pro... | Parameter 'image1' is required."

Opened this issue · 4 comments

Hi, I am on Google Colab, but when I put any point of my region, When I compile the cell
"overpass_df = get_region_df(overpass_coll.getRegion(test_point, scale=30).getInfo()) " I'm having these errors, even though I'm testing in Google Earth Engine that there are Landsat images in my period of interest.


_HttpError Traceback (most recent call last)
/usr/local/lib/python3.7/dist-packages/ee/data.py in _execute_cloud_call(call, num_retries)
329 try:
--> 330 return call.execute(num_retries=num_retries)
331 except googleapiclient.errors.HttpError as e:

5 frames
HttpError: <HttpError 400 when requesting https://earthengine.googleapis.com/v1alpha/projects/earthengine-legacy/value:compute?prettyPrint=false&alt=json returned "Collection.first: Error in map(ID=LE07_216076_20120309):
Image.multiply: Parameter 'image1' is required.". Details: "Collection.first: Error in map(ID=LE07_216076_20120309):
Image.multiply: Parameter 'image1' is required.">

During handling of the above exception, another exception occurred:

EEException Traceback (most recent call last)
/usr/local/lib/python3.7/dist-packages/ee/data.py in _execute_cloud_call(call, num_retries)
330 return call.execute(num_retries=num_retries)
331 except googleapiclient.errors.HttpError as e:
--> 332 raise _translate_cloud_exception(e)
333
334

EEException: Collection.first: Error in map(ID=LE07_216076_20120309):
Image.multiply: Parameter 'image1' is required.
--------------_

**I tested with another points in globe and some of them have the same problem, but others don't. I would like why this is happening because I need to solve this in my region. None of points that i choose in my region works.

Thank you**

Based on the WRS2 path/row of the Landsat image in your error message, I'm assuming you are trying to run the model for a region in Brazil (or South America). The current OpenET implementation of SSEBop is not setup to be run outside of North America, but the SSEBop team is actively working on adding support for running it globally and that capability should be available soon.

Oh, ok! I needed calculate the mean evapotranspiration of my GeoJSON polygon, and i was trying adaptating the code. The page https://ssebop.users.earthengine.app/view/ssebop-v101 works with points in my region, because is a partnership with the National Water Agency of Brazil, but only points. Anyway, thanks a lot for the reply.

Yes, it seems that daymet_median_v2 covers only North America.
Therefore, running this in another place will return that error.

s-sima commented

Based on the WRS2 path/row of the Landsat image in your error message, I'm assuming you are trying to run the model for a region in Brazil (or South America). The current OpenET implementation of SSEBop is not setup to be run outside of North America, but the SSEBop team is actively working on adding support for running it globally and that capability should be available soon.

Hi cgmorton,
I guess the issue is related to the inevitability of the Gridmet ETr data for regions outside the US. Is there any way to manually replace a collection of ETr maps (e.g., from FAO or national databases)? If someone can modify the current code assuming pre-defined ETr maps, I think the problem should be resolved.