fixed netCDF variable subscripting