Hi,
I thank you very much Yang for the solution you gave, I had the same error and it worked for me. But now when run convert_hycom.py I have a new error:
from formats.selafin import Selafin
ModuleNotFoundError: No module named 'formats'
I understand that I don't have the "formats" module, does someone knows where to find it?
I am running on python 3.7 on spyder. And I used Yang's code (attached here)adaped to python 3 with this command line: "python convert_hycom.py --from 2018-11-01 --stop 2018-11-27 --bl 39,-1 --tr 42,2 -r hycom_bahia_big.slf"
I hope someone will anwser me,
Kind regards,
Thomas