No module named xarray

21 views
Skip to first unread message

David Lobon

unread,
May 14, 2019, 4:06:43 PM5/14/19
to wradlib-users


I am new with this great library, the installation I did without problems through conda, but there is a problem that I understand with the last line.

[1]:import wradlib as wrl
    import warnings
    warnings.filterwarnings('ignore')
    import matplotlib.pyplot as pl
    import numpy as np
    import xarray as xr
    try:
      get_ipython().magic("matplotlib inline")
    except:
      pl.ion()

[2]:from wradlib.io.xarray import CfRadial, OdimH5

from wradlib.io.xarray import CfRadial, OdimH5
ImportError: No module named xarray

During the installation everything went well, as I said, any suggestion to solve this will be very wellcome

Many thanks
David

Kai Mühlbauer

unread,
May 14, 2019, 4:20:31 PM5/14/19
to David Lobon, wradlib-users
Hi David,

You have probably installed an old version of wradlib.

The io.xarray module is available from version 1.3.0. Can you verify the version?

It might also be that you might have to use 'from wrl.io.xarray import'.

HTH,
Kai
--
Diese Nachricht wurde von meinem Android-Gerät mit K-9 Mail gesendet.
Reply all
Reply to author
Forward
0 new messages