Странный результат проекции МеркатораPython

Программы на Python
Anonymous
Странный результат проекции Меркатора

Сообщение Anonymous »

Я хочу нарисовать распределение SIC в заливе Прюдз, но результат проекции Меркатора показался мне странным.
Я нарисовал и в ccrs.SouthPolarStereo, и в ccrs.Mercator, нужен первый результат, но мне нужно нарисовать проекцию Меркатора, как я могу его изменить?

Код: Выделить всё

fig = plt.figure(figsize=[10, 5])
ax1 = fig.add_subplot(1, 2, 1, projection=ccrs.SouthPolarStereo())
fig.subplots_adjust(bottom=0.05, top=0.95,
left=0.04, right=0.95, wspace=0.02)

# Limit the map to -60 degrees latitude and below.
ax1.set_extent([-180, 180, -90, -50], ccrs.PlateCarree())

ax1.add_feature(cfeature.LAND)
cf = ax1.contourf(lon, lat, SIC[0] ,levels=np.linspace(0,1,51),cmap=cmaps.WhiteBlueGreenYellowRed,
transform=ccrs.PlateCarree(),extend='neither',transform_first=True)
ax1.gridlines()

ax2 = fig.add_subplot(1, 2, 2, projection=ccrs.Mercator())
fig.subplots_adjust(bottom=0.05, top=0.95,
left=0.04, right=0.95, wspace=0.02)
# Limit the map to -60 degrees latitude and below.

cf = ax2.contourf(lon, lat, SIC[0] ,levels=np.linspace(0,1,51),cmap=cmaps.WhiteBlueGreenYellowRed,
transform=ccrs.PlateCarree(),extend='neither',transform_first=True)
ax2.add_feature(cfeature.LAND)
ax2.gridlines()

plt.show()

Изображение


Подробнее здесь: https://stackoverflow.com/questions/787 ... projection

Вернуться в «Python»