When converting between body and observer (camera) coordinates in viewing geometry related code, longitudes are shifted to take into account the sub-observation longitude. For example, the following code exists in MaRC::ViewingGeometry::latlon2pix():
Since this is basically just a rotation about the Z-axis, it should be possible incorporate this rotation in to the rotation matrices used when converting between body and observer coordinates. Doing so would further simplify such lat/lon-pixel conversion code.
When converting between body and observer (camera) coordinates in viewing geometry related code, longitudes are shifted to take into account the sub-observation longitude. For example, the following code exists in
MaRC::ViewingGeometry::latlon2pix()
:Since this is basically just a rotation about the Z-axis, it should be possible incorporate this rotation in to the rotation matrices used when converting between body and observer coordinates. Doing so would further simplify such lat/lon-pixel conversion code.