Added NetCDF support to write function of atomistica.io.