- 积分
- 3454
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2021-4-11
- 最后登录
- 1970-1-1
|
楼主 |
发表于 2021-8-8 22:49:35
|
显示全部楼层
本帖最后由 zhuyidong 于 2021-8-8 22:54 编辑
- fig_ax11 = fig.add_axes([0.535, 0.33, 0.52, 0.11],projection = proj)# 左右
- fig_ax11.set_extent([105, 125, 0, 25], crs=ccrs.PlateCarree())
- fig_ax11.add_feature(cfeature.COASTLINE.with_scale('50m'))
- fig_ax11.add_feature(cfeature.OCEAN.with_scale('50m'))
- fig_ax11.add_feature(cfeature.LAND.with_scale('50m'))
- china = shpreader.Reader('E:\\map\\map3\\bou2_4l.dbf').geometries()
- fig_ax11.add_geometries(china, ccrs.PlateCarree(),facecolor='none', edgecolor='black',zorder = 1)
- c2=fig_ax11.contourf(lon,lat, eof[0,:,:],transform=ccrs.PlateCarree(), cmap='jet')
- clip=maskout.shp2clip(c2,fig_ax11,'F:\BaiduNetdiskDownload\Data_ipynb\Data_ipynb\country1','China')
复制代码 上面是南海代码,哥说的数据筛选,我试了,在eof[0,:,:]用筛选,不知道为啥能白化,颜色对不上,代码和图在下面- fh2=f["air"].loc['1951-01-01':'2020-12-01',25:15,105:125]# 1991-30 1985-36 1983-378
- lat1 = fh2['lat']
- lon1 = fh2['lon']
- fig_ax11 = fig.add_axes([0.535, 0.33, 0.52, 0.11],projection = proj)# 左右
- fig_ax11.set_extent([105, 125, 0, 25], crs=ccrs.PlateCarree())
- fig_ax11.add_feature(cfeature.COASTLINE.with_scale('50m'))
- china = shpreader.Reader('E:\\map\\map3\\bou2_4l.dbf').geometries()
- fig_ax11.add_geometries(china, ccrs.PlateCarree(),facecolor='none', edgecolor='black',zorder = 1)
- c2=fig_ax11.contourf(lon1,lat1, eof[0,:,:][-5::,-15:-6],transform=ccrs.PlateCarree(), cmap='jet')
- clip=maskout.shp2clip(c2,fig_ax11,'F:\BaiduNetdiskDownload\Data_ipynb\Data_ipynb\country1','China')
复制代码 还有eof[0,:,:]的二维数据和经纬度对应的我自己搞的,不知道对不对,麻烦哥给我看看,搞了几天了。。 |
-
筛选后
-
筛选后数据
|