Skip to content

Commit 60700b8

Browse files
committed
More informative error message when a source->dest ITRF transform is not defined
1 parent 2f6f906 commit 60700b8

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

src/nsidc/iceflow/itrf/converter.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,15 @@ def _itrf_transformation_step(source_itrf: str, target_itrf: str) -> str:
8383

8484
# There may not be a pre-defined helmert transformation. The user may want
8585
# to craft their own transformation pipeline.
86-
err_msg = f"Failed to find a pre-defined ITRF transformation between {source_itrf} and {target_itrf}."
86+
err_msg = (
87+
f"Failed to find a pre-defined ITRF transformation between {source_itrf} and {target_itrf}."
88+
" ITRF transformation parameters are provided by proj's ITRF init files."
89+
" Consider upgrading proj to ensure the latest data is available and try again."
90+
" See https://proj.org/en/latest/resource_files.html#init-files for more information."
91+
f" If no pre-defined transformation is available for {source_itrf} -> {target_itrf},"
92+
" it may be possible to define your own transformation using parameters found at https://itrf.ign.fr/."
93+
" See https://proj.org/en/latest/operations/transformations/helmert.html for more information."
94+
)
8795
raise RuntimeError(err_msg)
8896

8997

0 commit comments

Comments
 (0)