the default edge behaviour from IDL is "the end points are copiedįrom the original array to the result with no smoothing" whereas Iĭon't seem to have the option to do this with the uniform filter.I am aware that there are some fundamental differences here: Where b is a 2D float array containing NANs (zeros - missing data - have also been converted to NAN).įrom the IDL documents, it appears smooth uses a boxcar, so from I have tried: bsmooth = uniform_filter(b, w) I am trying to code this: smooth(b,w,/nan) (Disclaimer: It is probably 10 years since I touched this kind of mathematical problem so it has been dumped to make way for information like where to find the cheapest local fuel). I have been trying to work out how to replicate IDL's smooth function in Python and I just can't get anything like the same results.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |