I have a long numpy array with wind direction records, and I'm trying to use numpy's unwrap
before running an algorithm to detect jumps in the data. The data contains NaNs, and numpy seems unable to process this. As soon as one NaN is encountered, all following data points returned by unwrap
are also converted to NaNs. Is there a way around this?
I think my question boils down to the same question as posted here, but there it's only concluded that the error is related to NaNs in the data and no solution is offered.