From William.T.Bridgman.1 at gsfc.nasa.gov Thu Apr 1 08:04:58 2004 From: William.T.Bridgman.1 at gsfc.nasa.gov (W.T. Bridgman) Date: Thu, 1 Apr 2004 08:04:58 -0500 Subject: [AstroPy] Comprehensive python time code class? In-Reply-To: <200403192049.i2JKnRL25405@laplace.astro.cornell.edu> References: <200403192049.i2JKnRL25405@laplace.astro.cornell.edu> Message-ID: <2DC37DC0-83DD-11D8-9E0A-0030657B87AC@gsfc.nasa.gov> After perusing the rather long documentation, mxDateTime seems to have a number of components I'm looking for (and then some). It successfully built out-of-the-box on OS X and looks like it works. As I integrate it into my processes, I'll notify the list if I encounter any problem issues. Thanks, Tom On Mar 19, 2004, at 3:49 PM, Tom Loredo wrote: > >> I've coded a simple and not terribly comprehensive version but I'm >> looking for something more powerful, particularly in dealing with >> issues like different time standards & zones, high-time resolution, >> leap seconds & years, time differences, and incrementing. > > I'm not clear on exactly what you're looking for, but mxDateTime > claims to handle time zones, daylight savings time, leap secs, etc.. > It appears to use UTC. > > http://www.egenix.com/files/python/mxDateTime.html > > The Boost folks have a page with date/time links, including > C/C++ libraries: > > http://www.boost.org/libs/date_time/doc/References.html > > I don't use any of this stuff so I can't comment on its suitability. > I just happened to recall hearing of it. I have a dim recollection > of a recent addition to the std lib that deals with dates and time, > but I may just be remembering an announcement of the latest > mxDateTime. > > -Tom Loredo > _________________________________________________ > AstroPy mailing list - astropy at stsci.edu > http://www.astro.washington.edu/owen/AstroPy.html > > -- *********************************************************************** **** NOTE NEW EMAIL ADDRESS AS THE WYETH ADDRESS WILL GO AWAY SOON **** *********************************************************************** Dr. William T."Tom" Bridgman Scientific Visualization Studio Global Science & Technology, Inc. NASA/Goddard Space Flight Center Email: William.T.Bridgman.1 at gsfc.nasa.gov Code 935 Phone: 301-286-1346 Greenbelt, MD 20771 FAX: TBD http://svs.gsfc.nasa.gov/ _________________________________________________ AstroPy mailing list - astropy at stsci.edu http://www.astro.washington.edu/owen/AstroPy.html From rowen at u.washington.edu Thu Apr 22 14:30:33 2004 From: rowen at u.washington.edu (Russell E Owen) Date: Thu, 22 Apr 2004 11:30:33 -0700 Subject: [AstroPy] AstroPy home page moved slightly Message-ID: The AstroPy page has moved slightly (though the old addr should continue working for quite some time). owen->rowen, thus: Sorry for the hassle, but after years of confusion at my end I've finally brought my ancient astro account name in line with the name I use elsewhere. Also, the RO.DS9 module has been updated. The first version had some bugs and was too much of a headache to use for non-Int32 data. (See link to RO package on the AstroPy page). -- Russell _________________________________________________ AstroPy mailing list - astropy at stsci.edu http://www.astro.washington.edu/owen/AstroPy.html From barrett at stsci.edu Fri Apr 23 12:05:12 2004 From: barrett at stsci.edu (Paul Barrett) Date: Fri, 23 Apr 2004 12:05:12 -0400 Subject: [AstroPy] ANN matplotlib-0.53 Message-ID: <40893EB8.30904@stsci.edu> John Hunter has released the next version of maplotlib. It has imaging and math font support. Check it out! -- Paul What's new in matplotlib 0.53 Improved font manager and support Paul Barrett has thoroughly overhauled font support. FontTools and ttfquery are no longer required for font finding as matplotlib now has a completely freestanding freetype2 implementation and font finder. Among other things, this should enable you to specify fonts in your scripts and matplotlibrc file and generate consistent figures across backends and operating systems. The font finder algorithm and implementation are based on the W3C standard http://www.w3.org/TR/1999/REC-CSS1-19990111. See the font manager module documentation, the fonts documentation http://matplotlib.sf.net/fonts.html and the updated .matplotlibrc file for more details; please update your .matplotlibrc. Thanks Paul! Backend WXAgg Antigrain rendering to wxpython applications and figure windows. Now wx users have access to all the latest matplotlib functionality, including mathtext, antialised drawing, alpha blending and image support. Major and minor ticks Full support for major and minor ticks with a bevy of more intelligent tick locators supplied in the ticker module. Fully customizable and user definable tick locators and formatters. See major_minor_demo1.py and major_minor_demo2.py. The default tick labeler is much more intelligent is choosing good tick locations. See http://matplotlib.sf.net/matplotlib.ticker.html Date plots A new command a plot_date command for plotting date dependent data; see http://matplotlib.sf.net/screenshots.html#date_demo. Converters supplied in the dates module allow you to work with a variety of datetime instances. Custom date locators and formatters allow you to place major and minor ticks by minute, hour, weekday, month, year, etc, and use strftime format strings to format the ticks. See examples date_demo1.py and date_demo2.py. The dates documentation provides an overview and guide to with dates - see http://matplotlib.sf.net/matplotlib.dates.html. Ported image support to numarray and postscript backend The image module now works with Numeric or numarray, and now works in the postscript backend as well as GTKAgg, TkAgg, WXAgg, Agg, and GTK. Thanks to Todd Miller for the PS work! Changes to matplotlibrc Many features added to the default config file for font support, tkagg windowing in win32, and more. Please use the new file at http://matplotlib.sf.net/.matplotlibrc. By default, the installer will overwrite the existing file in the install path, so if you want to preserve your's, please move it to your HOME dir and set the environment variable if necessary. load and save commands Helper functions for loading and saving ASCII arrays. See load and save in the matlab interface. Two scales on the same axes Added some features to the axis and ticks to allow two plots with different scales on the "same" axes with different scales, ticks and labels on the left and right side of the x axis. To see why same is quoted, see examples/two_scales.py. finance module The finance module includes a function to fetch quotes from yahoo, to draw candlestick plots, and to draw vertical line plots for high-low range with open-close ticks to the left and right. I'm hoping that user contributions will make up the bulk of this module since I'm not a finance guy! See http://matplotlib.sf.net/screenshots.html#date_demo. http://matplotlib.sourceforge.net ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Matplotlib-users mailing list Matplotlib-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users _________________________________________________ AstroPy mailing list - astropy at stsci.edu http://www.astro.washington.edu/owen/AstroPy.html