Currently, it uses nc_put_att_text, which means that the resulting attributes are always saved as bytes in the underlying HDF5 files. This works OK as long as you only read netCDF4 files back with ...
The goal was to use this as a ProxyCommand for ssh but it does not work: $ ssh -o ProxyCommand="python nc.py socks4 ${PROXY_HOST} ${PROXY_PORT} %h %p" user@host 'command' Connection to UNKNOWN port ...