Closed ericbarefoot closed 10 months ago
Oh I should say that I have already successfully downloaded this particular tile in the past.
Thanks for reporting the issue. It seems that since this is a large request the 3DEP service was being pushed to its limit so it failed. It appears that the 3DEP service capacity is either not as good as before or the number of requests has increased. So, I had to make some modifications to reduce the load of each request. This solved the issue:
I will push this fix. I am planning to release new versions for all HyRiver packages soon. So you can either wait for the official release or install them from git:
pip install git+https://github.com/hyriver/async-retriever.git git+https://github.com/hyriver/pygeoogc.git git+https://github.com/hyriver/pygeoutils.git git+https://github.com/hyriver/py3dep.git
BTW, you can use py3dep.get_dem(bbox, 1)
if you only want to get DEM and don't want slope or other layers. This offers the benefit of automatically using the static 3DEP service instead of dynamic for 10, 30, and 60 m resolutions, which can be much faster than the dynamic service. Also, in version 0.16.0 (next release), I added a new function for large requests called py3dep.get_dem_vrt
that will create a VRT file instead of loading everything to the memory, so it's much more memory efficient.
Excellent, thanks, I'll work with the new fix in the short term and look for the new stack when you release it.
Our issue is that we only want 1m lidar. Any lower resolution does not satisfy our requirements. So we just discard tiles that lack 1m-resolution coverage in our region of interest.
The new version is already out. Please give it a try and let me know if it works.
I updated py3dep
via conda-forge, and it had the same failure. However, I created a fresh environment, with only py3dep
as the install, and it works fine. I now suspect there's an issue in my environment preventing the update from working correctly. Instead of trouble-shoot it, I'll just build a fresh environment.
I'm going to close this for now, but if I run into the issue again while re-building the computing environment, I'll let you know where the issue arises.
Thanks for the help!
Great, thanks!
What happened?
I am trying to programmatically download 1 m lidar tiles from the usgs3dep database for a number of sites across the united states. I have written a software package that wraps around by three dab to accomplish this in a randomized way, however the package started failing approximately a month ago. It serves the following error:
Service is currently not available, try again later: https://elevation.nationalmap.gov/arcgis/services/3DEPElevation/ImageServer/WMSServer
What did you expect to happen?
I was expecting to get a tile of lidar data downloaded from the usgs.
Minimal Complete Verifiable Example
MVCE confirmation
Relevant log output
Anything else we need to know?
No response
Environment