Hello,

I noticed that a Basemap instance yields 1e30 when projecting lat/lon
NaN coordinates.  In the following, nav is a pandas data frame with
navigation coordinates:

  llcrnrlon=np.round(np.min(nav['longitude']))
  llcrnrlat=np.round(np.min(nav['latitude']))
  urcrnrlon=np.round(np.max(nav['longitude']))
  urcrnrlat=np.round(np.max(nav['latitude']))
  lat_0=(llcrnrlat + urcrnrlat) / 2
  lon_0=(llcrnrlon + urcrnrlon) / 2
  lat_1=llcrnrlat + ((urcrnrlat - llcrnrlat) / 6)
  lat_2=urcrnrlat - ((urcrnrlat - llcrnrlat) / 6)
  m=Basemap(projection="aea", lon_0=lon_0, lat_0=lat_0,
            lat_1=lat_1, lat_2=lat_2, width=6000000, height=5000000,
            resolution="h")
  x, y = m(nav['longitude'].values, nav['latitude'].values)

Wherever the coordinates are NaN in the nav object, Basemap projects
them to 1e30 in x and y.  Is this a bug in my Debian sid python 2.7.9
version?

Thanks,

-- 
Seb


------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to