Dear Didid,
sorry for the delay. The problem is that your netcdf source variable
will be extracted as a numpy masked array. I had a quick look into the
dataset and the FillValue is -32768.
During normal operation (plotting etc) the masked values will not be
taken into account. But for the `interpolate_polar`-function the `mask'
can be taken into account and the FillValues might be used for computation.
To avoid this I suggest to fill the masked values with some reasonable
value (either NaN or the minimal value -31.5 in this case) before
computation.
1. Get the mask of the source array:
omask = dbzh.mask
2. For interpolation fill the masked values with NaN
data_no_clutter = wrl.ipol.interpolate_polar(dbzh[i1:i2].filled(np.nan),
mask=clutter, ipclass=wrl.ipol.Idw)
3. Use the mask from the source array on the result
data_no_clutter = np.ma.array(data_no_clutter, mask=omask[i1:i2])
Especially for netcdf files it is good to have a look at the FillValues
if they make sense.
HTH!
Cheers,
Kai
> --
> You received this message because you are subscribed to the Google
> Groups "wradlib-users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to
wradlib-user...@googlegroups.com
> <mailto:
wradlib-user...@googlegroups.com>.
> For more options, visit
https://groups.google.com/d/optout.
--
Kai Muehlbauer
Meteorological Institute University of Bonn
Auf dem Huegel 20 |
+49 228 739083
D-53121 Bonn |
kai.mue...@uni-bonn.de