following steps of ocefpaf.github.io/python4oceanographers/blog/2014/11/10/OI2/