Skip to content

Loading netcdf file fails #2961

@zklaus

Description

@zklaus

The attached netcdf file is a minimal example of a cordex file that I could not load with iris-2.0.0.
It loads fine with 1.13.0 and triggers an AttributeError in dask.

Attached is a zip file with:

  1. the netcdf file
  2. a minimal loading program
  3. a log with the stack trace

The stack trace ends in

  File "/home/sm_klazi/software/usr/lib/python2.7/site-packages/scitools_iris-2.0.0-py2.7.egg/iris/_lazy_data.py", line 128, in as_concrete_data
    data = np.asanyarray(data.compute())
  File "/home/sm_klazi/software/usr/lib/python2.7/site-packages/dask/base.py", line 99, in compute
    (result,) = compute(self, traverse=False, **kwargs)
  File "/home/sm_klazi/software/usr/lib/python2.7/site-packages/dask/base.py", line 206, in compute
    results = get(dsk, keys, **kwargs)
  File "/home/sm_klazi/software/usr/lib/python2.7/site-packages/dask/threaded.py", line 75, in get
    pack_exception=pack_exception, **kwargs)
  File "/home/sm_klazi/software/usr/lib/python2.7/site-packages/dask/local.py", line 521, in get_async
    raise_exception(exc, tb)
  File "/home/sm_klazi/software/usr/lib/python2.7/site-packages/dask/local.py", line 290, in execute_task
    result = _execute_task(task, data)
  File "/home/sm_klazi/software/usr/lib/python2.7/site-packages/dask/local.py", line 271, in _execute_task
    return func(*args2)
  File "/home/sm_klazi/software/usr/lib/python2.7/site-packages/dask/utils.py", line 688, in __call__
    return getattr(obj, self.method)(*args, **kwargs)
AttributeError: 'NetCDFDataProxy' object has no attribute 'reshape'

Any ideas?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions