前期数据处理
(33条消息) C++:保存char、int 和double到txt文件_他人是一面镜子,保持谦虚的态度的博客-CSDN博客
一、单系统代码
import math
import matplotlib.pyplot as plt
f = open('cpt-base.txt', 'r') #Add the derived file path
ID=[]
AZ=[]
EL=[]
ln = f.readline()
while ln:
ln = f.readline()
if not ln:
break
str = ln.split()
id = str[2]
az = float(str[3])/180*math.pi
el = 90 - float(str[4])
ID.