Skip to content

download_dem() via py3dep (USGS 3DEP) incorrectly assumes ellipsoid #22

@brentwilder

Description

@brentwilder

Currently download_dem() function within the pipeline automatically gets USGS 3DEP 1m elevation product IF the user does not provide a DEM.

It incorrectly assumes USGS DEM are in ellipsoid and/or that performing projection in rasterio takes care of vertical datum change.

Options @Surfix and I discussed to fix this:

  1. We could remove this entirely and perhaps include as a separate utility script , prior to the new geoid-tool?
  2. We could add an if-statement to the download_dem() function to change the vertical datum to ellipsoid if the input lidar point cloud is also in ellipsoid (using Ames Stereo Pipeline method)
  3. We could remove this component entirely, and just point users to get their own DEM either from USGS 3DEP, https://www.usgs.gov/tools/download-data-maps-national-map, or other. This may be best use case, because then we're not constrained to define what resolution they want (1, 10, 30, 90 meters). Also, there were some serious issues I was having early on when we tested because py3dep uses a dynamic map over the static maps data products, which introduced a lot of tiling artifacts in testing, see closed issue here: Edge artifacts ~60m present in USGS dem.tif #2 . Reference DEMs should be of the highest quality for this tool to work best, and so, it would make sense for users to have more control with how/where getting DEM data.

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions