-
Notifications
You must be signed in to change notification settings - Fork 15
Description
When I tried to import OPERA PAAH22_C_EUOC hdf file in steps_verif.py error appear:
, line 70, in main
R, quality, metadata = io.read_timeseries(fns, importer, **importer_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/radar/.conda/envs/pysteps/lib/python3.11/site-packages/pysteps/io/readers.py", line 53, in read_timeseries
precip_ref, quality_ref, metadata = importer(ifn, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^
File "/home/radar/.conda/envs/pysteps/lib/python3.11/site-packages/pysteps/io/importers.py", line 1479, in import_opera_hdf5
return import_odim_hdf5(filename, qty=qty, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/radar/.conda/envs/pysteps/lib/python3.11/site-packages/pysteps/decorators.py", line 70, in _import_with_postprocessing
precip, *other_args = importer(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/radar/.conda/envs/pysteps/lib/python3.11/site-packages/pysteps/io/importers.py", line 1364, in import_odim_hdf5
) = _read_opera_hdf5_what_group(dgg[1]["what"])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/radar/.conda/envs/pysteps/lib/python3.11/site-packages/pysteps/io/importers.py", line 1483, in _read_opera_hdf5_what_group
qty = whatgrp.attrs["quantity"]
~~~~~~~~~~~~~^^^^^^^^^^^^
File "h5py/_objects.pyx", line 54, in h5py._objects.with_phil.wrapper
File "h5py/_objects.pyx", line 55, in h5py._objects.with_phil.wrapper
File "/home/radar/.conda/envs/pysteps/lib/python3.11/site-packages/h5py/_hl/attrs.py", line 56, in getitem
attr = h5a.open(self._id, self._e(name))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "h5py/_objects.pyx", line 54, in h5py._objects.with_phil.wrapper
File "h5py/_objects.pyx", line 55, in h5py._objects.with_phil.wrapper
File "h5py/h5a.pyx", line 80, in h5py.h5a.open
KeyError: "Can't open attribute (can't locate attribute: 'quantity')"
(pysteps) radar@rsgate:~/pysteps$ find h5py.h5a.open
find: ‘h5py.h5a.open’: No such file or directory
Could you help me with this problem?