Rate control and predictor analysis for lossy compression of multispectral and hyperspectral images