-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
jupyter_for_starters error #2
Comments
I’ll look at it in more detail later but I can already tell you that USGS/3DEP/10 is wrong it should be USGS/3DEP/10m. <- ends in m. Try that and sorry if that’s one of my typos. They recently changed the name for that dataset and I though I had replaced it with a working new name but maybe I made a typo?
On Feb 7, 2022, at 14:08, sr71shark ***@***.******@***.***>> wrote:
I began with this issue in the jupyter_for_starters notebook. It appears to have been fixed as described below but now I am getting a different issue.
"I also had this issue with the same notebook. It seems to have been fixed by both following the given by @ChHarding<https://github.com/ChHarding> of:
1. open a terminal shell (cmd.exe or powershell)
2. cd (which contains a rouchterrain folder and the setup.py script, and other stuff …)
3. run this: pip install . (<- dot!)
But then I had to also run ee.Initialize() as @gravity981<https://github.com/gravity981> said above.
But now I have another issue I'm struggling to figure out. I will create a new issue ticket for that one though."
Originally posted by @sr71shark<https://github.com/sr71shark> in #1 (comment)<#1 (comment)>
This was my initial issue and the solution, but now I am getting other errors as follows:
HttpError Traceback (most recent call last)
/usr/local/lib/python3.9/site-packages/ee/data.py in _execute_cloud_call(call, num_retries)
333 try:
--> 334 return call.execute(num_retries=num_retries)
335 except googleapiclient.errors.HttpError as e:
/usr/local/lib/python3.9/site-packages/googleapiclient/_helpers.py in positional_wrapper(*args, **kwargs)
133 logger.warning(message)
--> 134 return wrapped(*args, **kwargs)
135
/usr/local/lib/python3.9/site-packages/googleapiclient/http.py in execute(self, http, num_retries)
914 if resp.status >= 300:
--> 915 raise HttpError(resp, content, uri=self.uri)
916 return self.postproc(resp, content)
HttpError: <HttpError 400 when requesting https://earthengine.googleapis.com/v1alpha/projects/earthengine-legacy/maps?fields=name&alt=json returned "Image.load: Image asset 'USGS/3DEP/10' not found.". Details: "Image.load: Image asset 'USGS/3DEP/10' not found.">
During handling of the above exception, another exception occurred:
EEException Traceback (most recent call last)
in
8 hs = ee.Terrain.hillshade(dem, 315, 35) # sun azimuth and angle
9 vis_params = {'min': 0,'max': 255,} # greyscale color ramp
---> 10 Map.addLayer(hs, vis_params, 'hillshade', shown=True, opacity=0.5) # semi transparent overlay
11
12 # if GPX files were used, add them to the map
/usr/local/lib/python3.9/site-packages/geemap/geemap.py in add_ee_layer(self, ee_object, vis_params, name, shown, opacity)
1253 image = ee_object.mosaic()
1254
-> 1255 map_id_dict = ee.Image(image).getMapId(vis_params)
1256 tile_layer = ipyleaflet.TileLayer(
1257 url=map_id_dict["tile_fetcher"].url_format,
/usr/local/lib/python3.9/site-packages/ee/image.py in getMapId(self, vis_params)
129 vis_image, request = self._apply_visualization(vis_params)
130 request['image'] = vis_image
--> 131 response = data.getMapId(request)
132 response['image'] = self
133 return response
/usr/local/lib/python3.9/site-packages/ee/data.py in getMapId(params)
573 # Make it return only the name field, as otherwise it echoes the entire
574 # request, which might be large.
--> 575 result = _execute_cloud_call(
576 _get_cloud_api_resource().projects().maps().create(
577 parent=_get_projects_path(), fields='name', body=request))
/usr/local/lib/python3.9/site-packages/ee/data.py in _execute_cloud_call(call, num_retries)
334 return call.execute(num_retries=num_retries)
335 except googleapiclient.errors.HttpError as e:
--> 336 raise _translate_cloud_exception(e)
337
338
EEException: Image.load: Image asset 'USGS/3DEP/10' not found.
—
Reply to this email directly, view it on GitHub<#2>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AEYDF5N3URUB2423LMMGXMDU2ARCJANCNFSM5NYOMTPQ>.
Triage notifications on the go with GitHub Mobile for iOS<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
Chris Harding
Associate Professor
Department of Geological & Atmospheric Sciences
Touchterrain.geol.iastate.edu<http://Touchterrain.geol.iastate.edu>
|
I changed this line in the section Select the name of the DEM source to add the "m" at the end, and the map appears to be working. Thank you! Comment out one of the following two linesargs["DEM_name"] = "USGS/3DEP/10m" # area within the lower 48 (US) |
No worries, thanks for finding my typo.I’ll fix that later today.
On Feb 7, 2022, at 14:16, sr71shark ***@***.******@***.***>> wrote:
I’ll look at it in more detail later but I can already tell you that USGS/3DEP/10 is wrong it should be USGS/3DEP/10m. <- ends in m. Try that and sorry if that’s one of my typos. They recently changed the name for that dataset and I though I had replaced it with a working new name but maybe I made a typo? On Feb 7, 2022, at 14:08, sr71shark @.@.>> wrote: I began with this issue in the jupyter_for_starters notebook. It appears to have been fixed as described below but now I am getting a different issue. "I also had this issue with the same notebook. It seems to have been fixed by both following the given by @ChHarding<https://github.com/ChHarding>https://github.com/ChHarding of: 1. open a terminal shell (cmd.exe or powershell) 2. cd (which contains a rouchterrain folder and the setup.py script, and other stuff …) 3. run this: pip install . (<- dot!) But then I had to also run ee.Initialize() as @gravity981<https://github.com/gravity981>https://github.com/gravity981 said above. But now I have another issue I'm struggling to figure out. I will create a new issue ticket for that one though." Originally posted by @sr71shark<https://github.com/sr71shark>https://github.com/sr71shark in #1<#1> (comment)<#1 (comment)<#1 (comment)>> This was my initial issue and the solution, but now I am getting other errors as follows: HttpError Traceback (most recent call last) /usr/local/lib/python3.9/site-packages/ee/data.py in _execute_cloud_call(call, num_retries) 333 try: --> 334 return call.execute(num_retries=num_retries) 335 except googleapiclient.errors.HttpError as e: /usr/local/lib/python3.9/site-packages/googleapiclient/_helpers.py in positional_wrapper(*args, **kwargs) 133 logger.warning(message) --> 134 return wrapped(args, kwargs) 135 /usr/local/lib/python3.9/site-packages/googleapiclient/http.py in execute(self, http, num_retries) 914 if resp.status >= 300: --> 915 raise HttpError(resp, content, uri=self.uri) 916 return self.postproc(resp, content) HttpError: <HttpError 400 when requesting https://earthengine.googleapis.com/v1alpha/projects/earthengine-legacy/maps?fields=name&alt=json returned "Image.load: Image asset 'USGS/3DEP/10' not found.". Details: "Image.load: Image asset 'USGS/3DEP/10' not found."> During handling of the above exception, another exception occurred: EEException Traceback (most recent call last) in 8 hs = ee.Terrain.hillshade(dem, 315, 35) # sun azimuth and angle 9 vis_params = {'min': 0,'max': 255,} # greyscale color ramp ---> 10 Map.addLayer(hs, vis_params, 'hillshade', shown=True, opacity=0.5) # semi transparent overlay 11 12 # if GPX files were used, add them to the map /usr/local/lib/python3.9/site-packages/geemap/geemap.py in add_ee_layer(self, ee_object, vis_params, name, shown, opacity) 1253 image = ee_object.mosaic() 1254 -> 1255 map_id_dict = ee.Image(image).getMapId(vis_params) 1256 tile_layer = ipyleaflet.TileLayer( 1257 url=map_id_dict["tile_fetcher"].url_format, /usr/local/lib/python3.9/site-packages/ee/image.py in getMapId(self, vis_params) 129 vis_image, request = self._apply_visualization(vis_params) 130 request['image'] = vis_image --> 131 response = data.getMapId(request) 132 response['image'] = self 133 return response /usr/local/lib/python3.9/site-packages/ee/data.py in getMapId(params) 573 # Make it return only the name field, as otherwise it echoes the entire 574 # request, which might be large. --> 575 result = _execute_cloud_call( 576 _get_cloud_api_resource().projects().maps().create( 577 parent=_get_projects_path(), fields='name', body=request)) /usr/local/lib/python3.9/site-packages/ee/data.py in _execute_cloud_call(call, num_retries) 334 return call.execute(num_retries=num_retries) 335 except googleapiclient.errors.HttpError as e: --> 336 raise _translate_cloud_exception(e) 337 338 EEException: Image.load: Image asset 'USGS/3DEP/10' not found. — Reply to this email directly, view it on GitHub<#2<#2>>, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AEYDF5N3URUB2423LMMGXMDU2ARCJANCNFSM5NYOMTPQ. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you were mentioned.Message ID: @.> Chris Harding Associate Professor Department of Geological & Atmospheric Sciences Touchterrain.geol.iastate.edu<http://Touchterrain.geol.iastate.edu>http://Touchterrain.geol.iastate.edu<http://touchterrain.geol.iastate.edu/>
I changed this line in the section Select the name of the DEM source to add the "m" at the end, and the map appears to be working. Thank you!
Comment out one of the following two lines
args["DEM_name"] = "USGS/3DEP/10m" # area within the lower 48 (US)
#args["DEM_name"] = "JAXA/ALOS/AW3D30/V2_2" # area is outside the US (worldwide)
—
Reply to this email directly, view it on GitHub<#2 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AEYDF5MUUCAFPIS5JBTOTG3U2ASCVANCNFSM5NYOMTPQ>.
Triage notifications on the go with GitHub Mobile for iOS<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
Chris Harding
Associate Professor
Department of Geological & Atmospheric Sciences
Touchterrain.geol.iastate.edu<http://Touchterrain.geol.iastate.edu>
|
I began with this issue in the jupyter_for_starters notebook. It appears to have been fixed as described below but now I am getting a different issue.
Originally posted by @sr71shark in #1 (comment)
This was my initial issue and the solution, but now I am getting other errors as follows:
Since I am trying to use this for a one-off CNC project (memorial for my grandfather to mark where we spread his ashes) I was hoping the beginners version may function more quickly and easily, but I'm happy to help test this tool. I'm somewhat familiar with python, so I may try the other notebook and see if that works better for me.
The text was updated successfully, but these errors were encountered: