Код: Выделить всё
import cdflib
import xarray as xr
import os
import urllib.request
# Download a CDF file
fname = 'WAV08_11_20.cdf'
url = ("https://maser.obspm.fr/repository/juno/waves/data/l3a_v02/data/cdf/2020/11/jno_wav_cdr_lesia_20201108_v02.cdf")
if not os.path.exists(fname):
urllib.request.urlretrieve(url, fname)
juno_data = cdflib.cdf_to_xarray("WAV08_11_20.cdf", to_unixtime=True, fillval_to_nan=True)
Код: Выделить всё
AttributeError Traceback (most recent call last)
Cell In[10], line 2
1 # Load in and display the CDF file
----> 2 juno_data = cdflib.cdf_to_xarray("WAV08_11_20.cdf", to_unixtime=True, fillval_to_nan=True)
AttributeError: module 'cdflib' has no attribute 'cdf_to_xarray'
Что мне попробовать дальше?
Подробнее здесь: https://stackoverflow.com/questions/781 ... ay-dataset