coards 0.2.2
Convert COARDS time specification to a datetime object.
This module converts between a given COARDS time specification and a Python datetime object, which is much more useful. Suppose you have an Array of values [1,2,3] and units "days since 1998-03-01 12:00:00":
>>> a = [1, 2, 3] >>> units = 'days since 1998-03-01 12:00:00' >>> b = [from_udunits(value, units) for value in a] >>> print b[0].year 1998 >>> b[1] > b[0] True >>> print b[1] - b[0] 1 day, 0:00:00
The list b now contains objects which can be compared and manipulated in a consistent way.
The latest version is available in a Subversion repository.
| File | Type | Py Version | Uploaded on | Size | # downloads |
|---|---|---|---|---|---|
| coards-0.2.2.tar.gz (md5) | Source | 2007-01-25 15:01:21 | 4KB | 1318 | |
| coards-0.2.2-py2.4.egg (md5) | Python Egg | 2.4 | 2007-01-25 15:01:22 | 8KB | 530 |
- Author: Roberto De Almeida <rob at pydap org>
- Home Page: http://dealmeida.net/projects/coards
- Download URL: http://cheeseshop.python.org/packages/source/c/coards/coards-0.2.2.tar.gz
- Keywords: data time coards netcdf
- License: MIT
-
Categories
- Development Status :: 4 - Beta
- Environment :: Console
- Intended Audience :: Developers
- Intended Audience :: Science/Research
- License :: OSI Approved :: MIT License
- Operating System :: OS Independent
- Programming Language :: Python
- Topic :: Scientific/Engineering
- Topic :: Software Development :: Libraries :: Python Modules
- Package Index Owner: roberto
- DOAP record: coards-0.2.2.xml
Log in to rate this package.
