Hello,
I am currently working with Basemap to plot a shapefile on the map. However, I am confused on how to initialize llcrnrx and llcrnry and same for the upper corner. I currently have both latitudes and longitudes for lower and upper corners in degrees. Does this
mean I have to convert from degrees to x,y coordinates? I tried using llcrnrlon and llcrnrlat but it doesn’t seem to like this. Please help me clarify this, any help would be great.
Thank You
Edgar,
You feed lat/lon (float) values. See this example here:
http://matplotlib.org/basemap/users/cea.html
And a whole collection of setting up maps in other projection here:
http://matplotlib.org/basemap/users/mapsetup.html
You also need to make sure that all of inputs make sense together (e.g., you’re not specifying any corners beyond the range of your specific projection)
-p
···
On Mon, Jun 8, 2015 at 10:49 AM, Ronquillo, Edgar Nahum <eronquillo@…652…> wrote:
Hello,
I am currently working with Basemap to plot a shapefile on the map. However, I am confused on how to initialize llcrnrx and llcrnry and same for the upper corner. I currently have both latitudes and longitudes for lower and upper corners in degrees. Does this
mean I have to convert from degrees to x,y coordinates? I tried using llcrnrlon and llcrnrlat but it doesn’t seem to like this. Please help me clarify this, any help would be great.
Thank You
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users
By the way, if you want quick-n-easy plotting of shapefiles, I suggest using GeoPandas, which makes it dead simple.
···
On Mon, Jun 8, 2015 at 1:49 PM, Ronquillo, Edgar Nahum <eronquillo@…652…> wrote:
Hello,
I am currently working with Basemap to plot a shapefile on the map. However, I am confused on how to initialize llcrnrx and llcrnry and same for the upper corner. I currently have both latitudes and longitudes for lower and upper corners in degrees. Does this
mean I have to convert from degrees to x,y coordinates? I tried using llcrnrlon and llcrnrlat but it doesn’t seem to like this. Please help me clarify this, any help would be great.
Thank You
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users