在.nc
轉.csv
時,
使用Matplotlib-Basemap作圖,遇到Error Code:
ValueError: At least one value in the dash list must be positive when using Basemap to transfer .nc file into .csv
個人開發環境:
爬了Stackoverflow,可能的原因兩個:
m.drawparallels
and m.drawmeridians
.m.drawparallels
and m.drawmeridians
裡的lw,但其他函式如果有lw也要注意。Reference:
matplotlib basemap toolkit
plt.savefig(): ValueError: All values in the dash list must be positive