Open-ET / openet-ssebop

Earth Engine SSEBop ET Model
Apache License 2.0
40 stars 28 forks source link

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

Open alvesraisa opened 2 years ago

alvesraisa commented 2 years ago

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_21607620120309): 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**

cgmorton commented 2 years ago

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.

alvesraisa commented 2 years ago

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.

IFuentesSR commented 2 years ago

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

s-sima commented 1 year ago

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.