Add write function in 'ncphysio.py'