Commit 8d0276c9 authored by BERGER's avatar BERGER
Browse files

Ajout label Track dans l'export csv

parent e69630b1
......@@ -114,12 +114,12 @@ plt.grid(True)
plt.show()
#export csv
header = ['Time', 'Latitude', 'Longitude','Depth','TS (dB)']
header = ['Time', 'Latitude', 'Longitude','Depth','TS (dB)','Label Track']
for f in range(len(TSfreq)):
with open('%s/%s-TH%d-EK80-%s-%s-TS_freq_%dkHz.csv' % (path_csv,survey_name,thresholds[0],indexSounder,indexTransducer,TSfreq[f]), 'w', newline='') as csvfile:
writer = csv.writer(csvfile, delimiter=' ')
writer.writerow(h for h in header)
for i in range (len(timeTarget_all)):
writer.writerow((timeTarget_all[i].strftime("%d/%m/%Y %H:%M:%S"),TSposition[i,0],TSposition[i,1],TSposition[i,2],TSvalues[i,f]))
writer.writerow((timeTarget_all[i].strftime("%d/%m/%Y %H:%M:%S"),TSposition[i,0],TSposition[i,1],TSposition[i,2],TSvalues[i,f],TSlabel_all[i]))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment