Trouble merging rasters derived from USGS 3DEP LPC collects #80
-
I'm trying to switch a workflow for creating digital surface models (DSMs) from downloading USGS 3DEP LPC tiles, converting them to DSM tiles, and stitching the tiles together with GDAL to downloading a 3DEP lidar DSM from Planetary Computer. I've been pulling from example code to get the following:
This fails with :
What am I getting wrong? It's very possible that I'm thinking about the nature of the returned data incorrectly. The 3DEP lidar-derived products don't appear to be a single seamless raster but a set of per-collect rasters. I'm surprised that the returned data doesn't have a CRS and I need to specify one in the |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
Can you share what version of rasterio you're using. The error
We're using
Yes, I believe that's correct. The |
Beta Was this translation helpful? Give feedback.
-
I'm on rasterio 1.3b3 to get Python 3.10 support. Best I can tell, using 1.2.10 would get complicated since it appears to top out at Python 3.9. Up until now, I've relied on the system package manager (
Makes sense—the CRS of USGS LPC collects varies between collects. I've run across some odd ones… |
Beta Was this translation helpful? Give feedback.
-
The code runs as expected with Python 3.10 after updating |
Beta Was this translation helpful? Give feedback.
The code runs as expected with Python 3.10 after updating
stackstac
andrasterio
.