Skip to content

Commit

Permalink
NPI-3668 add logic to update ORB_TYPE SP3 header field to HLM, when a…
Browse files Browse the repository at this point in the history
… Helmert transformation is applied
  • Loading branch information
treefern committed Dec 23, 2024
1 parent 23cd745 commit dc906ee
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion gnssanalysis/gn_io/sp3.py
Original file line number Diff line number Diff line change
Expand Up @@ -916,10 +916,13 @@ def sp3_hlm_trans(a: _pd.DataFrame, b: _pd.DataFrame) -> tuple[_pd.DataFrame, li
:param DataFrame a: The sp3_a DataFrame.
:param DataFrame b : The sp3_b DataFrame.
:returntuple[pandas.DataFrame, list]: A tuple containing the updated sp3_b DataFrame and the HLM array with applied computed parameters and residuals.
:return tuple[pandas.DataFrame, list]: A tuple containing the updated sp3_b DataFrame and the HLM array with
applied computed parameters and residuals. The ORB_TYPE header of the output DataFrame is updated to HLM.
"""
hlm = _gn_transform.get_helmert7(pt1=a.EST[["X", "Y", "Z"]].values, pt2=b.EST[["X", "Y", "Z"]].values)
b.iloc[:, :3] = _gn_transform.transform7(xyz_in=b.EST[["X", "Y", "Z"]].values, hlm_params=hlm[0])

b.attrs["HEADER"].head.ORB_TYPE = "HLM" # Update b's header to reflect Helmert transformation has been applied
return b, hlm


Expand Down

0 comments on commit dc906ee

Please sign in to comment.