Last active
December 10, 2015 14:42
-
-
Save cpelley/65dafe1700d3a79eebd9 to your computer and use it in GitHub Desktop.
iris.unit.Unit vs cf_units calendar bug
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import iris | |
import iris.unit | |
import cf_units | |
tunit = iris.unit.Unit('hours since 1970-01-01 00:00:00', calendar='360_day') | |
tcoord = iris.coords.DimCoord(1, standard_name='time', units=tunit) | |
print 'iris.unit.Unit: {}'.format(repr(tcoord)) | |
tunit = cf_units.Unit('hours since 1970-01-01 00:00:00', calendar='360_day') | |
tcoord = iris.coords.DimCoord(1, standard_name='time', units=tunit) | |
print 'cf_units.Unit: {}'.format(repr(tcoord)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment