Re: time axis annotation

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Wed, 19 Mar 2008 10:26:18 -0600 (MDT)

Hi Jim,

I'm trying to come up with a udunits example, but having difficulty
finding the "netcdftime" module you mentioned. Is there some
documentation for it?

I did see another module "nc" that mentions udunits, but I didn't
see documentation about how to convert the time values to other

I'm tempted to try wrapping our own "ut_calendar" function that
we have in NCL. See:

Anyway, I went ahead and created an example that shows how to
label the time axis. I hard-coded the time-converted units for now (I
did this from an NCL script using ut_calendar).

The way I did the time axis may be meaningless, but hopefully it
illustrates how to do this kind of thing. Let me know if you have
other questions.

If anybody out there knows of a python module for doing this kind of
conversion, please let us know.


On Tue, 18 Mar 2008, James Boyle wrote:

> I have looked over the examples and documentation.
> I do not find any direct support for a facility to label a time axis with
> actual times.
> For example. if I have a set of times, 1 , 2, 3 which are 'days since 28 Feb
> 2006', I can get labels '28 Feb ', '1 Jan', '2 Jan'.
> I have the feeling that this is in the do-it-yourself category, combining the
> datetime and time python modules but I figured I'd see if there is anything I
> missed.
> Probably, to accomodate model calendars one would also need Jeff Whittaker's
> netcdftime module.
> In any case some examples would be useful. More generalized than or
> --Jim
> _______________________________________________
> pyngl-talk mailing list

pyngl-talk mailing list

Received on Wed Mar 19 2008 - 10:26:18 MDT

This archive was generated by hypermail 2.2.0 : Tue Mar 25 2008 - 17:24:52 MDT