Skip to content

refactor merge_and_transform_dem_tiles to combine operations#144

Open
mikegraham wants to merge 2 commits into
ACCESS-Cloud-Based-InSAR:devfrom
mikegraham:single-warp
Open

refactor merge_and_transform_dem_tiles to combine operations#144
mikegraham wants to merge 2 commits into
ACCESS-Cloud-Based-InSAR:devfrom
mikegraham:single-warp

Conversation

@mikegraham
Copy link
Copy Markdown

Closes #143

Previously merge_and_transform_dem_tiles potentially had two operations performed on the DEM data in two separate reproject_arr_to_match_profile calls. This combines the two into one for performance reasons.

Also, only one used the num_threads_reproj before, so this compounds the speedup by doing the single operation with num_threads_reproj.

@mikegraham mikegraham force-pushed the single-warp branch 4 times, most recently from bcaf037 to fa93abd Compare March 4, 2026 18:36
@mikegraham mikegraham force-pushed the single-warp branch 2 times, most recently from 0ba5bc0 to a1f2353 Compare March 8, 2026 15:40
The old code did two separate reproject calls: one for CRS (4269->4326)
and one for resolution. This combines them into a single warp via
_build_target_profile, which computes the target profile with both
changes applied.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improve performance of merge_and_transform_dem_tiles

2 participants