Read pandas data and convert it to IMMA I'm working on a project in which my data set is in xarray and I need to write it to IMMA format. I converted it from xarray to pandas and am totally stumped on how to go from pandas to IMMA. Any advice? Would it be easier to go straight from xarray to IMMA? I am working in python by the way. Thanks!
Following module provides a Python API to IMMA files:

import IMMA


You could use write()

opfile=open('some_output_file.imma','w')
for ob in obs:
    IMMA.write(ob,opfile)


More info could be found here.