【发布时间】:2014-01-13 03:52:51
【问题描述】:
etopo 背景图片的默认分辨率很低。如何获得高分辨率背景?
【问题讨论】:
标签: matplotlib matplotlib-basemap
etopo 背景图片的默认分辨率很低。如何获得高分辨率背景?
【问题讨论】:
标签: matplotlib matplotlib-basemap
通过warpimage() 函数,您可以使用任何自定义图像作为地图背景。图像必须是全球性的,从国际日期变更线向东和南极向北以纬度/经度坐标覆盖世界。
【讨论】:
您可以直接使用.etopo() method。
【讨论】:
我刚遇到一些类似的事情!起初我想也许我应该去格林威治标准时间。但最后我发现了这个:
http://basemaptutorial.readthedocs.org/en/latest/backgrounds.html
我在 Basemap 中使用了 arcgisimage()。一旦您确定了相应的epsg 兴趣点数量,并设置了绘图范围,您很可能会得到一张漂亮的照片。 (EPSG 编号很重要。) 这是我的代码。 (兴趣点:洛杉矶)
from mpl_toolkits.basemap import Basemap
import matplotlib.pyplot as plt
map = Basemap(llcrnrlon=-118.5,llcrnrlat=33.15,urcrnrlon=-117.15,urcrnrlat=34.5, epsg=4269)
#http://server.arcgisonline.com/arcgis/rest/services
#EPSG Number of America is 4269
map.arcgisimage(service='ESRI_Imagery_World_2D', xpixels = 2000, verbose= True)
plt.show()
如果你想要 etopo 背景,你可以使用 'ESRI_Imagery_World_2D',看起来非常相似。从脚本中你可以看到该区域的宽度和长度都小于 1 度。(以纬度和经度为单位)
还有很多服务可供选择! (我不是在打广告。(。・`ω´・))
【讨论】: