From: Jeff W. <js...@fa...> - 2005-10-14 17:27:47
|
Jesper Larsen wrote: >Hi matplotlib users, > >I have a long list of ungridded data that I would like to make a contour plot >of. The data is simply a list of (longitude, latitude, datavalue) with the >data value belonging the given longitude and latitude. As far as I understand >contour() only accepts gridded data values. > >The solution is probably to interpolate the unstructured data to a regular >grid and then plot the data. Has anyone tried doing that or know where to >look for an interpolation/triangulation routine? > >Cheers, >Jesper > > > > Jesper: I've had good luck with the natgrid package in CDAT (http://cdat.sf.net). It will grid unstructured data for you. You can install it without installing the rest of CDAT, just go to the contrib/natgrid directory and run setup.py install. -Jeff -- Jeffrey S. Whitaker Phone : (303)497-6313 Meteorologist FAX : (303)497-6449 NOAA/OAR/CDC R/CDC1 Email : Jef...@no... 325 Broadway Office : Skaggs Research Cntr 1D-124 Boulder, CO, USA 80303-3328 Web : http://tinyurl.com/5telg |