1
$\begingroup$

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!

$\endgroup$
1
$\begingroup$

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.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.