|
From: Jeff W. <js...@fa...> - 2005-06-27 20:39:18
|
Chris Barker wrote: > > > Sean Gillies wrote: > >> There is >> >> http://hobu.biz/software/pyprojection/ > > > Thanks! I thought I'd seen that but couldn't find it just now. Does > anyone know if it is Numeric/numarray aware? I'd need that to get he > performance I'd need. It look like Jeff's code is. > > Jeff, any particular reason you didn't use this? Chris: I did use it at first, but decided that a simple pyrex wrapper was simpler and easier to maintain. My module is not really fully optimized to take advantage of numarray - it does the transformation one point at a time in a c-loop and stuffs the result in a list. So, there's a lot of overhead in repeatedly calling the proj4 c-routine. It would be a lot faster to recode the proj4 c-routine to process the whole array at once. -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 |