stcorp / harp

Data harmonization toolset for scientific earth observation data
http://stcorp.github.io/harp/doc/html/index.html
BSD 3-Clause "New" or "Revised" License
55 stars 18 forks source link

harp._harppy.CLibraryError?How to solve this bug? #279

Closed gladnire closed 1 year ago

gladnire commented 1 year ago

I want to process S5P_NRTI_L2_O3____ products with the harp. But it is showing some kind of error. The code was working fine, but suddenly this bug appears.

File "/root/anaconda3/envs/s5p2/lib/python3.7/site-packages/harp/_harppy.py", line 1300, in import_product raise CLibraryError() harp._harppy.CLibraryError: record does not contain a field named 'degrees_of_freedom'

svniemeijer commented 1 year ago

Can you let me know which product you are trying to read?

gladnire commented 1 year ago

S5P_NRTI_L2O3_____20220915T031314_20220915T031814_25505_03_020401_20220915T035326.nc AND I got the same error when process L2SO2_ but the code runs fine when process L2_CO

svniemeijer commented 1 year ago

I can't reproduce this. What harp version are you using?

Also, I don't believe that you are getting the exact same error L2__SO2___, since degrees_of_freedom is only applicable to the O3 products.

gladnire commented 1 year ago

I can't reproduce this. What harp version are you using?

Also, I don't believe that you are getting the exact same error L2__SO2___, since degrees_of_freedom is only applicable to the O3 products.

Thank you very much for your reply!!! I used 1.11 version,now I have upgraded to the latest version. The error for "L2_SO2__"is harp._harppy.CLibraryError: record does not contain a field named 'aerosol_index_340_380'

svniemeijer commented 1 year ago

Do you still have any of these issues with HARP 1.15.1?

gladnire commented 1 year ago

YES!!!

svniemeijer commented 1 year ago

Then please check your installation again and make absolutely sure you are using the latest HARP version, because as I mentioned, I can't reproduce the errors you are seeing.

gladnire commented 1 year ago

Then please check your installation again and make absolutely sure you are using the latest HARP version, because as I mentioned, I can't reproduce the errors you are seeing.

OK~Thank you! I will check my HARP version again~