Re: [Matplotlib-users] Basemap from proj4 string

2014-11-07 Thread Joe Kington
I agree that it would be useful, but basemap doesn't support EPSG codes, so this isn't fully possible in general. On a side note, if you're ever just wanting to transform coordinates, pyproj supports generic proj4 strings. (e.g. "proj = pyproj.Proj(your_proj4_string)") It might be possible to in

Re: [Matplotlib-users] Basemap from proj4 string

2014-11-07 Thread Knut-Frode Dagestad
As an example, say I have a proj4 string defining a spatial reference system: p4 = '+lon_0=0.0 +lat_ts=60.0 +R=6370997.0 +proj=stere +x_0=-0.0 +units=m +y_0=4327039.11059 +lat_0=90.0' Then one can construct a Basemap from this as: map = Basemap(projection='stere', lon_0=0., lat_0=90, lat_ts=60

Re: [Matplotlib-users] Basemap from proj4 string

2014-11-05 Thread Paul Hobson
I think some examples would help. Which proj4 string are you looking to use? How are you currently constructing the map? -p On Wed, Nov 5, 2014 at 7:53 AM, knutfrode wrote: > Does anyone know if this is possible? > > > > > > -- > View this message in context: > http://matplotlib.1069221.n5.nabbl

Re: [Matplotlib-users] Basemap from proj4 string

2014-11-05 Thread knutfrode
Does anyone know if this is possible? -- View this message in context: http://matplotlib.1069221.n5.nabble.com/Basemap-from-proj4-string-tp43428p44290.html Sent from the matplotlib - users mailing list archive at Nabble.com. ---

[Matplotlib-users] Basemap from proj4 string

2014-05-20 Thread Knut-Frode Dagestad
Hi, Is it possible to create a Basemap instance directly from a proj4 string and min/max values of the x and y coordinates? Or is there a simple and safe way to construct Basemap input arguments/values from a general proj.4 string? -