NetCDF: Index exceeds dimension bound