Compass swinging is a method used to determine and correct the deviation of a magnetic compass. During the swing, the compass is aligned in different directions to measure and adjust the error. In India, compass swing services are offered to ensure that the compass is functioning properly and complies with DG Shipping and IMO standards.