function getScAttitude(instrumAttitude, timeStamp) result(scAttitude)
real(double), intent(in) :: timeStamp
type(SpacecraftAttitudeType), intent(in) :: instrumAttitude
type(SpacecraftAttitudeType) :: scAttitude
end function getScAttitude
NOTE this function requires the cal to have been set to the correct instrument before the call.