爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博登陆

只需一步, 快速开始

搜索
查看: 6943|回复: 4

ERA5数据meteoinfo一页多图

[复制链接]

新浪微博达人勋

发表于 2021-2-4 15:25:08 | 显示全部楼层 |阅读模式

登录后查看更多精彩内容~

您需要 登录 才可以下载或查看,没有帐号?立即注册 新浪微博登陆

x
f = addfile("F:/1221-22.nc")
gh= f['z'][2,"500","30":"50","90":"130"]/100
udata = f['u'][2,"500","30":"50","90":"130"]
vdata = f['v'][2,"500","30":"50","90":"130"]
rmdata=f['r'][2,"500","30":"50","90":"130"]
tmdata=f['t'][2,"500","30":"50","90":"130"]-273.15
lon = f['longitude']["90":"130"]
lat = f['latitude']["30":"50"]
udata=udata[::9,::9]
vdata=vdata[::9,::9]
speed = sqrt(udata*udata+vdata*vdata)
lon, lat = meshgrid(lon, lat)

figure(figsize=[900, 520], newfig=False)
axesm(position=[0.04,0.52,0.42,0.44],tickfontsize=12,tickbold=True)

levgh=arange(510,588,6)
layergh = contourm(gh,levgh,size=2,color='black')#绘制高度场等值线
clabel(layergh,drawshadow=True,fontsize=12,bold=True)#标注值
#风场
layerw = barbsm(udata,vdata,size=14,color="black")
#相对湿度阴影
levsrh = arange(60,100,10)
colsrh = [(255,255,255),(0,229,238),(0,238,0),(0,205,0),(0,160,0),(0,130,0)]
layerrh = contourfm(rmdata,levsrh,colors=colsrh)
#colorbar(layerrh,fontsize=12)
#温度
levs = arange(-80,0,4)
layert = contourm(tmdata,levs,size=2,color='r',linestyle='--')
clabel(layert)
mlayer1 = shaperead('E:\MeteoInfo\map\cn_province.shp')
geoshow(mlayer1, edgecolor='black',size=1)
xlim(90,130)
ylim(30,50)
xticks([90,100,110,120,130],fontsize=12,bold=True)
yticks([30,35,40,45,50],fontsize=12,bold=True)

f = addfile("F:/1221-22.nc")
gh= f['z'][2,"850","30":"50","90":"130"]/10
udata = f['u'][2,"850","30":"50","90":"130"]
vdata = f['v'][2,"850","30":"50","90":"130"]
rmdata=f['r'][2,"850","30":"50","90":"130"]
tmdata=f['t'][2,"850","30":"50","90":"130"]-273.15
lon = f['longitude']["90":"130"]
lat = f['latitude']["30":"50"]
udata=udata[::9,::9]
vdata=vdata[::9,::9]
speed = sqrt(udata*udata+vdata*vdata)
lon, lat = meshgrid(lon, lat)
axesm(position=[0.52,0.52,0.42,0.44],tickfontsize=12,tickbold=True)
levgh=arange(1000,1900,60)
layergh = contourm(gh,levgh,size=2,color='black')#绘制高度场等值线
clabel(layergh,drawshadow=True,fontsize=12,bold=True)#标注值
#风场
layerw = barbsm(udata,vdata,size=14,color="black")
#相对湿度阴影
levsrh = arange(60,100,10)
colsrh = [(255,255,255),(0,229,238),(0,238,0),(0,205,0),(0,160,0),(0,130,0)]
layerrh = contourfm(rmdata,levsrh,colors=colsrh)
#colorbar(layerrh,fontsize=12)
#温度
levs1 = arange(-80,0,4)
layert1 = contourm(tmdata,levs1,size=2,color='r',linestyle='--')
clabel(layert1)
levs2 = arange(0,80,4)
layert2 = contourm(tmdata,levs2,size=2,color='r',linestyle='-')
clabel(layert2)
mlayer1 = shaperead('E:\MeteoInfo\map\cn_province.shp')
geoshow(mlayer1, edgecolor='black',size=1)
xlim(90,130)
ylim(30,50)
xticks([90,100,110,120,130],fontsize=12,bold=True)
yticks([30,35,40,45,50],fontsize=12,bold=True)

f = addfile("F:/1221-22.nc")
gh= f['z'][3,"500","30":"50","90":"130"]/100
udata = f['u'][3,"500","30":"50","90":"130"]
vdata = f['v'][3,"500","30":"50","90":"130"]
rmdata=f['r'][3,"500","30":"50","90":"130"]
tmdata=f['t'][3,"500","30":"50","90":"130"]-273.15
lon = f['longitude']["90":"130"]
lat = f['latitude']["30":"50"]
udata=udata[::9,::9]
vdata=vdata[::9,::9]
speed = sqrt(udata*udata+vdata*vdata)
lon, lat = meshgrid(lon, lat)

axesm(position=[0.04,0.06,0.42,0.44],tickfontsize=12,tickbold=True)

levgh=arange(510,588,6)
layergh = contourm(gh,levgh,size=2,color='black')#绘制高度场等值线
clabel(layergh,drawshadow=True,fontsize=12,bold=True)#标注值
#风场
layerw = barbsm(udata,vdata,size=14,color="black")
#相对湿度阴影
levsrh = arange(60,100,10)
colsrh = [(255,255,255),(0,229,238),(0,238,0),(0,205,0),(0,160,0),(0,130,0)]
layerrh = contourfm(rmdata,levsrh,colors=colsrh)
#colorbar(layerrh,fontsize=12)
#温度
levs = arange(-80,0,4)
layert = contourm(tmdata,levs,size=2,color='r',linestyle='--')
clabel(layert)
mlayer1 = shaperead('E:\MeteoInfo\map\cn_province.shp')
geoshow(mlayer1, edgecolor='black',size=1)
xlim(90,130)
ylim(30,50)
xticks([90,100,110,120,130],fontsize=12,bold=True)
yticks([30,35,40,45,50],fontsize=12,bold=True)

#caxes(axs[3])
f = addfile("F:/1221-22.nc")
gh= f['z'][3,"850","30":"50","90":"130"]/10
udata = f['u'][3,"850","30":"50","90":"130"]
vdata = f['v'][3,"850","30":"50","90":"130"]
rmdata=f['r'][3,"850","30":"50","90":"130"]
tmdata=f['t'][3,"850","30":"50","90":"130"]-273.15
lon = f['longitude']["90":"130"]
lat = f['latitude']["30":"50"]
udata=udata[::9,::9]
vdata=vdata[::9,::9]
speed = sqrt(udata*udata+vdata*vdata)
lon, lat = meshgrid(lon, lat)
axesm(position=[0.52,0.06,0.42,0.44],tickfontsize=12,tickbold=True)
levgh=arange(1200,1900,60)
layergh = contourm(gh,levgh,size=2,color='black')#绘制高度场等值线
clabel(layergh,drawshadow=True,fontsize=12,bold=True)#标注值
#风场
layerw = barbsm(udata,vdata,size=14,color="black")
#相对湿度阴影
levsrh = arange(60,100,10)
colsrh = [(255,255,255),(0,229,238),(0,238,0),(0,205,0),(0,160,0),(0,130,0)]
layerrh = contourfm(rmdata,levsrh,colors=colsrh)
#温度
levs1 = arange(-80,0,4)
layert1 = contourm(tmdata,levs1,size=2,color='r',linestyle='--')
clabel(layert1)
levs2 = arange(0,80,4)
layert2 = contourm(tmdata,levs2,size=2,color='r',linestyle='-')
clabel(layert2)
mlayer1 = shaperead('E:\MeteoInfo\map\cn_province.shp')
geoshow(mlayer1, edgecolor='black',size=1)
xlim(90,130)
ylim(30,50)
xticks([90,100,110,120,130],fontsize=12,bold=True)
yticks([30,35,40,45,50],fontsize=12,bold=True)

axes(position=[0.53,0.26,0.42,0.44],newaxes=True, axis=False,tickfontsize=12,tickbold=True)
colorbar(layerrh,fontsize=12)

tu.png
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2021-2-6 17:25:09 | 显示全部楼层
楼主能传一下您下载数据的具体链接吗?
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

新浪微博达人勋

发表于 2021-2-28 19:17:33 | 显示全部楼层
楼主可以注释一下吗
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

新浪微博达人勋

发表于 2021-2-28 20:28:59 | 显示全部楼层
jython吗
密码修改失败请联系微信:mofangbao
回复

使用道具 举报

新浪微博达人勋

 楼主| 发表于 2021-7-2 16:12:10 | 显示全部楼层
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册 新浪微博登陆

本版积分规则

Copyright ©2011-2014 bbs.06climate.com All Rights Reserved.  Powered by Discuz! (京ICP-10201084)

本站信息均由会员发表,不代表气象家园立场,禁止在本站发表与国家法律相抵触言论

快速回复 返回顶部 返回列表