I have what I'm quite sure is a simple question, but I'm not having much luck finding an explanation online.
I have an array of flux values and a corresponding array of time values. Obviously those two arrays are one-to-one (one flux value for each time value). However, some of my flux values are NaNs.
My question is this: How do I remove the corresponding values from the time array when I remove the NaNs from the flux array?
These arrays are large enough (several thousand entries) that it would be exceedingly cumbersome to do it by hand.