Fix coarse output for NetCDF writer