Skip to content

Commit

Permalink
fix: bug
Browse files Browse the repository at this point in the history
  • Loading branch information
roelofvandijkO committed May 11, 2024
1 parent e9f8dd1 commit da024bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion s2p/rpc_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def min_max_heights_from_bbx(im, lon_m, lon_M, lat_m, lat_M, rpc, exogenous_dem_
assert len([x for x in proj_crs.sub_crs_list if x.is_vertical]) == 1, f"Found more than 1 vertical CRS {proj_crs.sub_crs_list}"
horizontal_crs = [x for x in proj_crs.sub_crs_list if not x.is_vertical][0]
vertical_datum = [x for x in proj_crs.sub_crs_list if x.is_vertical][0]
crs_epsg = f"epsg:{horizontal_crs}+{vertical_datum}"
crs_epsg = f"epsg:{horizontal_crs.to_epsg()}+{vertical_datum.to_epsg()}"
else:
crs_epsg = proj_crs.to_epsg()
# convert lon/lat to im projection
Expand Down

0 comments on commit da024bf

Please sign in to comment.