I used mpfit.py to get the some seasonal variation of data. But I can't get the seasonal variation, because my observed data had some nan values. So I can't calculate them.
Do you know the skill to avoid or ignore nan values as NAN keyword of mpfitfun.pro of IDL?
When I used the IDL, I can ignore the nan values using NAN keyword. Below is a example of IDL code.
result = MPFITFUN('MYGAUSS', t, d2009, 21.3756, start, /nan)
How can I ignore the nan values in python mpfit code?
If you know the method, Please tell me.