Skip to content

Failing to load a NetCDF dataset #5067

Open
@timo0thy

Description

@timo0thy

🐛 Bug Report

I am failing to load a NetCDF file, getting an 'index out of range' error. The properties of the dataset and the error code are provided in the screenshots below. This issue is unique to the latest version of iris as I tried with version 3.2.1 and it works.

How To Reproduce

Steps to reproduce the behaviour:

  1. Calculate Fire Weather Index using the xclim package
  2. Save the output as a NetCDF file using the to_netcdf command
  3. Load the dataset using iris 3.3.1 (the same error is produced no matter whether iris.load, iris.load_cube, or even the xarray plugin to_iris is used)

Expected behaviour

With version 3.2.1 I am able to load and plot the dataset as follows:
image
image

Screenshots

The dataset (opened and plotted using xarray):
image
image

The error code when loading the dataset using iris 3.3.1:
image
image
image

Environment

  • OS & Version: Ubuntu 18.04
  • Iris Version: 3.3.1

Additional context

Click to expand this section...
Please add additional verbose information in this section e.g., code, output, tracebacks, screenshots etc

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions