Tagged Questions
The matplotlib basemap toolkit is a library for plotting 2D data on maps in Python. It is similar in functionality to the matlab mapping toolbox, the IDL mapping facilities, GrADS, or the Generic Mapping Tools. PyNGL and CDAT are other libraries that provide similar capabilities in Python.
3
votes
0answers
62 views
+50
using scalebar in matplotlib basemap
from mpl_toolkits.basemap import Basemap
import matplotlib.pyplot as plt
import numpy as np
m = Basemap(projection='cyl',resolution='c',area_thresh=10,llcrnrlon=-180,urcrnrlon=180,\
...
3
votes
0answers
109 views
BufferRegion is cleared by a call to clf()
I have an application in which I'd like to draw counties from a shapefile using Basemap. Drawing the county polygons is the bottleneck in the rendering, and since I'll be drawing the same region of ...
2
votes
0answers
104 views
Reference to Basemap instance's coordinate system
I use the matplotlib basemap toolkit (mpl_basemap.Basemap) to plot GeoTIFF images on a map background using pcolor() or pcolormesh(). For this purpose, I need to transform a meshgrid of x and y ...
2
votes
0answers
130 views
Plotting a map : Rotating arrows for ocean surface currents
Here are the variables displayed by the netCDF file:
I have written this code in order to draw Mediterranean surface currents with a netCDF file :
import netCDF4
from netCDF4 import Dataset
import ...
2
votes
0answers
75 views
File format of Basemap data files
I would like to know the file formats of the following files data files in Matplotlib Basemap toolkit
countries*.dat
countriesmeta*.dat
gshhs*.dat
rivers*.dat
riversmeta*.dat
...
1
vote
0answers
143 views
How to Install Matplotlib Basemap Module on Windows 7 with WinPython (or any Python stack install)?
I've found that the Basemap (module for matplotlib and Python) binary installer for Windows cannot detect Python on the system when Python is installed as part of a stack install, like Anaconda or ...
1
vote
0answers
100 views
take the coordinates of the tiles in pixels, maskocean to cut the tiles on the map. basemap
I have the following map which I have added the tiles on it based on the latitudes and longitudes of the edges.
1- How can I have the coordinates in dpi. (I guess it depends on the dpi I have defined ...
1
vote
0answers
204 views
Python solution to transforming polar stereographic data to mercator projection
I've data in polar stereographic projection and the lat and lon values as well. But I cannot seem to find a simple way to transform this to a mercator (regular square lat and lon) projection in ...
1
vote
0answers
128 views
Plot errorbars on basemap
I would like to plot errorbars on a hammer projection of the whole sky. I want to show where a vector points on the sky, with its associated uncertainties. Trying basemap.errobars like ...
0
votes
0answers
21 views
Spacing of map scatter plot elements
I have a dense scatter plot on a map (produced using Python, matplotlib, and basemap). Here is a part of the image:
I'd like to solve the overlap problem. I think the way to do this is to combine ...
0
votes
0answers
121 views
Installing matplotlib vn 1.2 and Basemap on Ubuntu
I'm trying to install vn 1.2 of Matplotlib on my Ubuntu computer so that I can use some of the animation features. Crucially I also need Basemap.
The only way I've found of importing Basemap is ...
0
votes
0answers
72 views
basemap contourf in an existing irregural grid
I am new to basemap and to python too, so my question may be a little profound to some of you. I have some data that already have a specific lat and lon for every grid point.
I am providing the ...
0
votes
0answers
54 views
matplotlib.Basemap LCC Projection in Southern Hemisphere
I'm trying to plot continental-scale data for Australia using matplotlib.Basemap's LCC projection feature. I've tried a number of different invocations of Basemap, but none can supply a domain that ...
0
votes
0answers
76 views
Is there a more efficient way to calculate the median of measurements on a global map?
Hey you smart guys out there. I implemented a method to count zeros in a row in an array, get the length of such groups of zeros and also get the midpoint as longitude and latitude values to be able ...
0
votes
0answers
93 views
cartesian grid projected to geographical coordinates
I have a set of grids in cartesian coordinates (x, y, z) which I would like to project onto geographical coordinates. When I use imshow with matplotlib basemap it seems as though the grid is simply ...