save byte image to netcdf