The document presents the implementation of a lossless hyperspectral and multispectral image compression algorithm based on the CCSDS standard, developed in C using Microsoft Visual Studio. It discusses the algorithm's parameters, such as the number of prediction bands and various local sum types, while analyzing their effects on compression performance and complexity. The results demonstrate that the algorithm can achieve a compression ratio of approximately 3 with effective configuration of parameters, validated by reconstructing an image using the AVIRIS dataset.