I encountered an error using function: netcdf_to_ee
xlsadai opened this issue · 1 comments
xlsadai commented
Environment Information
colab
Description
Hello, Professor Wu. I hope to get your help. I want to load the netCDF file on the hard disk into colab and convert it into image type for subsequent calculation.
The code is as follows:
Code
image = geemap.netcdf_to_ee("/content/drive/MyDrive/VOD/Monthly/svodi_2005-09-01.nc", "svodi", band_names=None, lon="lon", lat="lat")
image = image.updateMask(image.neq(9999.0))
Map.addLayer(image)
Map
Issue
HttpError: <HttpError 400 when requesting https://earthengine.googleapis.com/v1alpha/projects/earthengine-legacy/maps?fields=name&alt=json returned "Request payload size exceeds the limit: 10485760 bytes.". Details: "Request payload size exceeds the limit: 10485760 bytes.">
During handling of the above exception, another exception occurred:
EEException Traceback (most recent call last)
[/usr/local/lib/python3.10/dist-packages/ee/data.py](https://localhost:8080/#) in _execute_cloud_call(call, num_retries)
337 return call.execute(num_retries=num_retries)
338 except googleapiclient.errors.HttpError as e:
--> 339 raise _translate_cloud_exception(e)
340
341
EEException: Request payload size exceeds the limit: 10485760 bytes.
giswqs commented
The error message indicates it is a file size issue. GEE doesn't allow converting a large image on the fly. Try a smaller image.