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
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
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
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.
---
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?
-