Onboard deep lossless and near-lossless predictive coding of hyperspectral images with line-based attention