Hi, On Tue, Jun 3, 2008 at 10:59 PM, Jeff Whitaker <[EMAIL PROTECTED]> wrote: > > There are alternate versions num2date and a date2num in basemap that handle > arbitrary calendars (not just 'proleptic gregorian') and arbitrary reference > times (not just 'days since 0001-01-01 00:00:00'). The docstrings are at > http://matplotlib.sourceforge.net/mpl_toolkits.basemap.basemap.html, down > near the bottom of the page. > > I don't know if this addresses the problem you're talking about though...
I agree with you Jeff: your version of date2num (and num2date) perfectly does the job. Maybe the 'units' argument should defaults to 'days since 0001-01-01' for backward compatibility. And maybe, as for the DateConverter, the 'unit' argument in axis_info() and convert() should follow the CF conventions (http://cf-pcmdi.llnl.gov/documents/cf-conventions/1.2/cf-conventions.html#time-coordinate) as Jeff's functions, and default_units() should return 'days since 0001-01-01'. > > -Jeff > > -- > Jeffrey S. Whitaker Phone : (303)497-6313 > Meteorologist FAX : (303)497-6449 > NOAA/OAR/PSD R/PSD1 Email : [EMAIL PROTECTED] > 325 Broadway Office : Skaggs Research Cntr 1D-113 > Boulder, CO, USA 80303-3328 Web : http://tinyurl.com/5telg > > -- Stephane Raynaud ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel