import folium
import pandas as pd
import numpy as np
import os
data=pd.read_csv("Stationid_list.csv")[["Latitude","Longitude"]]
lon=list(data["Latitude"])
lat=list(data["Longitude"])
m=folium.Map([np.mean(lon),np.mean(lat)],zoom_start=15)
location=np.array(data)
for i in range(len(location)):
map_=folium.Marker(location[i],icon=folium.Icon(color="red",icon="info-sign")).add_to(m)
m.save(os.path.join("E://python","map.html"))
AETA地震预测AI算法大赛监测站分布图
最新推荐文章于 2022-12-17 22:02:22 发布