Possible solution for issue #6. Smoothing is done by taking the mean or median in a box surrounding every pixel in the transect.
corrected shape of output transect
updated with some more error checks
Merge branch 'issue6' into develop