https://www.mathworks.com/help/matlab/ref/netcdf.getvar.html
plus the logical type, which we assign to an unsigned byte