bugfix: can't use quantity to index netCDF variable