Skip to content

Commit

Permalink
Take source_crs from dem_3d by default
Browse files Browse the repository at this point in the history
  • Loading branch information
alexamici committed Feb 9, 2024
1 parent 4677d96 commit aab97c8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sarsen/scene.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,12 @@ def convert_to_dem_3d(

def transform_dem_3d(
dem_3d: xr.DataArray,
source_crs: str,
source_crs: str = None,
target_crs: str = ECEF_CRS,
dim: str = "axis",
) -> xr.DataArray:
if source_crs is None:
source_crs = dem_3d.rio.crs
try:
x, y, z = warp.transform(
source_crs,
Expand Down

0 comments on commit aab97c8

Please sign in to comment.