matplotlib和cartopy的边缘问题

时间:2019-06-28 10:18:32

标签: python matplotlib cartopy

我试图使用matplotlib和cartopy将前哨图像放在一起。它主要起作用,相反,边缘像这样模糊: enter image description here

print('globe')
north_crs = ccrs.NorthPolarStereo()
north_globe = ccrs.Globe(semiminor_axis=90)
north_xform_crs = ccrs.Geodetic(globe=north_globe)
colorlists = [None] * len(file_paths)
lonslist = [None] * len(file_paths)
latslist = [None] * len(file_paths)

fig = plt.figure()
GeoAxes._pcolormesh_patched = Axes.pcolormesh
ax = plt.axes(projection=north_crs)
ax.coastlines()
data = np.zeros([image_pixel, image_pixel], dtype=np.uint8)
GeoAxes._pcolormesh_patched = Axes.pcolormesh

for i in range(len(file_paths)):
    print(f'file #{i}')
    color_list, lons, lats = getInfos(file_paths[i], north_crs, north_xform_crs)
    colorlists[i] = color_list
    lonslist[i] = lons
    latslist[i] = lats
    ax.pcolormesh(lons, lats, data, transform=north_crs, color=color_list)

我确实尝试将矩阵合二为一。有效。但是每个哨点图片都是10980 * 10980,我认为我可以访问的计算机或服务器无法处理此数量的数据,从而无法为我提供北极图片

0 个答案:

没有答案