Skip to content

Instantly share code, notes, and snippets.

@cpelley
Last active December 10, 2015 14:42
Show Gist options
  • Save cpelley/65dafe1700d3a79eebd9 to your computer and use it in GitHub Desktop.
Save cpelley/65dafe1700d3a79eebd9 to your computer and use it in GitHub Desktop.
iris.unit.Unit vs cf_units calendar bug
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