Sunspots are areas where the magnetic field on the sun is very intense. The outbreak of sunspots has an impact on our lives, such as the temporary interruption of radio communications. Therefore, studying sunspots is important to us. Geomagnetic changes can be used to explore deposits. Since all materials have strong or weak magnetic properties, if they come together to form a deposit, they will inevitably interfere with the geomagnetic field in the nearby area, causing anomalies in the geomagnetic field. According to this, the magnetism of the earth can be measured on land, in the ocean or in the air, and the geomagnetic map can be obtained. The analysis and further exploration of the magnetic field anomaly on the geomagnetic map can often reveal unknown mineral deposits or special geological structures.