MeteoSwiss / pyrad

Python Radar Data Processing
https://meteoswiss.github.io/pyrad/
Other
37 stars 10 forks source link

ODIM data not properly masked #40

Closed jfigui closed 1 year ago

jfigui commented 1 year ago

The implemented solution for when nodata was np.nan:

data = np.ma.masked_where(raw_data, raw_data == nodata)

was masking all data.

This has been changed in the dev commit b3a1b0f6102143be0049490f4f4dc90f5d4bad8c as: if np.isnan(nodata):

special case of nan nodata

                data = np.ma.masked_array(raw_data, np.isnan(raw_data))
            else:
                data = np.ma.masked_values(raw_data, nodata)

@wolfidan , we need to release a patch as soon as possible to version 1.7

wolfidan commented 1 year ago

Sorry about that, and thanks a lot for the fix, I have released a patch v1.7.1

https://pypi.org/project/pyart-mch/

conda should follow soon,

wolfidan commented 1 year ago

Can I close this issue?

jfigui commented 1 year ago

Hi @wolfidan ,

Yes, I think that with the patch we can close this issue.

Cheers,

Jordi