-
Notifications
You must be signed in to change notification settings - Fork 168
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem with PAAH22_C_EUOC new OPERA file #439
Comments
hi @olgalaki, it's very plausible that a new OPERA version broke our importer. Do you know where this new version is documented? Can you share an example file? |
I found documentation on Opera's web page: I attached one example file: |
Hi @olgalaki very good thanks, let me ask, would you be willing to contribute on this issue? |
Hi @dnerini, |
Hi @olgalaki thanks for being open about contributing. I unfortunately have little time to dedicate to this currently, so this might need to wait, unless we find somebody else willing to have a look... |
Hi, @olgalaki I'll take a look at this during the coming week. |
@pulkkins Great, thanks. |
I created a branch for the new version of OPERA importer: https://github.com/pySTEPS/pysteps/tree/opera_fixes. It should now work for the new CIRRUS and NIMBUS products. I'll make a pull request. |
When I tried to import OPERA PAAH22_C_EUOC hdf file in proba_rain.py error appear:
Traceback (most recent call last):
File "/home/radar/pysteps/proba_rain.py", line 125, in
main()
File "/home/radar/pysteps/proba_rain.py", line 78, 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/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')"
Could you help me with this problem?
The text was updated successfully, but these errors were encountered: