diff --git a/sarsen/scene.py b/sarsen/scene.py index fd9b0a2..1ac69c2 100644 --- a/sarsen/scene.py +++ b/sarsen/scene.py @@ -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,