Added function gen_dates, based on Filipe's (https://github.com/ocefpaf/python-oceans/blob/master/oceans/ff_tools/ff_tools.py)