Import NumPy and fix a bug when using non-triangular arcs (.e. for hexagonal turbine bases, the old code would bomb out too soon. Instead, check we have reached the end of an arc when we have read the current number of vertices defined in the arc header.
Move all the import statements to the start of each module to eliminate duplicated code.
Fix bug when the time series covers a single month only (i.e. it does not straddle a month boundary).
Remove old useless functions.
Remove recursive import!
Fix the month check to only occur if the minimum month is less than one. This leaves in place the possibility of errors with month arrays of a single value I think, but the result of month[month < 1] when the minimum value of month is less than one should be month[True] which should then be OK.
Remove some obsolete functions and requirements.
Fix some typos.
Add new function to calculate the potential energy anomaly. Additional depth-averaging function included too.
Tidy up the function a bit to eliminate obsolete function to plot a model grid.
Improve the function to calculate element area in a given grid (improved the speed by doing array based operations instead of loops). Also added better documentation.
Fix docstring formatting.
Fix the depth2pressure function to work with arrays of depths). Also add a test for the depth2pressure conversion (it is not particularly good!).
Change the code to convert element based data to nodal based data to work with unlimited dimensions (assuming horizontal space is the last one).
Merge branch 'master' into dev