---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-9-c7ce4b3434d7> in <module>()
2 url='http://oos.soest.hawaii.edu/thredds/dodsC/hioos/roms_assim/hiig/ROMS_Hawaii_Regional_Ocean_Model_Assimilation_best.ncd'
3 var='sea_water_potential_temperature'
----> 4 slice=var_lev_date(url=url,var=var, mytime=mytime, lev=lev)
5 myplot(slice)
<ipython-input-4-5b51f58ca9c1> in var_lev_date(url, var, mytime, lev, subsample)
1 def var_lev_date(url=None,var=None,mytime=None,lev=0,subsample=1):
2 time0= time.time()
----> 3 cube = iris.load(url,iris.Constraint(name=var.strip()))[0]
4 # flip z if necessary
5 z=cube.coord(axis='Z').points
/home/local/python27_epd/lib/python2.7/site-packages/iris/__init__.pyc in load(uris, constraints, callback)
279
280 """
--> 281 return _load_collection(uris, constraints, callback).merged().cubes()
282
283
/home/local/python27_epd/lib/python2.7/site-packages/iris/cube.pyc in merged(self, unique)
174 """
175 return _CubeFilterCollection([pair.merged(unique) for pair in
--> 176 self.pairs])
177
178
/home/local/python27_epd/lib/python2.7/site-packages/iris/cube.pyc in merged(self, unique)
116
117 """
--> 118 return _CubeFilter(self.constraint, self.cubes.merge(unique))
119
120
/home/local/python27_epd/lib/python2.7/site-packages/iris/cube.pyc in merge(self, unique)
419 for name in sorted(proto_cubes_by_name):
420 for proto_cube in proto_cubes_by_name[name]:
--> 421 merged_cubes.extend(proto_cube.merge(unique=unique))
422
423 return merged_cubes
/home/local/python27_epd/lib/python2.7/site-packages/iris/_merge.pyc in merge(self, unique)
1183 stack[nd_index] = data
1184
-> 1185 merged_data = biggus.ArrayStack(stack)
1186 if all_have_data:
1187 merged_data = merged_data.masked_array()
/home/local/python27_epd/lib/python2.7/site-packages/biggus/__init__.pyc in __init__(self, stack)
394 if (array.shape != item_shape or array.dtype != dtype or
395 array.fill_value != fill_value):
--> 396 raise ValueError('invalid sub-array')
397 self._stack = stack
398 self._item_shape = item_shape
ValueError: invalid sub-array