Create image with higher resolution basemap

Hi Folks -

i have a simply Python script below that shows a low res basemap of Maui
using the Blue Marble imagery. Can anyone provide info on how to create a
high res map? Thanks!

- Jorma

from mpl_toolkits.basemap import Basemap
import matplotlib.pyplot as plt
import numpy as np

map = Basemap(projection='merc', lat_0 = 21, lon_0 = -156,
    resolution = 'f', area_thresh = 0.1,
    llcrnrlon=-156.753926, llcrnrlat=20.537775,
    urcrnrlon=-155.958679, urcrnrlat=21.058561)

map.bluemarble()
map.drawcoastlines()
map.drawcountries()
map.drawmapboundary()

lon = -156.325691
lat = 20.922652
x,y = map(lon, lat)
map.plot(x, y, 'bo', markersize=14)

plt.show()

···

--
View this message in context: http://matplotlib.1069221.n5.nabble.com/Create-image-with-higher-resolution-basemap-tp44428.html
Sent from the matplotlib - users mailing list archive at Nabble.com.

That function is merely using the (relatively) lower res image that comes packaged with basemap, and comes with features to help downsample it if needed. I think you can get higher res images using the wmsimage() method.

I hope that points you to the right direction!

Cheers!
Ben Root

···

On Tue, Nov 18, 2014 at 9:09 PM, jorma <aloha@…4598…> wrote:

Hi Folks -

i have a simply Python script below that shows a low res basemap of Maui

using the Blue Marble imagery. Can anyone provide info on how to create a

high res map? Thanks!

  • Jorma

from mpl_toolkits.basemap import Basemap

import matplotlib.pyplot as plt

import numpy as np

map = Basemap(projection=‘merc’, lat_0 = 21, lon_0 = -156,

resolution = 'f', area_thresh = 0.1,

llcrnrlon=-156.753926, llcrnrlat=20.537775,

urcrnrlon=-155.958679, urcrnrlat=21.058561)

map.bluemarble()

map.drawcoastlines()

map.drawcountries()

map.drawmapboundary()

lon = -156.325691

lat = 20.922652

x,y = map(lon, lat)

map.plot(x, y, ‘bo’, markersize=14)

plt.show()

View this message in context: http://matplotlib.1069221.n5.nabble.com/Create-image-with-higher-resolution-basemap-tp44428.html

Sent from the matplotlib - users mailing list archive at Nabble.com.


Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server

from Actuate! Instantly Supercharge Your Business Reports and Dashboards

with Interactivity, Sharing, Native Excel Exports, App Integration & more

Get technology previously reserved for billion-dollar corporations, FREE

http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk


Matplotlib-users mailing list

Matplotlib-users@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Thanks Ben! That helped. I ended up using this method instead…

map.arcgisimage(service='ESRI_Imagery_World_2D', xpixels = 1500, verbose=
True)

Works great!

- Jorma

···

--
View this message in context: http://matplotlib.1069221.n5.nabble.com/Create-image-with-higher-resolution-basemap-tp44428p44442.html
Sent from the matplotlib - users mailing list archive at Nabble.com.