With the proposal of ocean strategic planning, the measurement of optical parameters and the study of atmospheric models have become particularly important. In order to solve the problem that traditional sun-photometer cannot track the sun accurately on the moving platform at sea, a design scheme of shipboard sun-photometer is proposed for the limitation of water vapor and aerosol measurement. In this paper, the overall structure of shipboard sun-photometer and tracking technology route are described in detail,and the depth analysis is carried out in three aspects:the sloshing compensation of the hull,how to locate the azimuth of the sun at sea,the size and accuracy of the tracking field of view. Firstly, the fisheye imaging system is combined with the astronomical and celestial trajectory tracking to perform rough tracking of the sun in the large field of view, and then fine tracking by the CCD image processing technology of the small field of view. Double compensation for hull sway through the attitude sensing system and the gyrostabilization platform. The measurement of marine water vapor and atmospheric aerosols is accomplished by fully automated real-time precise tracking of the sun. Finally, the key indicators were calculated and analyzed, and the tracking accuracy and measurement field of view were determined.