fixed the dim=0 problem in NetCDF/io.py