You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@Beforerr, I'm not sure a warning is what we want here since replace_fillval_by_nan is really meant to be used only on floating values. The NaN concept only exists for floating values.
What you can do instead, is always cast your variable to floating type before using replace_fillval_by_nan like this:
@jeandet Thank you for your suggestion! You’re right, explicitly casting the data to a floating type before applying replace_fillval_by_nan() makes sense.
Ideally, I think the user just want to replace the fill value with NaN to clean the data. So a united interface would be helpful. Maybe we could put something like this to sanitized_with_nan (like santize but keep nan)
Data like
the_efw_l1.the_efw
is of integer type., sores[res == fill_value] = np.nan
raises error.Since the data is not in speasy cdaweb, I attach a yaml file
The text was updated successfully, but these errors were encountered: