- 积分
- 520
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2015-10-4
- 最后登录
- 1970-1-1
|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
本帖最后由 哈库拉玛塔塔000 于 2021-11-15 16:14 编辑
meteoinfo画散点图,数据无问题,但是散点显示不全,也不报错,请问是什么问题呢?
#Set data folders
fn = 'F:/test\hainan_data/rev/20211108/202111080000.csv'
table = readtable(fn, delimiter=',', format='%8f')
##温度
levs = arange(2,32,2)
cols = [(215,222,126),(234,219,112),(244,217,99),(250,204,79),(247,180,45),(242,155,0),(241,147,3),(240,132,10),(239,117,17),(238,102,24),(238,88,31),(231,75,26),(224,63,22),(217,51,18),(208,35,14),(194,0,3)]
pr = table['T']
var = 'Temperature'
lat =table['lat']
lon = table['lon']
print pr
print lat
print lon
#Plot
axesm(tickfontname='Times New Roman', fontname='Times New Roman')
m_china = geoshow('hainan', visible=True)
layer = scatterm(lon, lat, pr, levs, colors = cols, s=3, edgecolor=None)
masklayer(m_china, [layer])
time_var = '2021-11-08 00:00 '+var
title(time_var)
colorbar(layer)
xlim(108.2, 111.5)
ylim(18, 20.2)
savefig('F:/test/hainan_data/pic/rev/2021-11-08_00-00_csv0_'+var+'.png',width=800, height=600)
|
|