|
From: Jeff W. <jef...@no...> - 2012-02-01 16:40:10
|
On 2/1/12 9:15 AM, Benjamin Root wrote: > > > On Wed, Feb 1, 2012 at 9:59 AM, Alexis Praga <ale...@fr... > <mailto:ale...@fr...>> wrote: > > Hi, > > I have not found any documentation on plotting non regular data with > basemap *without* interpolation. > Plotting scattered data on the sphere works fine, but the size of each > point seems to be limited, so there are "holes". > Is there an option in basemap for that ? > > > Alexis > > > pcolor might be what you want (not pcolormesh()). I use it to plot > radar data when there might be gaps in the coverage. > > Ben Root To do this you will have to bin your data into rectangular grid boxes, filling a masked array (with the grid boxes that have no data masked). There's some code to this at http://www.scipy.org/Cookbook/Matplotlib/Gridding_irregularly_spaced_data -Jeff -- Jeffrey S. Whitaker Phone : (303)497-6313 Meteorologist FAX : (303)497-6449 NOAA/OAR/PSD R/PSD1 Email : Jef...@no... 325 Broadway Office : Skaggs Research Cntr 1D-113 Boulder, CO, USA 80303-3328 Web : http://tinyurl.com/5telg |