Nansat.get_transect also return pixels/lines
Nansat.get_transect update docstring