Skip to content

visualization example terminates with an exception

We are observing an exception when running the notebook `examples/00_download_and_visualization.ipynb`

Dataset for the visualization:

Dimensions:    (latitude: 91, longitude: 144)
Coordinates:
    time       int64 8B 2
  * latitude   (latitude) float64 728B -90.0 -88.0 -86.0 ... 86.0 88.0 90.0
  * longitude  (longitude) float64 1kB -180.0 -177.5 -175.0 ... 175.0 177.5
Data variables:
    mean       (latitude, longitude) float64 105kB nan nan nan ... nan nan nan
    std        (latitude, longitude) float64 105kB nan nan nan ... nan nan nan
    n          (latitude, longitude) float64 105kB nan nan nan ... nan nan nan
Attributes: (12/33)

For the newer version, we obtain (branch wip_tests_and_notebooks) the same results:

Dimensions:    (latitude: 91, longitude: 144)
Coordinates:
    time       int64 8B 2
  * latitude   (latitude) float64 728B -90.0 -88.0 -86.0 ... 86.0 88.0 90.0
  * longitude  (longitude) float64 1kB -180.0 -177.5 -175.0 ... 175.0 177.5
Data variables:
    mean       (latitude, longitude) float64 105kB nan nan nan ... nan nan nan
    std        (latitude, longitude) float64 105kB nan nan nan ... nan nan nan
    n          (latitude, longitude) float64 105kB nan nan nan ... nan nan nan
Attributes: (12/33)

Both datasets look ok.

A conversion of the notebook to a python script runs without any issues....

For the newer version, we see an error message related to the dimensions of the coordinate axes.

Independent of the version, we observe that the option shading="nearest" seems to be ignored by matplotlib.pcolormesh.

Edited by Carsten Hinz