Commit d61d7c9c authored by PIOLLE's avatar PIOLLE
Browse files

padding for dimensionless fields

parent dff196dd
......@@ -649,6 +649,10 @@ class Field(object):
pad with fill values the ``subset`` array extracted from ``array``
where ``index`` is beyond the limits of ``array``.
if len(array.shape) == 0:
# dimensionless field
return subset.to_masked_array()
pad_edges = []
for dim in list(array.dims):
if dim in index:
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment