Skip to content

Testing with Iris 2.0 #97

@bjlittle

Description

@bjlittle

We need to dig into the following before cutting cf-units version 2.0.0...

======================================================================
ERROR: test_circular_subset (iris.tests.experimental.regrid.test_regrid_area_weighted_rectilinear_src_and_grid.TestAreaWeightedRegrid)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/tests/experimental/regrid/test_regrid_area_weighted_rectilinear_src_and_grid.py", line 532, in test_circular_subset
    res = regrid_area_weighted(src, dest)
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/experimental/regrid.py", line 722, in regrid_area_weighted_rectilinear_src_and_grid
    src_x_bounds = _get_bounds_in_units(src_x, x_units, dtype)
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/experimental/regrid.py", line 349, in _get_bounds_in_units
    return coord.units.convert(coord.bounds.astype(dtype), units).astype(dtype)
  File "/home/h05/itwl/projects/git/cf_units/cf_units/__init__.py", line 1840, in convert
    _cv_convert_array[ctype](ut_converter, result, result)
  File "cf_units/_udunits2.pyx", line 308, in cf_units._udunits2.convert_doubles
    def convert_doubles(Converter converter, np.ndarray[np.float64_t] in_, np.ndarray[np.float64_t] out):
ValueError: Buffer has wrong number of dimensions (expected 1, got 2)

======================================================================
ERROR: test_cross_section (iris.tests.experimental.regrid.test_regrid_area_weighted_rectilinear_src_and_grid.TestAreaWeightedRegrid)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/tests/experimental/regrid/test_regrid_area_weighted_rectilinear_src_and_grid.py", line 438, in test_cross_section
    res = regrid_area_weighted(src, dest)
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/experimental/regrid.py", line 722, in regrid_area_weighted_rectilinear_src_and_grid
    src_x_bounds = _get_bounds_in_units(src_x, x_units, dtype)
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/experimental/regrid.py", line 349, in _get_bounds_in_units
    return coord.units.convert(coord.bounds.astype(dtype), units).astype(dtype)
  File "/home/h05/itwl/projects/git/cf_units/cf_units/__init__.py", line 1840, in convert
    _cv_convert_array[ctype](ut_converter, result, result)
  File "cf_units/_udunits2.pyx", line 308, in cf_units._udunits2.convert_doubles
    def convert_doubles(Converter converter, np.ndarray[np.float64_t] in_, np.ndarray[np.float64_t] out):
ValueError: Buffer has wrong number of dimensions (expected 1, got 2)

======================================================================
ERROR: test_global_data_increase_res (iris.tests.experimental.regrid.test_regrid_area_weighted_rectilinear_src_and_grid.TestAreaWeightedRegrid)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/tests/experimental/regrid/test_regrid_area_weighted_rectilinear_src_and_grid.py", line 484, in test_global_data_increase_res
    res = regrid_area_weighted(src, dest)
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/experimental/regrid.py", line 722, in regrid_area_weighted_rectilinear_src_and_grid
    src_x_bounds = _get_bounds_in_units(src_x, x_units, dtype)
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/experimental/regrid.py", line 349, in _get_bounds_in_units
    return coord.units.convert(coord.bounds.astype(dtype), units).astype(dtype)
  File "/home/h05/itwl/projects/git/cf_units/cf_units/__init__.py", line 1840, in convert
    _cv_convert_array[ctype](ut_converter, result, result)
  File "cf_units/_udunits2.pyx", line 308, in cf_units._udunits2.convert_doubles
    def convert_doubles(Converter converter, np.ndarray[np.float64_t] in_, np.ndarray[np.float64_t] out):
ValueError: Buffer has wrong number of dimensions (expected 1, got 2)

======================================================================
ERROR: test_global_data_reduce_res (iris.tests.experimental.regrid.test_regrid_area_weighted_rectilinear_src_and_grid.TestAreaWeightedRegrid)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/tests/experimental/regrid/test_regrid_area_weighted_rectilinear_src_and_grid.py", line 475, in test_global_data_reduce_res
    res = regrid_area_weighted(src, dest)
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/experimental/regrid.py", line 722, in regrid_area_weighted_rectilinear_src_and_grid
    src_x_bounds = _get_bounds_in_units(src_x, x_units, dtype)
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/experimental/regrid.py", line 349, in _get_bounds_in_units
    return coord.units.convert(coord.bounds.astype(dtype), units).astype(dtype)
  File "/home/h05/itwl/projects/git/cf_units/cf_units/__init__.py", line 1840, in convert
    _cv_convert_array[ctype](ut_converter, result, result)
  File "cf_units/_udunits2.pyx", line 308, in cf_units._udunits2.convert_doubles
    def convert_doubles(Converter converter, np.ndarray[np.float64_t] in_, np.ndarray[np.float64_t] out):
ValueError: Buffer has wrong number of dimensions (expected 1, got 2)

======================================================================
ERROR: test_global_data_same_res (iris.tests.experimental.regrid.test_regrid_area_weighted_rectilinear_src_and_grid.TestAreaWeightedRegrid)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/tests/experimental/regrid/test_regrid_area_weighted_rectilinear_src_and_grid.py", line 492, in test_global_data_same_res
    res = regrid_area_weighted(src, src)
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/experimental/regrid.py", line 722, in regrid_area_weighted_rectilinear_src_and_grid
    src_x_bounds = _get_bounds_in_units(src_x, x_units, dtype)
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/experimental/regrid.py", line 349, in _get_bounds_in_units
    return coord.units.convert(coord.bounds.astype(dtype), units).astype(dtype)
  File "/home/h05/itwl/projects/git/cf_units/cf_units/__init__.py", line 1840, in convert
    _cv_convert_array[ctype](ut_converter, result, result)
  File "cf_units/_udunits2.pyx", line 308, in cf_units._udunits2.convert_doubles
    def convert_doubles(Converter converter, np.ndarray[np.float64_t] in_, np.ndarray[np.float64_t] out):
ValueError: Buffer has wrong number of dimensions (expected 1, got 2)

======================================================================
ERROR: test_global_data_subset (iris.tests.experimental.regrid.test_regrid_area_weighted_rectilinear_src_and_grid.TestAreaWeightedRegrid)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/tests/experimental/regrid/test_regrid_area_weighted_rectilinear_src_and_grid.py", line 512, in test_global_data_subset
    res = regrid_area_weighted(src, dest)
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/experimental/regrid.py", line 722, in regrid_area_weighted_rectilinear_src_and_grid
    src_x_bounds = _get_bounds_in_units(src_x, x_units, dtype)
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/experimental/regrid.py", line 349, in _get_bounds_in_units
    return coord.units.convert(coord.bounds.astype(dtype), units).astype(dtype)
  File "/home/h05/itwl/projects/git/cf_units/cf_units/__init__.py", line 1840, in convert
    _cv_convert_array[ctype](ut_converter, result, result)
  File "cf_units/_udunits2.pyx", line 308, in cf_units._udunits2.convert_doubles
    def convert_doubles(Converter converter, np.ndarray[np.float64_t] in_, np.ndarray[np.float64_t] out):
ValueError: Buffer has wrong number of dimensions (expected 1, got 2)

======================================================================
ERROR: test_hybrid_height (iris.tests.experimental.regrid.test_regrid_area_weighted_rectilinear_src_and_grid.TestAreaWeightedRegrid)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/tests/experimental/regrid/test_regrid_area_weighted_rectilinear_src_and_grid.py", line 368, in test_hybrid_height
    res = regrid_area_weighted(src, dest)
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/experimental/regrid.py", line 722, in regrid_area_weighted_rectilinear_src_and_grid
    src_x_bounds = _get_bounds_in_units(src_x, x_units, dtype)
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/experimental/regrid.py", line 349, in _get_bounds_in_units
    return coord.units.convert(coord.bounds.astype(dtype), units).astype(dtype)
  File "/home/h05/itwl/projects/git/cf_units/cf_units/__init__.py", line 1840, in convert
    _cv_convert_array[ctype](ut_converter, result, result)
  File "cf_units/_udunits2.pyx", line 308, in cf_units._udunits2.convert_doubles
    def convert_doubles(Converter converter, np.ndarray[np.float64_t] in_, np.ndarray[np.float64_t] out):
ValueError: Buffer has wrong number of dimensions (expected 1, got 2)

======================================================================
ERROR: test_missing_data (iris.tests.experimental.regrid.test_regrid_area_weighted_rectilinear_src_and_grid.TestAreaWeightedRegrid)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/tests/experimental/regrid/test_regrid_area_weighted_rectilinear_src_and_grid.py", line 376, in test_missing_data
    res = regrid_area_weighted(src, dest)
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/experimental/regrid.py", line 722, in regrid_area_weighted_rectilinear_src_and_grid
    src_x_bounds = _get_bounds_in_units(src_x, x_units, dtype)
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/experimental/regrid.py", line 349, in _get_bounds_in_units
    return coord.units.convert(coord.bounds.astype(dtype), units).astype(dtype)
  File "/home/h05/itwl/projects/git/cf_units/cf_units/__init__.py", line 1840, in convert
    _cv_convert_array[ctype](ut_converter, result, result)
  File "cf_units/_udunits2.pyx", line 308, in cf_units._udunits2.convert_doubles
    def convert_doubles(Converter converter, np.ndarray[np.float64_t] in_, np.ndarray[np.float64_t] out):
ValueError: Buffer has wrong number of dimensions (expected 1, got 2)

======================================================================
ERROR: test_no_x_overlap (iris.tests.experimental.regrid.test_regrid_area_weighted_rectilinear_src_and_grid.TestAreaWeightedRegrid)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/tests/experimental/regrid/test_regrid_area_weighted_rectilinear_src_and_grid.py", line 387, in test_no_x_overlap
    res = regrid_area_weighted(src, dest)
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/experimental/regrid.py", line 722, in regrid_area_weighted_rectilinear_src_and_grid
    src_x_bounds = _get_bounds_in_units(src_x, x_units, dtype)
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/experimental/regrid.py", line 349, in _get_bounds_in_units
    return coord.units.convert(coord.bounds.astype(dtype), units).astype(dtype)
  File "/home/h05/itwl/projects/git/cf_units/cf_units/__init__.py", line 1840, in convert
    _cv_convert_array[ctype](ut_converter, result, result)
  File "cf_units/_udunits2.pyx", line 308, in cf_units._udunits2.convert_doubles
    def convert_doubles(Converter converter, np.ndarray[np.float64_t] in_, np.ndarray[np.float64_t] out):
ValueError: Buffer has wrong number of dimensions (expected 1, got 2)

======================================================================
ERROR: test_no_y_overlap (iris.tests.experimental.regrid.test_regrid_area_weighted_rectilinear_src_and_grid.TestAreaWeightedRegrid)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/tests/experimental/regrid/test_regrid_area_weighted_rectilinear_src_and_grid.py", line 396, in test_no_y_overlap
    res = regrid_area_weighted(src, dest)
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/experimental/regrid.py", line 722, in regrid_area_weighted_rectilinear_src_and_grid
    src_x_bounds = _get_bounds_in_units(src_x, x_units, dtype)
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/experimental/regrid.py", line 349, in _get_bounds_in_units
    return coord.units.convert(coord.bounds.astype(dtype), units).astype(dtype)
  File "/home/h05/itwl/projects/git/cf_units/cf_units/__init__.py", line 1840, in convert
    _cv_convert_array[ctype](ut_converter, result, result)
  File "cf_units/_udunits2.pyx", line 308, in cf_units._udunits2.convert_doubles
    def convert_doubles(Converter converter, np.ndarray[np.float64_t] in_, np.ndarray[np.float64_t] out):
ValueError: Buffer has wrong number of dimensions (expected 1, got 2)

======================================================================
ERROR: test_non_circular_subset (iris.tests.experimental.regrid.test_regrid_area_weighted_rectilinear_src_and_grid.TestAreaWeightedRegrid)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/tests/experimental/regrid/test_regrid_area_weighted_rectilinear_src_and_grid.py", line 553, in test_non_circular_subset
    res = regrid_area_weighted(src, dest)
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/experimental/regrid.py", line 722, in regrid_area_weighted_rectilinear_src_and_grid
    src_x_bounds = _get_bounds_in_units(src_x, x_units, dtype)
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/experimental/regrid.py", line 349, in _get_bounds_in_units
    return coord.units.convert(coord.bounds.astype(dtype), units).astype(dtype)
  File "/home/h05/itwl/projects/git/cf_units/cf_units/__init__.py", line 1840, in convert
    _cv_convert_array[ctype](ut_converter, result, result)
  File "cf_units/_udunits2.pyx", line 308, in cf_units._udunits2.convert_doubles
    def convert_doubles(Converter converter, np.ndarray[np.float64_t] in_, np.ndarray[np.float64_t] out):
ValueError: Buffer has wrong number of dimensions (expected 1, got 2)

======================================================================
ERROR: test_one_point (iris.tests.experimental.regrid.test_regrid_area_weighted_rectilinear_src_and_grid.TestAreaWeightedRegrid)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/tests/experimental/regrid/test_regrid_area_weighted_rectilinear_src_and_grid.py", line 414, in test_one_point
    res = regrid_area_weighted(src, dest)
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/experimental/regrid.py", line 722, in regrid_area_weighted_rectilinear_src_and_grid
    src_x_bounds = _get_bounds_in_units(src_x, x_units, dtype)
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/experimental/regrid.py", line 349, in _get_bounds_in_units
    return coord.units.convert(coord.bounds.astype(dtype), units).astype(dtype)
  File "/home/h05/itwl/projects/git/cf_units/cf_units/__init__.py", line 1840, in convert
    _cv_convert_array[ctype](ut_converter, result, result)
  File "cf_units/_udunits2.pyx", line 308, in cf_units._udunits2.convert_doubles
    def convert_doubles(Converter converter, np.ndarray[np.float64_t] in_, np.ndarray[np.float64_t] out):
ValueError: Buffer has wrong number of dimensions (expected 1, got 2)

======================================================================
ERROR: test_regrid_latlon_reduced_res (iris.tests.experimental.regrid.test_regrid_area_weighted_rectilinear_src_and_grid.TestAreaWeightedRegrid)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/tests/experimental/regrid/test_regrid_area_weighted_rectilinear_src_and_grid.py", line 327, in test_regrid_latlon_reduced_res
    res = regrid_area_weighted(src, dest)
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/experimental/regrid.py", line 722, in regrid_area_weighted_rectilinear_src_and_grid
    src_x_bounds = _get_bounds_in_units(src_x, x_units, dtype)
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/experimental/regrid.py", line 349, in _get_bounds_in_units
    return coord.units.convert(coord.bounds.astype(dtype), units).astype(dtype)
  File "/home/h05/itwl/projects/git/cf_units/cf_units/__init__.py", line 1840, in convert
    _cv_convert_array[ctype](ut_converter, result, result)
  File "cf_units/_udunits2.pyx", line 308, in cf_units._udunits2.convert_doubles
    def convert_doubles(Converter converter, np.ndarray[np.float64_t] in_, np.ndarray[np.float64_t] out):
ValueError: Buffer has wrong number of dimensions (expected 1, got 2)

======================================================================
ERROR: test_regrid_lon_to_half_res (iris.tests.experimental.regrid.test_regrid_area_weighted_rectilinear_src_and_grid.TestAreaWeightedRegrid)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/tests/experimental/regrid/test_regrid_area_weighted_rectilinear_src_and_grid.py", line 347, in test_regrid_lon_to_half_res
    res = regrid_area_weighted(src, dest)
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/experimental/regrid.py", line 722, in regrid_area_weighted_rectilinear_src_and_grid
    src_x_bounds = _get_bounds_in_units(src_x, x_units, dtype)
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/experimental/regrid.py", line 349, in _get_bounds_in_units
    return coord.units.convert(coord.bounds.astype(dtype), units).astype(dtype)
  File "/home/h05/itwl/projects/git/cf_units/cf_units/__init__.py", line 1840, in convert
    _cv_convert_array[ctype](ut_converter, result, result)
  File "cf_units/_udunits2.pyx", line 308, in cf_units._udunits2.convert_doubles
    def convert_doubles(Converter converter, np.ndarray[np.float64_t] in_, np.ndarray[np.float64_t] out):
ValueError: Buffer has wrong number of dimensions (expected 1, got 2)

======================================================================
ERROR: test_regrid_to_higher_res (iris.tests.experimental.regrid.test_regrid_area_weighted_rectilinear_src_and_grid.TestAreaWeightedRegrid)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/tests/experimental/regrid/test_regrid_area_weighted_rectilinear_src_and_grid.py", line 362, in test_regrid_to_higher_res
    res = regrid_area_weighted(src, dest)
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/experimental/regrid.py", line 722, in regrid_area_weighted_rectilinear_src_and_grid
    src_x_bounds = _get_bounds_in_units(src_x, x_units, dtype)
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/experimental/regrid.py", line 349, in _get_bounds_in_units
    return coord.units.convert(coord.bounds.astype(dtype), units).astype(dtype)
  File "/home/h05/itwl/projects/git/cf_units/cf_units/__init__.py", line 1840, in convert
    _cv_convert_array[ctype](ut_converter, result, result)
  File "cf_units/_udunits2.pyx", line 308, in cf_units._udunits2.convert_doubles
    def convert_doubles(Converter converter, np.ndarray[np.float64_t] in_, np.ndarray[np.float64_t] out):
ValueError: Buffer has wrong number of dimensions (expected 1, got 2)

======================================================================
ERROR: test_regrid_to_non_int_frac (iris.tests.experimental.regrid.test_regrid_area_weighted_rectilinear_src_and_grid.TestAreaWeightedRegrid)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/tests/experimental/regrid/test_regrid_area_weighted_rectilinear_src_and_grid.py", line 355, in test_regrid_to_non_int_frac
    res = regrid_area_weighted(src, dest)
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/experimental/regrid.py", line 722, in regrid_area_weighted_rectilinear_src_and_grid
    src_x_bounds = _get_bounds_in_units(src_x, x_units, dtype)
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/experimental/regrid.py", line 349, in _get_bounds_in_units
    return coord.units.convert(coord.bounds.astype(dtype), units).astype(dtype)
  File "/home/h05/itwl/projects/git/cf_units/cf_units/__init__.py", line 1840, in convert
    _cv_convert_array[ctype](ut_converter, result, result)
  File "cf_units/_udunits2.pyx", line 308, in cf_units._udunits2.convert_doubles
    def convert_doubles(Converter converter, np.ndarray[np.float64_t] in_, np.ndarray[np.float64_t] out):
ValueError: Buffer has wrong number of dimensions (expected 1, got 2)

======================================================================
ERROR: test_regrid_to_same_grid (iris.tests.experimental.regrid.test_regrid_area_weighted_rectilinear_src_and_grid.TestAreaWeightedRegrid)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/tests/experimental/regrid/test_regrid_area_weighted_rectilinear_src_and_grid.py", line 249, in test_regrid_to_same_grid
    res = regrid_area_weighted(src, src)
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/experimental/regrid.py", line 722, in regrid_area_weighted_rectilinear_src_and_grid
    src_x_bounds = _get_bounds_in_units(src_x, x_units, dtype)
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/experimental/regrid.py", line 349, in _get_bounds_in_units
    return coord.units.convert(coord.bounds.astype(dtype), units).astype(dtype)
  File "/home/h05/itwl/projects/git/cf_units/cf_units/__init__.py", line 1840, in convert
    _cv_convert_array[ctype](ut_converter, result, result)
  File "cf_units/_udunits2.pyx", line 308, in cf_units._udunits2.convert_doubles
    def convert_doubles(Converter converter, np.ndarray[np.float64_t] in_, np.ndarray[np.float64_t] out):
ValueError: Buffer has wrong number of dimensions (expected 1, got 2)

======================================================================
ERROR: test_regrid_transposed (iris.tests.experimental.regrid.test_regrid_area_weighted_rectilinear_src_and_grid.TestAreaWeightedRegrid)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/tests/experimental/regrid/test_regrid_area_weighted_rectilinear_src_and_grid.py", line 335, in test_regrid_transposed
    res = regrid_area_weighted(src, dest)
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/experimental/regrid.py", line 722, in regrid_area_weighted_rectilinear_src_and_grid
    src_x_bounds = _get_bounds_in_units(src_x, x_units, dtype)
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/experimental/regrid.py", line 349, in _get_bounds_in_units
    return coord.units.convert(coord.bounds.astype(dtype), units).astype(dtype)
  File "/home/h05/itwl/projects/git/cf_units/cf_units/__init__.py", line 1840, in convert
    _cv_convert_array[ctype](ut_converter, result, result)
  File "cf_units/_udunits2.pyx", line 308, in cf_units._udunits2.convert_doubles
    def convert_doubles(Converter converter, np.ndarray[np.float64_t] in_, np.ndarray[np.float64_t] out):
ValueError: Buffer has wrong number of dimensions (expected 1, got 2)

======================================================================
ERROR: test_scalar (iris.tests.experimental.regrid.test_regrid_area_weighted_rectilinear_src_and_grid.TestAreaWeightedRegrid)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/tests/experimental/regrid/test_regrid_area_weighted_rectilinear_src_and_grid.py", line 404, in test_scalar
    res = regrid_area_weighted(src, dest)
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/experimental/regrid.py", line 722, in regrid_area_weighted_rectilinear_src_and_grid
    src_x_bounds = _get_bounds_in_units(src_x, x_units, dtype)
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/experimental/regrid.py", line 349, in _get_bounds_in_units
    return coord.units.convert(coord.bounds.astype(dtype), units).astype(dtype)
  File "/home/h05/itwl/projects/git/cf_units/cf_units/__init__.py", line 1840, in convert
    _cv_convert_array[ctype](ut_converter, result, result)
  File "cf_units/_udunits2.pyx", line 301, in cf_units._udunits2.convert_floats
    def convert_floats(Converter converter, np.ndarray[np.float32_t] in_, np.ndarray[np.float32_t] out):
ValueError: Buffer has wrong number of dimensions (expected 1, got 2)

======================================================================
ERROR: test_scalar_source_cube (iris.tests.experimental.regrid.test_regrid_area_weighted_rectilinear_src_and_grid.TestAreaWeightedRegrid)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/tests/experimental/regrid/test_regrid_area_weighted_rectilinear_src_and_grid.py", line 460, in test_scalar_source_cube
    res = regrid_area_weighted(src, dest)
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/experimental/regrid.py", line 722, in regrid_area_weighted_rectilinear_src_and_grid
    src_x_bounds = _get_bounds_in_units(src_x, x_units, dtype)
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/experimental/regrid.py", line 349, in _get_bounds_in_units
    return coord.units.convert(coord.bounds.astype(dtype), units).astype(dtype)
  File "/home/h05/itwl/projects/git/cf_units/cf_units/__init__.py", line 1840, in convert
    _cv_convert_array[ctype](ut_converter, result, result)
  File "cf_units/_udunits2.pyx", line 308, in cf_units._udunits2.convert_doubles
    def convert_doubles(Converter converter, np.ndarray[np.float64_t] in_, np.ndarray[np.float64_t] out):
ValueError: Buffer has wrong number of dimensions (expected 1, got 2)

======================================================================
ERROR: test_ten_by_ten_subset (iris.tests.experimental.regrid.test_regrid_area_weighted_rectilinear_src_and_grid.TestAreaWeightedRegrid)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/tests/experimental/regrid/test_regrid_area_weighted_rectilinear_src_and_grid.py", line 424, in test_ten_by_ten_subset
    res = regrid_area_weighted(src, dest)
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/experimental/regrid.py", line 722, in regrid_area_weighted_rectilinear_src_and_grid
    src_x_bounds = _get_bounds_in_units(src_x, x_units, dtype)
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/experimental/regrid.py", line 349, in _get_bounds_in_units
    return coord.units.convert(coord.bounds.astype(dtype), units).astype(dtype)
  File "/home/h05/itwl/projects/git/cf_units/cf_units/__init__.py", line 1840, in convert
    _cv_convert_array[ctype](ut_converter, result, result)
  File "cf_units/_udunits2.pyx", line 308, in cf_units._udunits2.convert_doubles
    def convert_doubles(Converter converter, np.ndarray[np.float64_t] in_, np.ndarray[np.float64_t] out):
ValueError: Buffer has wrong number of dimensions (expected 1, got 2)

======================================================================
ERROR: test_area_in_far_north (iris.tests.unit.analysis.cartography.test__quadrant_area.TestExampleCases)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/tests/unit/analysis/cartography/test__quadrant_area.py", line 55, in test_area_in_far_north
    lats, lons = self._as_bounded_coords([70, 80], [0, 10])
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/tests/unit/analysis/cartography/test__quadrant_area.py", line 46, in _as_bounded_coords
    return (self._radian_bounds(lats, dtype=dtype),
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/tests/unit/analysis/cartography/test__quadrant_area.py", line 43, in _radian_bounds
    return degrees.convert(bound_deg, radians)
  File "/home/h05/itwl/projects/git/cf_units/cf_units/__init__.py", line 1840, in convert
    _cv_convert_array[ctype](ut_converter, result, result)
  File "cf_units/_udunits2.pyx", line 308, in cf_units._udunits2.convert_doubles
    def convert_doubles(Converter converter, np.ndarray[np.float64_t] in_, np.ndarray[np.float64_t] out):
ValueError: Buffer has wrong number of dimensions (expected 1, got 2)

======================================================================
ERROR: test_area_in_far_south (iris.tests.unit.analysis.cartography.test__quadrant_area.TestExampleCases)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/tests/unit/analysis/cartography/test__quadrant_area.py", line 60, in test_area_in_far_south
    lats, lons = self._as_bounded_coords([-80, -70], [0, 10])
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/tests/unit/analysis/cartography/test__quadrant_area.py", line 46, in _as_bounded_coords
    return (self._radian_bounds(lats, dtype=dtype),
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/tests/unit/analysis/cartography/test__quadrant_area.py", line 43, in _radian_bounds
    return degrees.convert(bound_deg, radians)
  File "/home/h05/itwl/projects/git/cf_units/cf_units/__init__.py", line 1840, in convert
    _cv_convert_array[ctype](ut_converter, result, result)
  File "cf_units/_udunits2.pyx", line 308, in cf_units._udunits2.convert_doubles
    def convert_doubles(Converter converter, np.ndarray[np.float64_t] in_, np.ndarray[np.float64_t] out):
ValueError: Buffer has wrong number of dimensions (expected 1, got 2)

======================================================================
ERROR: test_area_in_north (iris.tests.unit.analysis.cartography.test__quadrant_area.TestExampleCases)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/tests/unit/analysis/cartography/test__quadrant_area.py", line 50, in test_area_in_north
    lats, lons = self._as_bounded_coords([0, 10], [0, 10])
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/tests/unit/analysis/cartography/test__quadrant_area.py", line 46, in _as_bounded_coords
    return (self._radian_bounds(lats, dtype=dtype),
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/tests/unit/analysis/cartography/test__quadrant_area.py", line 43, in _radian_bounds
    return degrees.convert(bound_deg, radians)
  File "/home/h05/itwl/projects/git/cf_units/cf_units/__init__.py", line 1840, in convert
    _cv_convert_array[ctype](ut_converter, result, result)
  File "cf_units/_udunits2.pyx", line 308, in cf_units._udunits2.convert_doubles
    def convert_doubles(Converter converter, np.ndarray[np.float64_t] in_, np.ndarray[np.float64_t] out):
ValueError: Buffer has wrong number of dimensions (expected 1, got 2)

======================================================================
ERROR: test_area_in_north_with_reversed_lats (iris.tests.unit.analysis.cartography.test__quadrant_area.TestExampleCases)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/tests/unit/analysis/cartography/test__quadrant_area.py", line 65, in test_area_in_north_with_reversed_lats
    lats, lons = self._as_bounded_coords([10, 0], [0, 10])
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/tests/unit/analysis/cartography/test__quadrant_area.py", line 46, in _as_bounded_coords
    return (self._radian_bounds(lats, dtype=dtype),
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/tests/unit/analysis/cartography/test__quadrant_area.py", line 43, in _radian_bounds
    return degrees.convert(bound_deg, radians)
  File "/home/h05/itwl/projects/git/cf_units/cf_units/__init__.py", line 1840, in convert
    _cv_convert_array[ctype](ut_converter, result, result)
  File "cf_units/_udunits2.pyx", line 308, in cf_units._udunits2.convert_doubles
    def convert_doubles(Converter converter, np.ndarray[np.float64_t] in_, np.ndarray[np.float64_t] out):
ValueError: Buffer has wrong number of dimensions (expected 1, got 2)

======================================================================
ERROR: test_area_multiple_lats (iris.tests.unit.analysis.cartography.test__quadrant_area.TestExampleCases)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/tests/unit/analysis/cartography/test__quadrant_area.py", line 71, in test_area_multiple_lats
    [0, 10])
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/tests/unit/analysis/cartography/test__quadrant_area.py", line 46, in _as_bounded_coords
    return (self._radian_bounds(lats, dtype=dtype),
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/tests/unit/analysis/cartography/test__quadrant_area.py", line 43, in _radian_bounds
    return degrees.convert(bound_deg, radians)
  File "/home/h05/itwl/projects/git/cf_units/cf_units/__init__.py", line 1840, in convert
    _cv_convert_array[ctype](ut_converter, result, result)
  File "cf_units/_udunits2.pyx", line 308, in cf_units._udunits2.convert_doubles
    def convert_doubles(Converter converter, np.ndarray[np.float64_t] in_, np.ndarray[np.float64_t] out):
ValueError: Buffer has wrong number of dimensions (expected 1, got 2)

======================================================================
ERROR: test_area_multiple_lats_and_lons (iris.tests.unit.analysis.cartography.test__quadrant_area.TestExampleCases)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/tests/unit/analysis/cartography/test__quadrant_area.py", line 80, in test_area_multiple_lats_and_lons
    [[0, 10], [10, 30]])
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/tests/unit/analysis/cartography/test__quadrant_area.py", line 46, in _as_bounded_coords
    return (self._radian_bounds(lats, dtype=dtype),
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/tests/unit/analysis/cartography/test__quadrant_area.py", line 43, in _radian_bounds
    return degrees.convert(bound_deg, radians)
  File "/home/h05/itwl/projects/git/cf_units/cf_units/__init__.py", line 1840, in convert
    _cv_convert_array[ctype](ut_converter, result, result)
  File "cf_units/_udunits2.pyx", line 308, in cf_units._udunits2.convert_doubles
    def convert_doubles(Converter converter, np.ndarray[np.float64_t] in_, np.ndarray[np.float64_t] out):
ValueError: Buffer has wrong number of dimensions (expected 1, got 2)

======================================================================
ERROR: test_symmetric_32_bit (iris.tests.unit.analysis.cartography.test__quadrant_area.TestExampleCases)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/tests/unit/analysis/cartography/test__quadrant_area.py", line 99, in test_symmetric_32_bit
    dtype=np.float32)
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/tests/unit/analysis/cartography/test__quadrant_area.py", line 46, in _as_bounded_coords
    return (self._radian_bounds(lats, dtype=dtype),
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/tests/unit/analysis/cartography/test__quadrant_area.py", line 43, in _radian_bounds
    return degrees.convert(bound_deg, radians)
  File "/home/h05/itwl/projects/git/cf_units/cf_units/__init__.py", line 1840, in convert
    _cv_convert_array[ctype](ut_converter, result, result)
  File "cf_units/_udunits2.pyx", line 301, in cf_units._udunits2.convert_floats
    def convert_floats(Converter converter, np.ndarray[np.float32_t] in_, np.ndarray[np.float32_t] out):
ValueError: Buffer has wrong number of dimensions (expected 1, got 2)

======================================================================
ERROR: test_symmetric_64_bit (iris.tests.unit.analysis.cartography.test__quadrant_area.TestExampleCases)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/tests/unit/analysis/cartography/test__quadrant_area.py", line 91, in test_symmetric_64_bit
    dtype=np.float64)
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/tests/unit/analysis/cartography/test__quadrant_area.py", line 46, in _as_bounded_coords
    return (self._radian_bounds(lats, dtype=dtype),
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/tests/unit/analysis/cartography/test__quadrant_area.py", line 43, in _radian_bounds
    return degrees.convert(bound_deg, radians)
  File "/home/h05/itwl/projects/git/cf_units/cf_units/__init__.py", line 1840, in convert
    _cv_convert_array[ctype](ut_converter, result, result)
  File "cf_units/_udunits2.pyx", line 308, in cf_units._udunits2.convert_doubles
    def convert_doubles(Converter converter, np.ndarray[np.float64_t] in_, np.ndarray[np.float64_t] out):
ValueError: Buffer has wrong number of dimensions (expected 1, got 2)

======================================================================
ERROR: test_broadcast_cubes (iris.tests.unit.analysis.stats.test_pearsonr.Test)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/tests/unit/analysis/stats/test_pearsonr.py", line 46, in setUp
    self.weights = iris.analysis.cartography.area_weights(cube_temp)
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/analysis/cartography.py", line 410, in area_weights
    coord.convert_units('radians')
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/coords.py", line 938, in convert_units
    new_bounds = self.units.convert(self.bounds, unit)
  File "/home/h05/itwl/projects/git/cf_units/cf_units/__init__.py", line 1840, in convert
    _cv_convert_array[ctype](ut_converter, result, result)
  File "cf_units/_udunits2.pyx", line 301, in cf_units._udunits2.convert_floats
    def convert_floats(Converter converter, np.ndarray[np.float32_t] in_, np.ndarray[np.float32_t] out):
ValueError: Buffer has wrong number of dimensions (expected 1, got 2)

======================================================================
ERROR: test_broadcast_cubes_weighted (iris.tests.unit.analysis.stats.test_pearsonr.Test)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/tests/unit/analysis/stats/test_pearsonr.py", line 46, in setUp
    self.weights = iris.analysis.cartography.area_weights(cube_temp)
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/analysis/cartography.py", line 410, in area_weights
    coord.convert_units('radians')
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/coords.py", line 938, in convert_units
    new_bounds = self.units.convert(self.bounds, unit)
  File "/home/h05/itwl/projects/git/cf_units/cf_units/__init__.py", line 1840, in convert
    _cv_convert_array[ctype](ut_converter, result, result)
  File "cf_units/_udunits2.pyx", line 301, in cf_units._udunits2.convert_floats
    def convert_floats(Converter converter, np.ndarray[np.float32_t] in_, np.ndarray[np.float32_t] out):
ValueError: Buffer has wrong number of dimensions (expected 1, got 2)

======================================================================
ERROR: test_common_mask_broadcast (iris.tests.unit.analysis.stats.test_pearsonr.Test)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/tests/unit/analysis/stats/test_pearsonr.py", line 46, in setUp
    self.weights = iris.analysis.cartography.area_weights(cube_temp)
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/analysis/cartography.py", line 410, in area_weights
    coord.convert_units('radians')
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/coords.py", line 938, in convert_units
    new_bounds = self.units.convert(self.bounds, unit)
  File "/home/h05/itwl/projects/git/cf_units/cf_units/__init__.py", line 1840, in convert
    _cv_convert_array[ctype](ut_converter, result, result)
  File "cf_units/_udunits2.pyx", line 301, in cf_units._udunits2.convert_floats
    def convert_floats(Converter converter, np.ndarray[np.float32_t] in_, np.ndarray[np.float32_t] out):
ValueError: Buffer has wrong number of dimensions (expected 1, got 2)

======================================================================
ERROR: test_common_mask_simple (iris.tests.unit.analysis.stats.test_pearsonr.Test)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/tests/unit/analysis/stats/test_pearsonr.py", line 46, in setUp
    self.weights = iris.analysis.cartography.area_weights(cube_temp)
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/analysis/cartography.py", line 410, in area_weights
    coord.convert_units('radians')
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/coords.py", line 938, in convert_units
    new_bounds = self.units.convert(self.bounds, unit)
  File "/home/h05/itwl/projects/git/cf_units/cf_units/__init__.py", line 1840, in convert
    _cv_convert_array[ctype](ut_converter, result, result)
  File "cf_units/_udunits2.pyx", line 301, in cf_units._udunits2.convert_floats
    def convert_floats(Converter converter, np.ndarray[np.float32_t] in_, np.ndarray[np.float32_t] out):
ValueError: Buffer has wrong number of dimensions (expected 1, got 2)

======================================================================
ERROR: test_compatible_cubes (iris.tests.unit.analysis.stats.test_pearsonr.Test)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/tests/unit/analysis/stats/test_pearsonr.py", line 46, in setUp
    self.weights = iris.analysis.cartography.area_weights(cube_temp)
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/analysis/cartography.py", line 410, in area_weights
    coord.convert_units('radians')
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/coords.py", line 938, in convert_units
    new_bounds = self.units.convert(self.bounds, unit)
  File "/home/h05/itwl/projects/git/cf_units/cf_units/__init__.py", line 1840, in convert
    _cv_convert_array[ctype](ut_converter, result, result)
  File "cf_units/_udunits2.pyx", line 301, in cf_units._udunits2.convert_floats
    def convert_floats(Converter converter, np.ndarray[np.float32_t] in_, np.ndarray[np.float32_t] out):
ValueError: Buffer has wrong number of dimensions (expected 1, got 2)

======================================================================
ERROR: test_compatible_cubes_weighted (iris.tests.unit.analysis.stats.test_pearsonr.Test)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/tests/unit/analysis/stats/test_pearsonr.py", line 46, in setUp
    self.weights = iris.analysis.cartography.area_weights(cube_temp)
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/analysis/cartography.py", line 410, in area_weights
    coord.convert_units('radians')
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/coords.py", line 938, in convert_units
    new_bounds = self.units.convert(self.bounds, unit)
  File "/home/h05/itwl/projects/git/cf_units/cf_units/__init__.py", line 1840, in convert
    _cv_convert_array[ctype](ut_converter, result, result)
  File "cf_units/_udunits2.pyx", line 301, in cf_units._udunits2.convert_floats
    def convert_floats(Converter converter, np.ndarray[np.float32_t] in_, np.ndarray[np.float32_t] out):
ValueError: Buffer has wrong number of dimensions (expected 1, got 2)

======================================================================
ERROR: test_incompatible_cubes (iris.tests.unit.analysis.stats.test_pearsonr.Test)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/tests/unit/analysis/stats/test_pearsonr.py", line 46, in setUp
    self.weights = iris.analysis.cartography.area_weights(cube_temp)
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/analysis/cartography.py", line 410, in area_weights
    coord.convert_units('radians')
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/coords.py", line 938, in convert_units
    new_bounds = self.units.convert(self.bounds, unit)
  File "/home/h05/itwl/projects/git/cf_units/cf_units/__init__.py", line 1840, in convert
    _cv_convert_array[ctype](ut_converter, result, result)
  File "cf_units/_udunits2.pyx", line 301, in cf_units._udunits2.convert_floats
    def convert_floats(Converter converter, np.ndarray[np.float32_t] in_, np.ndarray[np.float32_t] out):
ValueError: Buffer has wrong number of dimensions (expected 1, got 2)

======================================================================
ERROR: test_mdtol (iris.tests.unit.analysis.stats.test_pearsonr.Test)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/tests/unit/analysis/stats/test_pearsonr.py", line 46, in setUp
    self.weights = iris.analysis.cartography.area_weights(cube_temp)
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/analysis/cartography.py", line 410, in area_weights
    coord.convert_units('radians')
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/coords.py", line 938, in convert_units
    new_bounds = self.units.convert(self.bounds, unit)
  File "/home/h05/itwl/projects/git/cf_units/cf_units/__init__.py", line 1840, in convert
    _cv_convert_array[ctype](ut_converter, result, result)
  File "cf_units/_udunits2.pyx", line 301, in cf_units._udunits2.convert_floats
    def convert_floats(Converter converter, np.ndarray[np.float32_t] in_, np.ndarray[np.float32_t] out):
ValueError: Buffer has wrong number of dimensions (expected 1, got 2)

======================================================================
ERROR: test_non_existent_coord (iris.tests.unit.analysis.stats.test_pearsonr.Test)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/tests/unit/analysis/stats/test_pearsonr.py", line 46, in setUp
    self.weights = iris.analysis.cartography.area_weights(cube_temp)
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/analysis/cartography.py", line 410, in area_weights
    coord.convert_units('radians')
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/coords.py", line 938, in convert_units
    new_bounds = self.units.convert(self.bounds, unit)
  File "/home/h05/itwl/projects/git/cf_units/cf_units/__init__.py", line 1840, in convert
    _cv_convert_array[ctype](ut_converter, result, result)
  File "cf_units/_udunits2.pyx", line 301, in cf_units._udunits2.convert_floats
    def convert_floats(Converter converter, np.ndarray[np.float32_t] in_, np.ndarray[np.float32_t] out):
ValueError: Buffer has wrong number of dimensions (expected 1, got 2)

======================================================================
ERROR: test_perfect_corr (iris.tests.unit.analysis.stats.test_pearsonr.Test)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/tests/unit/analysis/stats/test_pearsonr.py", line 46, in setUp
    self.weights = iris.analysis.cartography.area_weights(cube_temp)
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/analysis/cartography.py", line 410, in area_weights
    coord.convert_units('radians')
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/coords.py", line 938, in convert_units
    new_bounds = self.units.convert(self.bounds, unit)
  File "/home/h05/itwl/projects/git/cf_units/cf_units/__init__.py", line 1840, in convert
    _cv_convert_array[ctype](ut_converter, result, result)
  File "cf_units/_udunits2.pyx", line 301, in cf_units._udunits2.convert_floats
    def convert_floats(Converter converter, np.ndarray[np.float32_t] in_, np.ndarray[np.float32_t] out):
ValueError: Buffer has wrong number of dimensions (expected 1, got 2)

======================================================================
ERROR: test_perfect_corr_all_dims (iris.tests.unit.analysis.stats.test_pearsonr.Test)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/tests/unit/analysis/stats/test_pearsonr.py", line 46, in setUp
    self.weights = iris.analysis.cartography.area_weights(cube_temp)
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/analysis/cartography.py", line 410, in area_weights
    coord.convert_units('radians')
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/coords.py", line 938, in convert_units
    new_bounds = self.units.convert(self.bounds, unit)
  File "/home/h05/itwl/projects/git/cf_units/cf_units/__init__.py", line 1840, in convert
    _cv_convert_array[ctype](ut_converter, result, result)
  File "cf_units/_udunits2.pyx", line 301, in cf_units._udunits2.convert_floats
    def convert_floats(Converter converter, np.ndarray[np.float32_t] in_, np.ndarray[np.float32_t] out):
ValueError: Buffer has wrong number of dimensions (expected 1, got 2)

======================================================================
ERROR: test_weight_error (iris.tests.unit.analysis.stats.test_pearsonr.Test)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/tests/unit/analysis/stats/test_pearsonr.py", line 46, in setUp
    self.weights = iris.analysis.cartography.area_weights(cube_temp)
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/analysis/cartography.py", line 410, in area_weights
    coord.convert_units('radians')
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/coords.py", line 938, in convert_units
    new_bounds = self.units.convert(self.bounds, unit)
  File "/home/h05/itwl/projects/git/cf_units/cf_units/__init__.py", line 1840, in convert
    _cv_convert_array[ctype](ut_converter, result, result)
  File "cf_units/_udunits2.pyx", line 301, in cf_units._udunits2.convert_floats
    def convert_floats(Converter converter, np.ndarray[np.float32_t] in_, np.ndarray[np.float32_t] out):
ValueError: Buffer has wrong number of dimensions (expected 1, got 2)

======================================================================
ERROR: test_preserves_lazy (iris.tests.unit.coords.test_AuxCoord.Test_convert_units)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/tests/unit/coords/test_AuxCoord.py", line 621, in test_preserves_lazy
    test_points_ft = Unit('m').convert(test_points, 'ft')
  File "/home/h05/itwl/projects/git/cf_units/cf_units/__init__.py", line 1840, in convert
    _cv_convert_array[ctype](ut_converter, result, result)
  File "cf_units/_udunits2.pyx", line 308, in cf_units._udunits2.convert_doubles
    def convert_doubles(Converter converter, np.ndarray[np.float64_t] in_, np.ndarray[np.float64_t] out):
ValueError: Buffer has wrong number of dimensions (expected 1, got 2)

======================================================================
ERROR: test_preserves_lazy (iris.tests.unit.cube.test_Cube.Test_convert_units)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/tests/unit/cube/test_Cube.py", line 1719, in test_preserves_lazy
    real_data_ft = Unit('m').convert(real_data, 'ft')
  File "/home/h05/itwl/projects/git/cf_units/cf_units/__init__.py", line 1840, in convert
    _cv_convert_array[ctype](ut_converter, result, result)
  File "cf_units/_udunits2.pyx", line 308, in cf_units._udunits2.convert_doubles
    def convert_doubles(Converter converter, np.ndarray[np.float64_t] in_, np.ndarray[np.float64_t] out):
ValueError: Buffer has wrong number of dimensions (expected 1, got 2)

======================================================================
ERROR: test_boolean_mask (iris.tests.unit.experimental.regrid.test_regrid_area_weighted_rectilinear_src_and_grid.TestMdtol)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/tests/unit/experimental/regrid/test_regrid_area_weighted_rectilinear_src_and_grid.py", line 123, in test_boolean_mask
    res = regrid(self.src_cube, self.grid_cube, mdtol=0.9)
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/experimental/regrid.py", line 722, in regrid_area_weighted_rectilinear_src_and_grid
    src_x_bounds = _get_bounds_in_units(src_x, x_units, dtype)
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/experimental/regrid.py", line 349, in _get_bounds_in_units
    return coord.units.convert(coord.bounds.astype(dtype), units).astype(dtype)
  File "/home/h05/itwl/projects/git/cf_units/cf_units/__init__.py", line 1840, in convert
    _cv_convert_array[ctype](ut_converter, result, result)
  File "cf_units/_udunits2.pyx", line 308, in cf_units._udunits2.convert_doubles
    def convert_doubles(Converter converter, np.ndarray[np.float64_t] in_, np.ndarray[np.float64_t] out):
ValueError: Buffer has wrong number of dimensions (expected 1, got 2)

======================================================================
ERROR: test_default (iris.tests.unit.experimental.regrid.test_regrid_area_weighted_rectilinear_src_and_grid.TestMdtol)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/tests/unit/experimental/regrid/test_regrid_area_weighted_rectilinear_src_and_grid.py", line 67, in test_default
    res = regrid(self.src_cube, self.grid_cube)
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/experimental/regrid.py", line 722, in regrid_area_weighted_rectilinear_src_and_grid
    src_x_bounds = _get_bounds_in_units(src_x, x_units, dtype)
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/experimental/regrid.py", line 349, in _get_bounds_in_units
    return coord.units.convert(coord.bounds.astype(dtype), units).astype(dtype)
  File "/home/h05/itwl/projects/git/cf_units/cf_units/__init__.py", line 1840, in convert
    _cv_convert_array[ctype](ut_converter, result, result)
  File "cf_units/_udunits2.pyx", line 308, in cf_units._udunits2.convert_doubles
    def convert_doubles(Converter converter, np.ndarray[np.float64_t] in_, np.ndarray[np.float64_t] out):
ValueError: Buffer has wrong number of dimensions (expected 1, got 2)

======================================================================
ERROR: test_fraction_below_min (iris.tests.unit.experimental.regrid.test_regrid_area_weighted_rectilinear_src_and_grid.TestMdtol)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/tests/unit/experimental/regrid/test_regrid_area_weighted_rectilinear_src_and_grid.py", line 100, in test_fraction_below_min
    res = regrid(self.src_cube, self.grid_cube, mdtol=mdtol)
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/experimental/regrid.py", line 722, in regrid_area_weighted_rectilinear_src_and_grid
    src_x_bounds = _get_bounds_in_units(src_x, x_units, dtype)
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/experimental/regrid.py", line 349, in _get_bounds_in_units
    return coord.units.convert(coord.bounds.astype(dtype), units).astype(dtype)
  File "/home/h05/itwl/projects/git/cf_units/cf_units/__init__.py", line 1840, in convert
    _cv_convert_array[ctype](ut_converter, result, result)
  File "cf_units/_udunits2.pyx", line 308, in cf_units._udunits2.convert_doubles
    def convert_doubles(Converter converter, np.ndarray[np.float64_t] in_, np.ndarray[np.float64_t] out):
ValueError: Buffer has wrong number of dimensions (expected 1, got 2)

======================================================================
ERROR: test_fraction_between_min_and_max (iris.tests.unit.experimental.regrid.test_regrid_area_weighted_rectilinear_src_and_grid.TestMdtol)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/tests/unit/experimental/regrid/test_regrid_area_weighted_rectilinear_src_and_grid.py", line 110, in test_fraction_between_min_and_max
    res = regrid(self.src_cube, self.grid_cube, mdtol=mdtol)
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/experimental/regrid.py", line 722, in regrid_area_weighted_rectilinear_src_and_grid
    src_x_bounds = _get_bounds_in_units(src_x, x_units, dtype)
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/experimental/regrid.py", line 349, in _get_bounds_in_units
    return coord.units.convert(coord.bounds.astype(dtype), units).astype(dtype)
  File "/home/h05/itwl/projects/git/cf_units/cf_units/__init__.py", line 1840, in convert
    _cv_convert_array[ctype](ut_converter, result, result)
  File "cf_units/_udunits2.pyx", line 308, in cf_units._udunits2.convert_doubles
    def convert_doubles(Converter converter, np.ndarray[np.float64_t] in_, np.ndarray[np.float64_t] out):
ValueError: Buffer has wrong number of dimensions (expected 1, got 2)

======================================================================
ERROR: test_one (iris.tests.unit.experimental.regrid.test_regrid_area_weighted_rectilinear_src_and_grid.TestMdtol)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/tests/unit/experimental/regrid/test_regrid_area_weighted_rectilinear_src_and_grid.py", line 79, in test_one
    res = regrid(self.src_cube, self.grid_cube, mdtol=1)
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/experimental/regrid.py", line 722, in regrid_area_weighted_rectilinear_src_and_grid
    src_x_bounds = _get_bounds_in_units(src_x, x_units, dtype)
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/experimental/regrid.py", line 349, in _get_bounds_in_units
    return coord.units.convert(coord.bounds.astype(dtype), units).astype(dtype)
  File "/home/h05/itwl/projects/git/cf_units/cf_units/__init__.py", line 1840, in convert
    _cv_convert_array[ctype](ut_converter, result, result)
  File "cf_units/_udunits2.pyx", line 308, in cf_units._udunits2.convert_doubles
    def convert_doubles(Converter converter, np.ndarray[np.float64_t] in_, np.ndarray[np.float64_t] out):
ValueError: Buffer has wrong number of dimensions (expected 1, got 2)

======================================================================
ERROR: test_scalar_no_overlap (iris.tests.unit.experimental.regrid.test_regrid_area_weighted_rectilinear_src_and_grid.TestMdtol)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/tests/unit/experimental/regrid/test_regrid_area_weighted_rectilinear_src_and_grid.py", line 131, in test_scalar_no_overlap
    res = regrid(src_cube, grid_cube, mdtol=0.8)
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/experimental/regrid.py", line 722, in regrid_area_weighted_rectilinear_src_and_grid
    src_x_bounds = _get_bounds_in_units(src_x, x_units, dtype)
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/experimental/regrid.py", line 349, in _get_bounds_in_units
    return coord.units.convert(coord.bounds.astype(dtype), units).astype(dtype)
  File "/home/h05/itwl/projects/git/cf_units/cf_units/__init__.py", line 1840, in convert
    _cv_convert_array[ctype](ut_converter, result, result)
  File "cf_units/_udunits2.pyx", line 308, in cf_units._udunits2.convert_doubles
    def convert_doubles(Converter converter, np.ndarray[np.float64_t] in_, np.ndarray[np.float64_t] out):
ValueError: Buffer has wrong number of dimensions (expected 1, got 2)

======================================================================
ERROR: test_scalar_with_overlap_above_mdtol (iris.tests.unit.experimental.regrid.test_regrid_area_weighted_rectilinear_src_and_grid.TestMdtol)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/tests/unit/experimental/regrid/test_regrid_area_weighted_rectilinear_src_and_grid.py", line 149, in test_scalar_with_overlap_above_mdtol
    res = regrid(src_cube, grid_cube, mdtol=0.4)
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/experimental/regrid.py", line 722, in regrid_area_weighted_rectilinear_src_and_grid
    src_x_bounds = _get_bounds_in_units(src_x, x_units, dtype)
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/experimental/regrid.py", line 349, in _get_bounds_in_units
    return coord.units.convert(coord.bounds.astype(dtype), units).astype(dtype)
  File "/home/h05/itwl/projects/git/cf_units/cf_units/__init__.py", line 1840, in convert
    _cv_convert_array[ctype](ut_converter, result, result)
  File "cf_units/_udunits2.pyx", line 308, in cf_units._udunits2.convert_doubles
    def convert_doubles(Converter converter, np.ndarray[np.float64_t] in_, np.ndarray[np.float64_t] out):
ValueError: Buffer has wrong number of dimensions (expected 1, got 2)

======================================================================
ERROR: test_scalar_with_overlap_below_mdtol (iris.tests.unit.experimental.regrid.test_regrid_area_weighted_rectilinear_src_and_grid.TestMdtol)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/tests/unit/experimental/regrid/test_regrid_area_weighted_rectilinear_src_and_grid.py", line 140, in test_scalar_with_overlap_below_mdtol
    res = regrid(src_cube, grid_cube, mdtol=0.6)
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/experimental/regrid.py", line 722, in regrid_area_weighted_rectilinear_src_and_grid
    src_x_bounds = _get_bounds_in_units(src_x, x_units, dtype)
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/experimental/regrid.py", line 349, in _get_bounds_in_units
    return coord.units.convert(coord.bounds.astype(dtype), units).astype(dtype)
  File "/home/h05/itwl/projects/git/cf_units/cf_units/__init__.py", line 1840, in convert
    _cv_convert_array[ctype](ut_converter, result, result)
  File "cf_units/_udunits2.pyx", line 308, in cf_units._udunits2.convert_doubles
    def convert_doubles(Converter converter, np.ndarray[np.float64_t] in_, np.ndarray[np.float64_t] out):
ValueError: Buffer has wrong number of dimensions (expected 1, got 2)

======================================================================
ERROR: test_src_not_masked_array (iris.tests.unit.experimental.regrid.test_regrid_area_weighted_rectilinear_src_and_grid.TestMdtol)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/tests/unit/experimental/regrid/test_regrid_area_weighted_rectilinear_src_and_grid.py", line 118, in test_src_not_masked_array
    res = regrid(self.src_cube, self.grid_cube, mdtol=0.9)
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/experimental/regrid.py", line 722, in regrid_area_weighted_rectilinear_src_and_grid
    src_x_bounds = _get_bounds_in_units(src_x, x_units, dtype)
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/experimental/regrid.py", line 349, in _get_bounds_in_units
    return coord.units.convert(coord.bounds.astype(dtype), units).astype(dtype)
  File "/home/h05/itwl/projects/git/cf_units/cf_units/__init__.py", line 1840, in convert
    _cv_convert_array[ctype](ut_converter, result, result)
  File "cf_units/_udunits2.pyx", line 308, in cf_units._udunits2.convert_doubles
    def convert_doubles(Converter converter, np.ndarray[np.float64_t] in_, np.ndarray[np.float64_t] out):
ValueError: Buffer has wrong number of dimensions (expected 1, got 2)

======================================================================
ERROR: test_zero (iris.tests.unit.experimental.regrid.test_regrid_area_weighted_rectilinear_src_and_grid.TestMdtol)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/tests/unit/experimental/regrid/test_regrid_area_weighted_rectilinear_src_and_grid.py", line 73, in test_zero
    res = regrid(self.src_cube, self.grid_cube, mdtol=0)
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/experimental/regrid.py", line 722, in regrid_area_weighted_rectilinear_src_and_grid
    src_x_bounds = _get_bounds_in_units(src_x, x_units, dtype)
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/experimental/regrid.py", line 349, in _get_bounds_in_units
    return coord.units.convert(coord.bounds.astype(dtype), units).astype(dtype)
  File "/home/h05/itwl/projects/git/cf_units/cf_units/__init__.py", line 1840, in convert
    _cv_convert_array[ctype](ut_converter, result, result)
  File "cf_units/_udunits2.pyx", line 308, in cf_units._udunits2.convert_doubles
    def convert_doubles(Converter converter, np.ndarray[np.float64_t] in_, np.ndarray[np.float64_t] out):
ValueError: Buffer has wrong number of dimensions (expected 1, got 2)

======================================================================
ERROR: test_float_tolerant_equality (iris.tests.unit.experimental.regrid.test_regrid_area_weighted_rectilinear_src_and_grid.TestWrapAround)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/tests/unit/experimental/regrid/test_regrid_area_weighted_rectilinear_src_and_grid.py", line 180, in test_float_tolerant_equality
    res = regrid(source, grid)
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/experimental/regrid.py", line 722, in regrid_area_weighted_rectilinear_src_and_grid
    src_x_bounds = _get_bounds_in_units(src_x, x_units, dtype)
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/experimental/regrid.py", line 349, in _get_bounds_in_units
    return coord.units.convert(coord.bounds.astype(dtype), units).astype(dtype)
  File "/home/h05/itwl/projects/git/cf_units/cf_units/__init__.py", line 1840, in convert
    _cv_convert_array[ctype](ut_converter, result, result)
  File "cf_units/_udunits2.pyx", line 308, in cf_units._udunits2.convert_doubles
    def convert_doubles(Converter converter, np.ndarray[np.float64_t] in_, np.ndarray[np.float64_t] out):
ValueError: Buffer has wrong number of dimensions (expected 1, got 2)

======================================================================
ERROR: test_weighted_mean (iris.tests.test_analysis.TestAnalysisWeights)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/tests/test_analysis.py", line 188, in test_weighted_mean
    area_weights = iris.analysis.cartography.area_weights(e)
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/analysis/cartography.py", line 410, in area_weights
    coord.convert_units('radians')
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/coords.py", line 938, in convert_units
    new_bounds = self.units.convert(self.bounds, unit)
  File "/home/h05/itwl/projects/git/cf_units/cf_units/__init__.py", line 1840, in convert
    _cv_convert_array[ctype](ut_converter, result, result)
  File "cf_units/_udunits2.pyx", line 301, in cf_units._udunits2.convert_floats
    def convert_floats(Converter converter, np.ndarray[np.float32_t] in_, np.ndarray[np.float32_t] out):
ValueError: Buffer has wrong number of dimensions (expected 1, got 2)

======================================================================
ERROR: test_area_weights_non_adjacent (iris.tests.test_analysis.TestAreaWeightGeneration)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/tests/test_analysis.py", line 763, in test_area_weights_non_adjacent
    weights = iris.analysis.cartography.area_weights(self.cube)
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/analysis/cartography.py", line 410, in area_weights
    coord.convert_units('radians')
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/coords.py", line 938, in convert_units
    new_bounds = self.units.convert(self.bounds, unit)
  File "/home/h05/itwl/projects/git/cf_units/cf_units/__init__.py", line 1840, in convert
    _cv_convert_array[ctype](ut_converter, result, result)
  File "cf_units/_udunits2.pyx", line 301, in cf_units._udunits2.convert_floats
    def convert_floats(Converter converter, np.ndarray[np.float32_t] in_, np.ndarray[np.float32_t] out):
ValueError: Buffer has wrong number of dimensions (expected 1, got 2)

======================================================================
ERROR: test_area_weights_non_contiguous (iris.tests.test_analysis.TestAreaWeightGeneration)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/tests/test_analysis.py", line 814, in test_area_weights_non_contiguous
    weights = iris.analysis.cartography.area_weights(cube)
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/analysis/cartography.py", line 410, in area_weights
    coord.convert_units('radians')
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/coords.py", line 938, in convert_units
    new_bounds = self.units.convert(self.bounds, unit)
  File "/home/h05/itwl/projects/git/cf_units/cf_units/__init__.py", line 1840, in convert
    _cv_convert_array[ctype](ut_converter, result, result)
  File "cf_units/_udunits2.pyx", line 301, in cf_units._udunits2.convert_floats
    def convert_floats(Converter converter, np.ndarray[np.float32_t] in_, np.ndarray[np.float32_t] out):
ValueError: Buffer has wrong number of dimensions (expected 1, got 2)

======================================================================
ERROR: test_area_weights_normalized (iris.tests.test_analysis.TestAreaWeightGeneration)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/tests/test_analysis.py", line 805, in test_area_weights_normalized
    normalize=True)
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/analysis/cartography.py", line 410, in area_weights
    coord.convert_units('radians')
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/coords.py", line 938, in convert_units
    new_bounds = self.units.convert(self.bounds, unit)
  File "/home/h05/itwl/projects/git/cf_units/cf_units/__init__.py", line 1840, in convert
    _cv_convert_array[ctype](ut_converter, result, result)
  File "cf_units/_udunits2.pyx", line 301, in cf_units._udunits2.convert_floats
    def convert_floats(Converter converter, np.ndarray[np.float32_t] in_, np.ndarray[np.float32_t] out):
ValueError: Buffer has wrong number of dimensions (expected 1, got 2)

======================================================================
ERROR: test_area_weights_order (iris.tests.test_analysis.TestAreaWeightGeneration)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/tests/test_analysis.py", line 756, in test_area_weights_order
    weights = iris.analysis.cartography.area_weights(self.cube)
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/analysis/cartography.py", line 410, in area_weights
    coord.convert_units('radians')
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/coords.py", line 938, in convert_units
    new_bounds = self.units.convert(self.bounds, unit)
  File "/home/h05/itwl/projects/git/cf_units/cf_units/__init__.py", line 1840, in convert
    _cv_convert_array[ctype](ut_converter, result, result)
  File "cf_units/_udunits2.pyx", line 301, in cf_units._udunits2.convert_floats
    def convert_floats(Converter converter, np.ndarray[np.float32_t] in_, np.ndarray[np.float32_t] out):
ValueError: Buffer has wrong number of dimensions (expected 1, got 2)

======================================================================
ERROR: test_area_weights_scalar (iris.tests.test_analysis.TestAreaWeightGeneration)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/tests/test_analysis.py", line 781, in test_area_weights_scalar
    weights = iris.analysis.cartography.area_weights(cube)
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/analysis/cartography.py", line 410, in area_weights
    coord.convert_units('radians')
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/coords.py", line 938, in convert_units
    new_bounds = self.units.convert(self.bounds, unit)
  File "/home/h05/itwl/projects/git/cf_units/cf_units/__init__.py", line 1840, in convert
    _cv_convert_array[ctype](ut_converter, result, result)
  File "cf_units/_udunits2.pyx", line 301, in cf_units._udunits2.convert_floats
    def convert_floats(Converter converter, np.ndarray[np.float32_t] in_, np.ndarray[np.float32_t] out):
ValueError: Buffer has wrong number of dimensions (expected 1, got 2)

======================================================================
ERROR: test_area_weights_scalar_latitude (iris.tests.test_analysis.TestAreaWeightGeneration)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/tests/test_analysis.py", line 769, in test_area_weights_scalar_latitude
    weights = iris.analysis.cartography.area_weights(cube)
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/analysis/cartography.py", line 410, in area_weights
    coord.convert_units('radians')
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/coords.py", line 938, in convert_units
    new_bounds = self.units.convert(self.bounds, unit)
  File "/home/h05/itwl/projects/git/cf_units/cf_units/__init__.py", line 1840, in convert
    _cv_convert_array[ctype](ut_converter, result, result)
  File "cf_units/_udunits2.pyx", line 301, in cf_units._udunits2.convert_floats
    def convert_floats(Converter converter, np.ndarray[np.float32_t] in_, np.ndarray[np.float32_t] out):
ValueError: Buffer has wrong number of dimensions (expected 1, got 2)

======================================================================
ERROR: test_area_weights_scalar_longitude (iris.tests.test_analysis.TestAreaWeightGeneration)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/tests/test_analysis.py", line 775, in test_area_weights_scalar_longitude
    weights = iris.analysis.cartography.area_weights(cube)
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/analysis/cartography.py", line 410, in area_weights
    coord.convert_units('radians')
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/coords.py", line 938, in convert_units
    new_bounds = self.units.convert(self.bounds, unit)
  File "/home/h05/itwl/projects/git/cf_units/cf_units/__init__.py", line 1840, in convert
    _cv_convert_array[ctype](ut_converter, result, result)
  File "cf_units/_udunits2.pyx", line 301, in cf_units._udunits2.convert_floats
    def convert_floats(Converter converter, np.ndarray[np.float32_t] in_, np.ndarray[np.float32_t] out):
ValueError: Buffer has wrong number of dimensions (expected 1, got 2)

======================================================================
ERROR: test_area_weights_singleton_latitude (iris.tests.test_analysis.TestAreaWeightGeneration)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/tests/test_analysis.py", line 787, in test_area_weights_singleton_latitude
    weights = iris.analysis.cartography.area_weights(cube)
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/analysis/cartography.py", line 410, in area_weights
    coord.convert_units('radians')
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/coords.py", line 938, in convert_units
    new_bounds = self.units.convert(self.bounds, unit)
  File "/home/h05/itwl/projects/git/cf_units/cf_units/__init__.py", line 1840, in convert
    _cv_convert_array[ctype](ut_converter, result, result)
  File "cf_units/_udunits2.pyx", line 301, in cf_units._udunits2.convert_floats
    def convert_floats(Converter converter, np.ndarray[np.float32_t] in_, np.ndarray[np.float32_t] out):
ValueError: Buffer has wrong number of dimensions (expected 1, got 2)

======================================================================
ERROR: test_area_weights_singleton_longitude (iris.tests.test_analysis.TestAreaWeightGeneration)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/tests/test_analysis.py", line 793, in test_area_weights_singleton_longitude
    weights = iris.analysis.cartography.area_weights(cube)
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/analysis/cartography.py", line 410, in area_weights
    coord.convert_units('radians')
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/coords.py", line 938, in convert_units
    new_bounds = self.units.convert(self.bounds, unit)
  File "/home/h05/itwl/projects/git/cf_units/cf_units/__init__.py", line 1840, in convert
    _cv_convert_array[ctype](ut_converter, result, result)
  File "cf_units/_udunits2.pyx", line 301, in cf_units._udunits2.convert_floats
    def convert_floats(Converter converter, np.ndarray[np.float32_t] in_, np.ndarray[np.float32_t] out):
ValueError: Buffer has wrong number of dimensions (expected 1, got 2)

======================================================================
ERROR: test_area_weights_singletons (iris.tests.test_analysis.TestAreaWeightGeneration)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/tests/test_analysis.py", line 799, in test_area_weights_singletons
    weights = iris.analysis.cartography.area_weights(cube)
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/analysis/cartography.py", line 410, in area_weights
    coord.convert_units('radians')
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/coords.py", line 938, in convert_units
    new_bounds = self.units.convert(self.bounds, unit)
  File "/home/h05/itwl/projects/git/cf_units/cf_units/__init__.py", line 1840, in convert
    _cv_convert_array[ctype](ut_converter, result, result)
  File "cf_units/_udunits2.pyx", line 301, in cf_units._udunits2.convert_floats
    def convert_floats(Converter converter, np.ndarray[np.float32_t] in_, np.ndarray[np.float32_t] out):
ValueError: Buffer has wrong number of dimensions (expected 1, got 2)

======================================================================
ERROR: test_area_weights_std (iris.tests.test_analysis.TestAreaWeightGeneration)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/tests/test_analysis.py", line 749, in test_area_weights_std
    weights = iris.analysis.cartography.area_weights(self.cube)
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/analysis/cartography.py", line 410, in area_weights
    coord.convert_units('radians')
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/coords.py", line 938, in convert_units
    new_bounds = self.units.convert(self.bounds, unit)
  File "/home/h05/itwl/projects/git/cf_units/cf_units/__init__.py", line 1840, in convert
    _cv_convert_array[ctype](ut_converter, result, result)
  File "cf_units/_udunits2.pyx", line 301, in cf_units._udunits2.convert_floats
    def convert_floats(Converter converter, np.ndarray[np.float32_t] in_, np.ndarray[np.float32_t] out):
ValueError: Buffer has wrong number of dimensions (expected 1, got 2)

======================================================================
ERROR: test_area_weights (iris.tests.test_analysis.TestAreaWeights)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/tests/test_analysis.py", line 726, in test_area_weights
    area_weights = iris.analysis.cartography.area_weights(small_cube)
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/analysis/cartography.py", line 410, in area_weights
    coord.convert_units('radians')
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/coords.py", line 938, in convert_units
    new_bounds = self.units.convert(self.bounds, unit)
  File "/home/h05/itwl/projects/git/cf_units/cf_units/__init__.py", line 1840, in convert
    _cv_convert_array[ctype](ut_converter, result, result)
  File "cf_units/_udunits2.pyx", line 301, in cf_units._udunits2.convert_floats
    def convert_floats(Converter converter, np.ndarray[np.float32_t] in_, np.ndarray[np.float32_t] out):
ValueError: Buffer has wrong number of dimensions (expected 1, got 2)

======================================================================
ERROR: test_cosine_latitude_weights_2d (iris.tests.test_analysis.TestLatitudeWeightGeneration)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/tests/test_analysis.py", line 933, in test_cosine_latitude_weights_2d
    self.cube_aux_lat)
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/analysis/cartography.py", line 502, in cosine_latitude_weights
    if np.any(lat.points < -np.pi / 2. - threshold) or \
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/coords.py", line 580, in _points_getter
    return self._points_dm.data.view()
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/_data_manager.py", line 216, in data
    result = as_concrete_data(self._lazy_array)
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/_lazy_data.py", line 156, in as_concrete_data
    data, = _co_realise_lazy_arrays([data])
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/_lazy_data.py", line 120, in _co_realise_lazy_arrays
    computed_arrays = da.compute(*arrays)
  File "/data/local/itwl/miniconda2/envs/delme-iris/lib/python2.7/site-packages/dask/base.py", line 407, in compute
    results = get(dsk, keys, **kwargs)
  File "/data/local/itwl/miniconda2/envs/delme-iris/lib/python2.7/site-packages/dask/threaded.py", line 75, in get
    pack_exception=pack_exception, **kwargs)
  File "/data/local/itwl/miniconda2/envs/delme-iris/lib/python2.7/site-packages/dask/local.py", line 521, in get_async
    raise_exception(exc, tb)
  File "/data/local/itwl/miniconda2/envs/delme-iris/lib/python2.7/site-packages/dask/local.py", line 290, in execute_task
    result = _execute_task(task, data)
  File "/data/local/itwl/miniconda2/envs/delme-iris/lib/python2.7/site-packages/dask/local.py", line 271, in _execute_task
    return func(*args2)
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/coords.py", line 925, in pointwise_convert
    return old_unit.convert(values, new_unit)
  File "/home/h05/itwl/projects/git/cf_units/cf_units/__init__.py", line 1840, in convert
    _cv_convert_array[ctype](ut_converter, result, result)
  File "cf_units/_udunits2.pyx", line 301, in cf_units._udunits2.convert_floats
    def convert_floats(Converter converter, np.ndarray[np.float32_t] in_, np.ndarray[np.float32_t] out):
ValueError: Buffer has wrong number of dimensions (expected 1, got 2)

======================================================================
ERROR: test_cosine_latitude_weights_2d_latitude_first (iris.tests.test_analysis.TestLatitudeWeightGeneration)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/tests/test_analysis.py", line 943, in test_cosine_latitude_weights_2d_latitude_first
    self.cube_aux_lat)
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/analysis/cartography.py", line 502, in cosine_latitude_weights
    if np.any(lat.points < -np.pi / 2. - threshold) or \
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/coords.py", line 580, in _points_getter
    return self._points_dm.data.view()
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/_data_manager.py", line 216, in data
    result = as_concrete_data(self._lazy_array)
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/_lazy_data.py", line 156, in as_concrete_data
    data, = _co_realise_lazy_arrays([data])
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/_lazy_data.py", line 120, in _co_realise_lazy_arrays
    computed_arrays = da.compute(*arrays)
  File "/data/local/itwl/miniconda2/envs/delme-iris/lib/python2.7/site-packages/dask/base.py", line 407, in compute
    results = get(dsk, keys, **kwargs)
  File "/data/local/itwl/miniconda2/envs/delme-iris/lib/python2.7/site-packages/dask/threaded.py", line 75, in get
    pack_exception=pack_exception, **kwargs)
  File "/data/local/itwl/miniconda2/envs/delme-iris/lib/python2.7/site-packages/dask/local.py", line 521, in get_async
    raise_exception(exc, tb)
  File "/data/local/itwl/miniconda2/envs/delme-iris/lib/python2.7/site-packages/dask/local.py", line 290, in execute_task
    result = _execute_task(task, data)
  File "/data/local/itwl/miniconda2/envs/delme-iris/lib/python2.7/site-packages/dask/local.py", line 271, in _execute_task
    return func(*args2)
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/coords.py", line 925, in pointwise_convert
    return old_unit.convert(values, new_unit)
  File "/home/h05/itwl/projects/git/cf_units/cf_units/__init__.py", line 1840, in convert
    _cv_convert_array[ctype](ut_converter, result, result)
  File "cf_units/_udunits2.pyx", line 301, in cf_units._udunits2.convert_floats
    def convert_floats(Converter converter, np.ndarray[np.float32_t] in_, np.ndarray[np.float32_t] out):
ValueError: Buffer has wrong number of dimensions (expected 1, got 2)

======================================================================
ERROR: test_cosine_latitude_weights_2d_latitude_last (iris.tests.test_analysis.TestLatitudeWeightGeneration)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/tests/test_analysis.py", line 953, in test_cosine_latitude_weights_2d_latitude_last
    self.cube_aux_lat)
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/analysis/cartography.py", line 502, in cosine_latitude_weights
    if np.any(lat.points < -np.pi / 2. - threshold) or \
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/coords.py", line 580, in _points_getter
    return self._points_dm.data.view()
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/_data_manager.py", line 216, in data
    result = as_concrete_data(self._lazy_array)
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/_lazy_data.py", line 156, in as_concrete_data
    data, = _co_realise_lazy_arrays([data])
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/_lazy_data.py", line 120, in _co_realise_lazy_arrays
    computed_arrays = da.compute(*arrays)
  File "/data/local/itwl/miniconda2/envs/delme-iris/lib/python2.7/site-packages/dask/base.py", line 407, in compute
    results = get(dsk, keys, **kwargs)
  File "/data/local/itwl/miniconda2/envs/delme-iris/lib/python2.7/site-packages/dask/threaded.py", line 75, in get
    pack_exception=pack_exception, **kwargs)
  File "/data/local/itwl/miniconda2/envs/delme-iris/lib/python2.7/site-packages/dask/local.py", line 521, in get_async
    raise_exception(exc, tb)
  File "/data/local/itwl/miniconda2/envs/delme-iris/lib/python2.7/site-packages/dask/local.py", line 290, in execute_task
    result = _execute_task(task, data)
  File "/data/local/itwl/miniconda2/envs/delme-iris/lib/python2.7/site-packages/dask/local.py", line 271, in _execute_task
    return func(*args2)
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/coords.py", line 925, in pointwise_convert
    return old_unit.convert(values, new_unit)
  File "/home/h05/itwl/projects/git/cf_units/cf_units/__init__.py", line 1840, in convert
    _cv_convert_array[ctype](ut_converter, result, result)
  File "cf_units/_udunits2.pyx", line 301, in cf_units._udunits2.convert_floats
    def convert_floats(Converter converter, np.ndarray[np.float32_t] in_, np.ndarray[np.float32_t] out):
ValueError: Buffer has wrong number of dimensions (expected 1, got 2)

======================================================================
ERROR: test_cosine_latitude_weights_2d_singleton1 (iris.tests.test_analysis.TestLatitudeWeightGeneration)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/tests/test_analysis.py", line 909, in test_cosine_latitude_weights_2d_singleton1
    weights = iris.analysis.cartography.cosine_latitude_weights(cube)
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/analysis/cartography.py", line 502, in cosine_latitude_weights
    if np.any(lat.points < -np.pi / 2. - threshold) or \
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/coords.py", line 580, in _points_getter
    return self._points_dm.data.view()
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/_data_manager.py", line 216, in data
    result = as_concrete_data(self._lazy_array)
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/_lazy_data.py", line 156, in as_concrete_data
    data, = _co_realise_lazy_arrays([data])
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/_lazy_data.py", line 120, in _co_realise_lazy_arrays
    computed_arrays = da.compute(*arrays)
  File "/data/local/itwl/miniconda2/envs/delme-iris/lib/python2.7/site-packages/dask/base.py", line 407, in compute
    results = get(dsk, keys, **kwargs)
  File "/data/local/itwl/miniconda2/envs/delme-iris/lib/python2.7/site-packages/dask/threaded.py", line 75, in get
    pack_exception=pack_exception, **kwargs)
  File "/data/local/itwl/miniconda2/envs/delme-iris/lib/python2.7/site-packages/dask/local.py", line 521, in get_async
    raise_exception(exc, tb)
  File "/data/local/itwl/miniconda2/envs/delme-iris/lib/python2.7/site-packages/dask/local.py", line 290, in execute_task
    result = _execute_task(task, data)
  File "/data/local/itwl/miniconda2/envs/delme-iris/lib/python2.7/site-packages/dask/local.py", line 271, in _execute_task
    return func(*args2)
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/coords.py", line 925, in pointwise_convert
    return old_unit.convert(values, new_unit)
  File "/home/h05/itwl/projects/git/cf_units/cf_units/__init__.py", line 1840, in convert
    _cv_convert_array[ctype](ut_converter, result, result)
  File "cf_units/_udunits2.pyx", line 301, in cf_units._udunits2.convert_floats
    def convert_floats(Converter converter, np.ndarray[np.float32_t] in_, np.ndarray[np.float32_t] out):
ValueError: Buffer has wrong number of dimensions (expected 1, got 2)

======================================================================
ERROR: test_cosine_latitude_weights_2d_singleton2 (iris.tests.test_analysis.TestLatitudeWeightGeneration)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/tests/test_analysis.py", line 917, in test_cosine_latitude_weights_2d_singleton2
    weights = iris.analysis.cartography.cosine_latitude_weights(cube)
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/analysis/cartography.py", line 502, in cosine_latitude_weights
    if np.any(lat.points < -np.pi / 2. - threshold) or \
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/coords.py", line 580, in _points_getter
    return self._points_dm.data.view()
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/_data_manager.py", line 216, in data
    result = as_concrete_data(self._lazy_array)
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/_lazy_data.py", line 156, in as_concrete_data
    data, = _co_realise_lazy_arrays([data])
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/_lazy_data.py", line 120, in _co_realise_lazy_arrays
    computed_arrays = da.compute(*arrays)
  File "/data/local/itwl/miniconda2/envs/delme-iris/lib/python2.7/site-packages/dask/base.py", line 407, in compute
    results = get(dsk, keys, **kwargs)
  File "/data/local/itwl/miniconda2/envs/delme-iris/lib/python2.7/site-packages/dask/threaded.py", line 75, in get
    pack_exception=pack_exception, **kwargs)
  File "/data/local/itwl/miniconda2/envs/delme-iris/lib/python2.7/site-packages/dask/local.py", line 521, in get_async
    raise_exception(exc, tb)
  File "/data/local/itwl/miniconda2/envs/delme-iris/lib/python2.7/site-packages/dask/local.py", line 290, in execute_task
    result = _execute_task(task, data)
  File "/data/local/itwl/miniconda2/envs/delme-iris/lib/python2.7/site-packages/dask/local.py", line 271, in _execute_task
    return func(*args2)
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/coords.py", line 925, in pointwise_convert
    return old_unit.convert(values, new_unit)
  File "/home/h05/itwl/projects/git/cf_units/cf_units/__init__.py", line 1840, in convert
    _cv_convert_array[ctype](ut_converter, result, result)
  File "cf_units/_udunits2.pyx", line 301, in cf_units._udunits2.convert_floats
    def convert_floats(Converter converter, np.ndarray[np.float32_t] in_, np.ndarray[np.float32_t] out):
ValueError: Buffer has wrong number of dimensions (expected 1, got 2)

======================================================================
ERROR: test_cosine_latitude_weights_2d_singleton3 (iris.tests.test_analysis.TestLatitudeWeightGeneration)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/tests/test_analysis.py", line 925, in test_cosine_latitude_weights_2d_singleton3
    weights = iris.analysis.cartography.cosine_latitude_weights(cube)
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/analysis/cartography.py", line 502, in cosine_latitude_weights
    if np.any(lat.points < -np.pi / 2. - threshold) or \
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/coords.py", line 580, in _points_getter
    return self._points_dm.data.view()
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/_data_manager.py", line 216, in data
    result = as_concrete_data(self._lazy_array)
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/_lazy_data.py", line 156, in as_concrete_data
    data, = _co_realise_lazy_arrays([data])
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/_lazy_data.py", line 120, in _co_realise_lazy_arrays
    computed_arrays = da.compute(*arrays)
  File "/data/local/itwl/miniconda2/envs/delme-iris/lib/python2.7/site-packages/dask/base.py", line 407, in compute
    results = get(dsk, keys, **kwargs)
  File "/data/local/itwl/miniconda2/envs/delme-iris/lib/python2.7/site-packages/dask/threaded.py", line 75, in get
    pack_exception=pack_exception, **kwargs)
  File "/data/local/itwl/miniconda2/envs/delme-iris/lib/python2.7/site-packages/dask/local.py", line 521, in get_async
    raise_exception(exc, tb)
  File "/data/local/itwl/miniconda2/envs/delme-iris/lib/python2.7/site-packages/dask/local.py", line 290, in execute_task
    result = _execute_task(task, data)
  File "/data/local/itwl/miniconda2/envs/delme-iris/lib/python2.7/site-packages/dask/local.py", line 271, in _execute_task
    return func(*args2)
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/coords.py", line 925, in pointwise_convert
    return old_unit.convert(values, new_unit)
  File "/home/h05/itwl/projects/git/cf_units/cf_units/__init__.py", line 1840, in convert
    _cv_convert_array[ctype](ut_converter, result, result)
  File "cf_units/_udunits2.pyx", line 301, in cf_units._udunits2.convert_floats
    def convert_floats(Converter converter, np.ndarray[np.float32_t] in_, np.ndarray[np.float32_t] out):
ValueError: Buffer has wrong number of dimensions (expected 1, got 2)

======================================================================
ERROR: test_cos (iris.tests.test_analysis_calculus.TestCoordTrig)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/tests/test_analysis_calculus.py", line 183, in test_cos
    cos_of_coord = iris.analysis.calculus._coord_cos(self.lat)
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/analysis/calculus.py", line 416, in _coord_cos
    return _trig_method(coord, np.cos)
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/analysis/calculus.py", line 434, in _trig_method
    coord.convert_units('radians')
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/coords.py", line 938, in convert_units
    new_bounds = self.units.convert(self.bounds, unit)
  File "/home/h05/itwl/projects/git/cf_units/cf_units/__init__.py", line 1840, in convert
    _cv_convert_array[ctype](ut_converter, result, result)
  File "cf_units/_udunits2.pyx", line 301, in cf_units._udunits2.convert_floats
    def convert_floats(Converter converter, np.ndarray[np.float32_t] in_, np.ndarray[np.float32_t] out):
ValueError: Buffer has wrong number of dimensions (expected 1, got 2)

======================================================================
ERROR: test_sin (iris.tests.test_analysis_calculus.TestCoordTrig)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/tests/test_analysis_calculus.py", line 168, in test_sin
    sin_of_coord = iris.analysis.calculus._coord_sin(self.lat)
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/analysis/calculus.py", line 403, in _coord_sin
    return _trig_method(coord, np.sin)
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/analysis/calculus.py", line 434, in _trig_method
    coord.convert_units('radians')
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/coords.py", line 938, in convert_units
    new_bounds = self.units.convert(self.bounds, unit)
  File "/home/h05/itwl/projects/git/cf_units/cf_units/__init__.py", line 1840, in convert
    _cv_convert_array[ctype](ut_converter, result, result)
  File "cf_units/_udunits2.pyx", line 301, in cf_units._udunits2.convert_floats
    def convert_floats(Converter converter, np.ndarray[np.float32_t] in_, np.ndarray[np.float32_t] out):
ValueError: Buffer has wrong number of dimensions (expected 1, got 2)

======================================================================
ERROR: test_convert_units (iris.tests.test_cdm.TestCubeAPI)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/tests/test_cdm.py", line 775, in test_convert_units
    self.t.convert_units('kV')
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/cube.py", line 888, in convert_units
    new_data = self.units.convert(self.data, unit)
  File "/home/h05/itwl/projects/git/cf_units/cf_units/__init__.py", line 1840, in convert
    _cv_convert_array[ctype](ut_converter, result, result)
  File "cf_units/_udunits2.pyx", line 308, in cf_units._udunits2.convert_doubles
    def convert_doubles(Converter converter, np.ndarray[np.float64_t] in_, np.ndarray[np.float64_t] out):
ValueError: Buffer has wrong number of dimensions (expected 1, got 2)

======================================================================
FAIL: test_longitude_no_units (iris.tests.unit.analysis.cartography.test_area_weights.TestInvalidUnits)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/tests/unit/analysis/cartography/test_area_weights.py", line 47, in test_longitude_no_units
    iris.analysis.cartography.area_weights(cube)
AssertionError: "Units of degrees or radians required" does not match "Buffer has wrong number of dimensions (expected 1, got 2)"

======================================================================
FAIL: test_calendars (iris.tests.unit.coord_categorisation.test_add_categorised_coord.Test_add_day_of_year)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/tests/unit/coord_categorisation/test_add_categorised_coord.py", line 130, in test_calendars
    err_msg=msg.format(calendar))
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/tests/__init__.py", line 517, in assertArrayEqual
    np.testing.assert_array_equal(a, b, err_msg=err_msg)
  File "/data/local/itwl/miniconda2/envs/delme-iris/lib/python2.7/site-packages/numpy/testing/utils.py", line 854, in assert_array_equal
    verbose=verbose, header='Arrays are not equal')
  File "/data/local/itwl/miniconda2/envs/delme-iris/lib/python2.7/site-packages/numpy/testing/utils.py", line 778, in assert_array_compare
    raise AssertionError(msg)
AssertionError: 
Arrays are not equal
Test failed for the following calendar: all_leap.
(mismatch 100.0%)
 x: array([355, 356, 357, 358, 359, 360,   1,   2,   3,   4])
 y: array([360, 361, 362, 363, 364, 365, 366,   1,   2,   3])

======================================================================
FAIL: test_load_lcc_grid (iris.tests.test_netcdf.TestNetCDFLoad)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/tests/test_netcdf.py", line 161, in test_load_lcc_grid
    self.assertCML(cube, ('netcdf', 'netcdf_lcc.cml'))
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/tests/__init__.py", line 406, in assertCML
    self._check_same(xml, reference_path)
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/tests/__init__.py", line 496, in _check_same
    type_comparison_name)
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/tests/__init__.py", line 235, in _assert_str_same
    self.fail("%s do not match: %s\n%s" % (type_comparison_name, reference_filename, diff))
AssertionError: CML do not match: /net/home/h05/itwl/projects/git/iris/lib/iris/tests/results/netcdf/netcdf_lcc.cml
--- Reference
+++ Test result
@@ -91 +91 @@
-		227.0, 257.5, 288.0, 318.5, 349.0]" shape="(12,)" standard_name="time" units="Unit('days since 2010-01-01 12:00:00', calendar='standard')" value_type="float64" var_name="time"/>
+		227.0, 257.5, 288.0, 318.5, 349.0]" shape="(12,)" standard_name="time" units="Unit('days since 2010-01-01 12:00:00', calendar='gregorian')" value_type="float64" var_name="time"/>


======================================================================
FAIL: test_multi_field_load (iris.tests.test_nimrod.TestLoad)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/tests/test_nimrod.py", line 45, in test_multi_field_load
    self.assertCML(cube, ("nimrod", "load_2flds.cml"))
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/tests/__init__.py", line 406, in assertCML
    self._check_same(xml, reference_path)
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/tests/__init__.py", line 496, in _check_same
    type_comparison_name)
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/tests/__init__.py", line 235, in _assert_str_same
    self.fail("%s do not match: %s\n%s" % (type_comparison_name, reference_filename, diff))
AssertionError: CML do not match: /net/home/h05/itwl/projects/git/iris/lib/iris/tests/results/nimrod/load_2flds.cml
--- Reference
+++ Test result
@@ -13 +13 @@
-        <dimCoord id="9c8bdf81" points="[355014.0]" shape="(1,)" standard_name="forecast_reference_time" units="Unit('hours since 1970-01-01 00:00:00', calendar='standard')" value_type="float64"/>
+        <dimCoord id="9c8bdf81" points="[355014.0]" shape="(1,)" standard_name="forecast_reference_time" units="Unit('hours since 1970-01-01 00:00:00', calendar='gregorian')" value_type="float64"/>
@@ -35 +35 @@
-        <dimCoord id="cb784457" points="[355017.0, 363777.0]" shape="(2,)" standard_name="time" units="Unit('hours since 1970-01-01 00:00:00', calendar='standard')" value_type="float64"/>
+        <dimCoord id="cb784457" points="[355017.0, 363777.0]" shape="(2,)" standard_name="time" units="Unit('hours since 1970-01-01 00:00:00', calendar='gregorian')" value_type="float64"/>


======================================================================
FAIL: test_period_of_interest (iris.tests.test_nimrod.TestLoad)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/tests/test_nimrod.py", line 107, in test_period_of_interest
    self.assertCML(cube, ("nimrod", "period_of_interest.cml"))
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/tests/__init__.py", line 406, in assertCML
    self._check_same(xml, reference_path)
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/tests/__init__.py", line 496, in _check_same
    type_comparison_name)
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/tests/__init__.py", line 235, in _assert_str_same
    self.fail("%s do not match: %s\n%s" % (type_comparison_name, reference_filename, diff))
AssertionError: CML do not match: /net/home/h05/itwl/projects/git/iris/lib/iris/tests/results/nimrod/period_of_interest.cml
--- Reference
+++ Test result
@@ -6 +6 @@
-        <dimCoord bounds="[[379973.0, 379974.0]]" id="cb784457" points="[379974.0]" shape="(1,)" standard_name="time" units="Unit('hours since 1970-01-01 00:00:00', calendar='standard')" value_type="float64"/>
+        <dimCoord bounds="[[379973.0, 379974.0]]" id="cb784457" points="[379974.0]" shape="(1,)" standard_name="time" units="Unit('hours since 1970-01-01 00:00:00', calendar='gregorian')" value_type="float64"/>


======================================================================
FAIL: test_time_360 (iris.tests.test_pandas.TestAsDataFrame)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/tests/test_pandas.py", line 256, in test_time_360
    self.assertArrayEqual(data_frame.index, expected_index)
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/tests/__init__.py", line 517, in assertArrayEqual
    np.testing.assert_array_equal(a, b, err_msg=err_msg)
  File "/data/local/itwl/miniconda2/envs/delme-iris/lib/python2.7/site-packages/numpy/testing/utils.py", line 854, in assert_array_equal
    verbose=verbose, header='Arrays are not equal')
  File "/data/local/itwl/miniconda2/envs/delme-iris/lib/python2.7/site-packages/numpy/testing/utils.py", line 778, in assert_array_compare
    raise AssertionError(msg)
AssertionError: 
Arrays are not equal

(mismatch 100.0%)
 x: array([cftime._cftime.Datetime360Day(2000, 4, 11, 2, 24, 0, 0, -1, 1),
       cftime._cftime.Datetime360Day(2000, 7, 21, 4, 48, 0, 0, -1, 1)], dtype=object)
 y: array([netcdftime._netcdftime.Datetime360Day(2000, 4, 11, 2, 24, 0, 0, -1, 1),
       netcdftime._netcdftime.Datetime360Day(2000, 7, 21, 4, 48, 0, 0, -1, 1)], dtype=object)

======================================================================
FAIL: test_time_360 (iris.tests.test_pandas.TestAsSeries)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/tests/test_pandas.py", line 118, in test_time_360
    self.assertArrayEqual(series.index, expected_index)
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/tests/__init__.py", line 517, in assertArrayEqual
    np.testing.assert_array_equal(a, b, err_msg=err_msg)
  File "/data/local/itwl/miniconda2/envs/delme-iris/lib/python2.7/site-packages/numpy/testing/utils.py", line 854, in assert_array_equal
    verbose=verbose, header='Arrays are not equal')
  File "/data/local/itwl/miniconda2/envs/delme-iris/lib/python2.7/site-packages/numpy/testing/utils.py", line 778, in assert_array_compare
    raise AssertionError(msg)
AssertionError: 
Arrays are not equal

(mismatch 100.0%)
 x: array([cftime._cftime.Datetime360Day(2000, 1, 1, 0, 0, 0, 0, -1, 1),
       cftime._cftime.Datetime360Day(2000, 4, 11, 2, 24, 0, 0, -1, 1),
       cftime._cftime.Datetime360Day(2000, 7, 21, 4, 48, 0, 0, -1, 1),...
 y: array([netcdftime._netcdftime.Datetime360Day(2000, 1, 1, 0, 0, 0, 0, -1, 1),
       netcdftime._netcdftime.Datetime360Day(2000, 4, 11, 2, 24, 0, 0, -1, 1),
       netcdftime._netcdftime.Datetime360Day(2000, 7, 21, 4, 48, 0, 0, -1, 1),...

======================================================================
FAIL: test_repr_pass_1 (iris.tests.test_unit.TestStringify)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/net/home/h05/itwl/projects/git/iris/lib/iris/tests/test_unit.py", line 502, in test_repr_pass_1
    self.assertEqual(repr(u), "Unit('hours since 2007-01-15 12:06:00', calendar='standard')")
AssertionError: "Unit('hours since 2007-01-15 12:06:00', calendar='gregorian')" != "Unit('hours since 2007-01-15 12:06:00', calendar='standard')"

----------------------------------------------------------------------
Ran 3861 tests in 140.531s

FAILED (SKIP=114, errors=77, failures=8)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions