Python, cf-python and cf-plot version 3 changes#
Python 3 changes#
The headline change that everyone will see is with the print function now requiring brackets
Integer arithmetic has changed and now requires // rather than /:
Use range rather than xrange for iterable loops:
Unicode has changed.
See The key differences between Python 2.7.x and Python 3.x with examples for more details.
cf-python 3 changes#
To see what is in a cf field in cf-python 3 use g.construct instead of g.item.
For example, to see what levels are available in the temperature data use:
For more details see differences between cf-python version 2 and version 3
Mac OSX is now supported.
cf-plot 3 changes#
cf-plot 3 now uses matplotlib 3 which might cause some subtle plot differences from cf-plot 2. The colorbar is now a routine that can be called independently of a colour plot and the plot relationship to the colour bar may be subtly different because of this.
Mac OSX is now supported.
Regridding unchanged#
The regridding interface and backend use of esmpy is unchanged.